submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s367519909
p00036
Java
import java.util.*;   class Main{     public static void main(String args[]){         Scanner s=new Scanner(System.in);         while(s.hasNext()){             char [][] a=new char[20][20];             for(int i=0;i<20;i++)                 for(int j=0;j<20;j++)                     a[i][j]='0';             for(int i=0;i...
Main.java:2: error: illegal character: '\u00a0' ? ^ Main.java:3: error: class, interface, enum, or record expected class Main{ ^ Main.java:4: error: illegal character: '\u00a0' ????public static void main(String args[]){ ^ Main.java:4: error: illegal character: '\u00a0' ????public static void main(String args[]){...
s123474484
p00036
Java
import java.util.Scanner; public class Maih { static int[][] a; public static void main(String[] args) { Scanner cin = new Scanner(System.in); while(cin.hasNext()){ a = new int[30][30]; int x=0, y=0; boolean flag = false; for(int i = 5; i < 5+8;i++){ String str = cin.next(); for(int j = 5; j...
Main.java:3: error: class Maih is public, should be declared in a file named Maih.java public class Maih { ^ 1 error
s722771576
p00036
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class P0036 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = ""; char[][] plane = new char[8][8]; int i = 0...
Main.java:5: error: class P0036 is public, should be declared in a file named P0036.java public class P0036 { ^ 1 error
s186587162
p00036
Java
import java.util.*; class Main { public static void main (String[] args) { Scanner scanner = new Scanner(System.in); String out = ""; int[][] board = new int[20][20]; int[] hp = new int[8]; int[] vp = new int[8]; int row = 4; int twoCnt = 0; while (scanner.hasNext()) { String li...
Main.java:136: error: reached end of file while parsing } ^ 1 error
s195379826
p00036
Java
import java.io.* public class Main { public static String solve (String[] str) { int baseX = 0, baseY = 0; main : for (int i = 0; i < str.length; i++) { for (int j = 0; j < str[i].length(); j++) { if (str[i].charAt(j) == '1') { baseX = j; baseY = i; break main; } } } if (str[bas...
Main.java:1: error: ';' expected import java.io.* ^ 1 error
s848486410
p00036
C
#include<stdio.h> int main(void){ int i, j, f, map[8][8]; while(1){ f=0; for(i = 0; i < 8; i++){ for(j = 0; j < 8; j++){ if(scanf("%1d", &map[i][j])==EOF){ f=1; break;ac } } } if(f =...
main.c: In function 'main': main.c:12:27: error: 'ac' undeclared (first use in this function) 12 | break;ac | ^~ main.c:12:27: note: each undeclared identifier is reported only once for each function it appears in main.c:12:29: error: expected ';' before '}' token ...
s857208711
p00036
C
#include<stdio.h> int main(void){ int a[8][8]; char v[8][8]; int i,j; while(1){ for(i = 0;i < 8;i++){ for(j = 0;j < 8;j++){ if(scanf("%c",&v[i][j]) == EOF){ return 0; } a[i][j] = v[i][j] - 48; } getchar()(); } for(i = 0;i < 8;i++){ for(j = 0;j < 8;j++){ if(a[i][j] == 1){ if(a[i][j+1] ...
main.c: In function 'main': main.c:14:17: error: called object is not a function or function pointer 14 | getchar()(); | ^~~~~~~
s116792712
p00036
C
#include <stdio.h> #include <string.h> int main(void){ char b[65]; char p[7][33] = { "1100000011", "10000000100000001000000010000001", "1111", "1000000110000001", "11000000011", "100000001100000001", "110000011", }; char *bi; int t = 0; ...
main.c: In function 'main': main.c:18:11: error: 'true' undeclared (first use in this function) 18 | while(true){ | ^~~~ main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' 2 | #include <string.h> +++ |+#include <stdbool.h> ...
s944128105
p00036
C
#include<stdio.h> main(){ int i,j; char a[8][8]; while(scanf("%s",a[0])!=EOF){ for(i=1;i<8;i++){ scanf("%s",a[i]); } for(i=0;i<8;i++){ for(j=0;j<8;j++){ if(a[i][j]=='1'&&a[i][j+1]=='1'&&a[i+1][j]=='1'&&a[i+1][j+1]=='1'){ printf("A\n"); break; break; } else if(...
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:48:3: error: expected declaration or statement at end of input 48 | } | ^
s374027392
p00036
C
#include <stdio.h> int main(void){ int i, j, k; int dot; int point[4][2]; for(k = 0; k < 50; k++){ for(i = 0; i < 8 i++){ scanf("%d", &dot"); for(j = 8; j > 0; j--){ if(dot ^ (1 < j) == 1){ point[k][0] = i; point[k][1] = j; ...
main.c: In function 'main': main.c:8:21: error: expected ';' before 'i' 8 | for(i = 0; i < 8 i++){ | ^~ | ; main.c:9:25: warning: missing terminating " character 9 | scanf("%d", &dot"); | ^ main.c:9:25: error: missing ...
s082637980
p00036
C
#include <stdio.h> int main() { int Field[8][8], y,x, i; char progression[9]; while(1) { for(y=0;y<8;y++){ if(scanf("%s",progression) != EOF){ for(i=0;progression[i];i++){ Field[y][i] = (progression[i] == '1'); } } else { return 0; } } for(i=0;i<64;i++) { if(Field[i...
main.c:51:1: error: expected identifier or '(' before '}' token 51 | } | ^
s386848854
p00036
C
#include <stdio.h> #define A 1 #define B 2 #define C 3 #define D 4 #define E 5 #define F 6 #define G 7 int main(void){ int field[9][9]; int i,j,c; int type; int end = 0; int s_end; for(i = 0; i < 9; i++){ field[i][8] = 0; } for(j = 0; j < 9; j++){ field[8][j] = 0; } while(1){ type = 0; i = 0; j = 0...
main.c: In function 'main': main.c:115:17: error: expected declaration or statement at end of input 115 | ); | ^ main.c:115:17: error: expected declaration or statement at end of input
s225421387
p00036
C
#include <stdio.h> #define A 1 #define B 2 #define C 3 #define D 4 #define E 5 #define F 6 #define G 7 int main(void){ int field[10][10]; int i,j,c; int type; int end = 0; int s_end; for(i = 0; i < 9; i++){ field[i][0] = 0; field[i][8] = 0; } for(j = 0; j < 9; j++){ field[0][j] = 0; field[8][j] = 0; }...
main.c: In function 'main': main.c:121:9: error: expected declaration or statement at end of input 121 | return 0; | ^~~~~~
s904322189
p00036
C
#include <iostream> #include <string> using namespace std; string s[8]; void f(){ char b='A'; for(int i=0;i<8;i++){ for(int j=0;j<8;j++){ if(s[i][j]=='1'){ if(i<5)if(s[i+3][j]=='1')b='B'; if(j<5)if(s[i][j+3]=='1')b='C'; if(i<6&&j>0)if(s[i+2][j-1]=='1')b='D'; if(j<6)if(s[i+1][j+2]=='1')b='E'; ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s343958822
p00036
C
#include <stdio.h> #include <stdlib.h> #define SIZE 64 /* prototype declaration */ void getTable(int *a); char determinant(); int main(int argc, const char *argv[]) { while(1){ printf("ans:%c\n", determinant()); } return 0; } char determinant() { int a[SIZE], i; getTable(a); for(i=0; a[i]==0; i++); i...
main.c: In function 'getTable': main.c:48:9: error: implicit declaration of function 'showTable' [-Wimplicit-function-declaration] 48 | showTable(a); | ^~~~~~~~~
s343430151
p00036
C
int main(){ char a[8][9]; int i,j,flag; while(scanf("%s",a[0])!=EOF){ for(i=1;i<8;i++) scanf("%s",a[i]); flag=1; for(i=0;i<8&&flag;i++) for(j=0;j<8&&flag;j++) if(a[i][j]=='1'){ if(i+1<8&&j+1<8&&a[i+1][j]=='1'&&a[i][j+1]=='1'&&a[i+1][j+1]=='1') printf("A\n"); else if(i+3<8&&a[i+1...
main.c: In function 'main': main.c:6:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | while(scanf("%s",a[0])!=EOF){ | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ ma...
s236885654
p00036
C++
#include<stdio.h> int main(){ char a[8][8]; int ans = 0; while(1){ for(int i = 0; i < 8; i++){ if(scanf("%s",&a[i]) == EOF){ return 0; } } for(int i = 0; i < 8; i++){ for(int j = 0; j < 8; j++){ if(a[i][j] == 1){ if(i < 7 && j < 7){ if(a[i+1][j] == 1 && a[i][j+1] == 1 && a[i+1][j+1] == 1){ printf("A\n"); } } if(i < 5...
a.cc:56:1: error: expected unqualified-id before 'return' 56 | return 0; | ^~~~~~ a.cc:57:1: error: expected declaration before '}' token 57 | } | ^
s169646814
p00036
C++
#include <iostream> #include <string> using namespace std; int main() { while(1){ char ret; string s; for(int i=0;i<8;i++){ string s_tmp; if(scanf("%s", s) == EOF) return; s += s_tmp; } // 2次元配列を1次元的に処理 for(int i=0;i<8*8;i++){ if(s[i]=='1'){ // Aかどうか if(s[i+1]=='1' && s[i+8]=='1' && s[i+9]==...
a.cc: In function 'int main()': a.cc:16:43: error: return-statement with no value, in function returning 'int' [-fpermissive] 16 | if(scanf("%s", s) == EOF) return; | ^~~~~~ a.cc:48:15: error: 'ret' was not declared in this scope 48 | cout<<r...
s717606389
p00036
C++
00000000 00000000 01100000 00110000 00000000 00000000 00000000 00000000 00011110 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00110000 00110000 00000000 00000000 00000000 00000000
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 00000000 | ^~~~~~~~
s298506598
p00036
C++
#include<iostream> using namespace std; #define rep(i,a) for(int i = 0 ; i < a ; i ++) int main(void){ char maze[9][9]; while(true){ rep(i,8)rep(j,8)cin>>maze[i][j]; if(cin.eof())break; bool used = false; rep(y,8){ rep(x,8){ if (board[y][x] == '1') { if (board[y][x+1] == '1' && board[y+1][...
a.cc: In function 'int main()': a.cc:12:13: error: 'board' was not declared in this scope 12 | if (board[y][x] == '1') { | ^~~~~
s166598585
p00036
C++
#include <iostream> #include <math.h> #include <algorithm> #include <string> #include <stack> #include <queue> #include <set> #include <cstdio> #include <string.h> #include <sstream> #include <iomanip> #include <map> using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) #define FOR(i, b, e) for(int i = b; ...
a.cc: In function 'int main(int, const char**)': a.cc:294:2: error: expected '}' at end of input 294 | } | ^ a.cc:279:40: note: to match this '{' 279 | int main(int argc, const char * argv[]){ | ^
s204055483
p00036
C++
#include <iostream> #include <cstdio> using namespace std; typedef struct _XY { int x; int y; } XY; XY figure[][4] = { {{1, 0}, {0, 1}, {1, 1}}, // A {{0, 1}, {0, 2}, {0, 3}}, // B {{1, 0}, {2, 0}, {3, 0}}, // C {{0, 1}, {-1, 1}, {-1, 2}}, // D {{1, 0}, {1, 1}, {2, 1}}, // E {{0, 1}, {1, 1}, {1, 2}}, // F {...
a.cc: In function 'int main()': a.cc:26:17: error: 'memset' was not declared in this scope 26 | memset(math, 0, sizeof(math)); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <cstdio> ...
s272823750
p00036
C++
#include<iostream> #include<string> #include<vector> #include<cstdio> #include<sstream> #include<algorithm> #include<cmath> #include<map> #include<functional> #include<queue> #include<stack> #include<set> using namespace std; int stoi(string x){stringstream ss;ss<<x;int tmp;ss>>tmp;return tmp;} string itos(int x){stri...
a.cc: In function 'int main()': a.cc:49:37: error: expected ';' before ':' token 49 | if(f==0){cout<<endl;goto end:;} | ^ | ; a.cc:49:37: error: expected primary-expression before ':' token
s840494116
p00036
C++
#include <bits/stdc++.h> #define rep(i,l,n) for(int i=l;i<n;i++) #define rer(i,l,n) for(int i=l;i<=n;i++) #define all(a) a.begin(),a.end() #define o(a) cout<<a<<endl #define pb(a) push_back(a) #define mk(a,b) make_pair(a,b) #define fi first #define se second using namespace std; typedef long long ll; typedef vector<int...
a.cc: In function 'int main()': a.cc:23:36: error: no match for 'operator~' (operand type is 'std::basic_istream<char>') 23 | if(~(cin>>x)) return 0; | ^~~~~~~~~ a.cc:23:36: note: candidate: 'operator~(int)' (built-in) a.cc:23:36: note: no kn...
s740351896
p00036
C++
#include <algorithm> #include <cmath> #include <climits> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #include <cassert> #include <func...
a.cc: In function 'int main()': a.cc:54:36: error: cannot convert 'std::__cxx11::basic_string<char>::empty' from type 'bool (std::__cxx11::basic_string<char>::)() const noexcept' to type 'bool' 54 | if (s.empty){ | ^
s264065628
p00036
C++
#include <iostream> #include <cstdio> #include <vector> #include <string> #include <map> #include <algorithm> #include <cmath> #include <numeric> #include <stack> using namespace std; #define REP(i,n) for(int (i)=0; (i)<(n); (i)++) #define For(i,a,b) for(int (i)=(a); (i)<(b); (i)++) #define PUSH(n,v) for(int i=0; i<(n...
/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
s052844215
p00036
C++
#include <iostream> #include <cstdio> #include <vector> #include <string> #include <map> #include <algorithm> #include <cmath> #include <numeric> #include <stack> using namespace std; #define REP(i,n) for(int (i)=0; (i)<(n); (i)++) #define For(i,a,b) for(int (i)=(a); (i)<(b); (i)++) #define PUSH(n,v) for(int i=0; i<(n...
/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
s437272304
p00036
C++
#include <bits/stdc++.h> using namespace std; typedef complex<int> P; namespace std{ bool operator < (const P &a,const P &b){ if( a.real() != b.real() ) return a.real() < b.real(); return a.imag() < b.imag(); } bool operator == (const P &a,const P &b){ if( a.real() != b.real() ) return false; return a.imag...
a.cc:19:31: error: 'p' was not declared in this scope 19 | {P(0,0),P(0,2),P(0,1),p(0,3)}, | ^ a.cc:25:1: error: could not convert '{{std::complex<int>(0, 0), std::complex<int>(1, 1), std::complex<int>(1, 0), std::complex<int>(0, 1)}, {std::complex<int>(0, 0), std::complex<...
s294516169
p00036
C++
#include <bits/stdc++.h> using namespace std; typedef complex<int> P; namespace std{ bool operator < (const P &a,const P &b){ if( a.real() != b.real() ) return a.real() < b.real(); return a.imag() < b.imag(); } bool operator == (const P &a,const P &b){ if( a.real() != b.real() ) return false; return a.imag...
a.cc:19:31: error: 'p' was not declared in this scope 19 | {P(0,0),P(0,2),P(0,1),p(0,3)}, | ^ a.cc:25:1: error: could not convert '{{std::complex<int>(0, 0), std::complex<int>(1, 1), std::complex<int>(1, 0), std::complex<int>(0, 1)}, {std::complex<int>(0, 0), std::complex<...
s005495814
p00036
C++
#include<iostream> #include<algorithm> using namespace std; int main() { while (!cin.eof) { char c[8][8]; for (int i = 0; i < 8; i++) for (int j = 0; j < 8; j++) cin >> c[i][j]; int a, b; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { if (c[i][j] == '1') { a = i; b = j; ...
a.cc: In function 'int main()': a.cc:5:21: error: cannot convert 'std::basic_ios<char>::eof' from type 'bool (std::basic_ios<char>::)() const' to type 'bool' 5 | while (!cin.eof) { | ^~~ a.cc:5:21: error: in argument to unary ! 5 | while (!cin.eof) { | ...
s620202010
p00036
C++
import java.util.Scanner; public class Main { private Scanner sc; public static void main(String[] args) { new Main_format(); } public Main() { sc = new Scanner(System.in); while (sc.hasNext() == true) { int[][] map = new int[8][8]; for (int i = 0; i < 8; i++) { String line = sc.nextLine();...
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 { | ^~~~~~
s588819813
p00036
C++
import java.util.Scanner; public class Main { static Scanner sc = new java.util.Scanner(System.in); // static int[][] num =new int [8][8]; public static void main(String[] args) { int[][] num = new int[15][15]; String str = ""; while (sc.hasNextLine()) { // num[][]???????????? syokika(num); // ?...
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 { | ^~~~~~
s686864478
p00036
C++
import java.util.Scanner; public class Main { static Scanner sc = new java.util.Scanner(System.in); // static int[][] num =new int [8][8]; public static void main(String[] args) { int[][] num = new int[15][15]; String str = ""; while (sc.hasNextLine()) { // num[][]???????????? syokika(num); // ?...
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 { | ^~~~~~
s104786496
p00036
C++
#include<iostream> #include<cstdio> #include<string> #include<algorithm> #include<math.h> #include<bitset> using namespace std; int main(){ int a,b; char map[64]; int movex[4]={1,0,-1,0},movey[4]={0,1,0,-1}; while(cin>>map[0]){ for(int i=1;i<64;i++){ cin>>map[i]; } int i,j; for(i=0;i<64;i++){ if(map[i...
a.cc: In function 'int main()': a.cc:47:17: error: 'memset' was not declared in this scope 47 | memset(map,'0',sizeof(map)); | ^~~~~~ a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 6 | #include<bitset> +++...
s937483204
p00036
C++
#include<bits/c++std.h> #include<iostream> #include<cstdio> #include<string> #include<algorithm> #include<math.h> #include<bitset> using namespace std; int main(){ int a,b; char map[64]; int movex[4]={1,0,-1,0},movey[4]={0,1,0,-1}; while(cin>>map[0]){ for(int i=1;i<64;i++){ cin>>map[i]; } int i,j; for(i=...
a.cc:1:9: fatal error: bits/c++std.h: No such file or directory 1 | #include<bits/c++std.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s309947215
p00036
C++
#include<iostream> using namespace std; int main() { char c[10][10]; while (cin>>c[0][0]){ for (int i = 0; i < 8; i++) for (int j = 0; j < 8; j++) if(!i&&!j)continue; cin >> c[i][j]; int a, b; for (int i = 0; i < 8; i++) { for (int j =...
a.cc: In function 'int main()': a.cc:9:26: error: 'i' was not declared in this scope 9 | cin >> c[i][j]; | ^ a.cc:9:29: error: 'j' was not declared in this scope 9 | cin >> c[i][j]; | ^
s876656081
p00036
C++
#include<iostream> using namespace std; int main() { char c[10][10]; while (cin>>c[0][0]){ for (int i = 0; i < 8; i++) for (int j = 0; j < 8; j++) if(!i&&!j)continue; cin >> c[i][j]; int a, b; for (int i = 0; i < 8; i++) { for (int j =...
a.cc: In function 'int main()': a.cc:9:26: error: 'i' was not declared in this scope 9 | cin >> c[i][j]; | ^ a.cc:9:29: error: 'j' was not declared in this scope 9 | cin >> c[i][j]; | ^
s583289721
p00036
C++
#include<iostream> using namespace std; int main() { char c[10][10]; while (cin>>c[0][0]){ for (int i = 0; i < 8; i++) for (int j = 0; j < 8; j++) if(i==0&&j==0)continue; cin >> c[i][j]; int a, b; for (int i = 0; i < 8; i++) { for (int...
a.cc: In function 'int main()': a.cc:9:26: error: 'i' was not declared in this scope 9 | cin >> c[i][j]; | ^ a.cc:9:29: error: 'j' was not declared in this scope 9 | cin >> c[i][j]; | ^
s055003825
p00036
C++
input_lines = int(input()) for i in range(input_lines): s = i #for i range 8: print (s)
a.cc:5:2: error: invalid preprocessing directive #for 5 | #for i range 8: | ^~~ a.cc:1:1: error: 'input_lines' does not name a type 1 | input_lines = int(input()) | ^~~~~~~~~~~
s911055700
p00036
C++
/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
s577055652
p00036
C++
#include <iostream> #include <string> using namespace std;int main(){int b[5][4];int sx,sy;int x,y;string line;while(true){for(int i=0;i<20;i++)b[i%5][i/5]=0;sx=sy=-1;for(y=0;y<8;y++){if (!(cin>>line))break;for(x=0;x<8;x++){if (line[x]=='1'){if (sy==-1){sx=x-1;sy=y;}b[x-sx][y-sy] = 1;}}}if (y<8)break;char a;if(b[2][0]&...
a.cc: In function 'int main()': a.cc:3:337: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 3 | using namespace std;int main(){int b[5][4];int sx,sy;int x,y;string line;while(true){for(int i=0;i<20;i++)b[i%5][i/5]=0;sx=sy=-1;for(y=0;y<8;y++){if (!(cin>>line))break;for(x=0;x<8;x++){if (line[x]=...
s759507978
p00036
C++
#include <iostream> main(){int b[5][4],s,t,x,y;char l[8];for(;;){for(int i=0;i<20;i++)b[i%5][i/5]=0;sx=sy=9;for(y=0;y<8;y++){if(!(std::cin>>l))break;for(x=0;x<8;x++){if(l[x]=='1'){if(t==9){s=x-1;t=y;}b[x-s][y-t]=1;}}}if (y<8)break;char a='A';if(b[1][3])a='B';if(b[4][0])a='C';if(b[0][2])a='D';if(b[3][1])a='E';if(b[2][2]...
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(){int b[5][4],s,t,x,y;char l[8];for(;;){for(int i=0;i<20;i++)b[i%5][i/5]=0;sx=sy=9;for(y=0;y<8;y++){if(!(std::cin>>l))break;for(x=0;x<8;x++){if(l[x]=='1'){if(t==9){s=x-1;t=y;}b[x-s][y-t]=1;}}}if (y<8)break;char a='A';if(b...
s620286350
p00036
C++
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import static java.lang.Math.*; import static java.util.Arrays.*; public class Main{ Scanner sc; static final int INF=1<<28; static final double EPS=1e-9; class B{ int[][] a; String name; B(int[][] a, String name){ this.a=a...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ 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.lang.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1...
s255658123
p00036
C++
pln[14][14]; main(i,j,c,f){ while(1){ for(i=3;i<11;i++){ for(j=3;j<11;j++) pln[i][j]=getchar(); if(getchar()==-1) exit(0); } for(i=3;i<11;i++)for(j=3;j<11;j++)pln[i][j]-='0'; getchar(); f=1; for(i=3;f&&i<11;i++)for(j=3;f&&j<11;j++) if(pln[i][j]){ if (pln[i+3][j]) c='B'; else if(pln[i]...
a.cc:1:1: error: 'pln' does not name a type 1 | pln[14][14]; | ^~~ a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token 2 | main(i,j,c,f){ | ^
s039693758
p00036
C++
#include <iostream> #include <string> using namespace std; int main() { char field[11][11]; string r; int i,j; do { for (i=0; i<8; i++) { scanf("%s",field[i]); } for (i=0; i<8; i++) { for (j=0; j<8; j++) { if (field[i][j] == '1')goto b; } } b: if (field[i][j+1] == '1') ...
a.cc: In function 'int main()': a.cc:40:21: error: no matching function for call to 'getline()' 40 | } while (getline() != NULL); | ~~~~~~~^~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/incl...
s550752010
p00036
C++
#include<iostream> #include<string> #include<cstdio> using namespace std; char n[12][12]; char figure[7][4][4] = { {"1100","1100","0000","0000"}, {"1000","1000","1000","1000"}, {"1111","0000","0000","0000"}, {"0100","1100","1000","0000"}, {"1100","0110","0000","0000"}, {"1000","1100","0100","0000"}, {"0110","110...
a.cc:7:10: error: initializer-string for 'char [4]' is too long [-fpermissive] 7 | {"1100","1100","0000","0000"}, | ^~~~~~ a.cc:7:17: error: initializer-string for 'char [4]' is too long [-fpermissive] 7 | {"1100","1100","0000","0000"}, | ^~~~~~ a.cc:7:24: er...
s057683701
p00036
C++
#include<iostream> #include<string> #include<cstdio> using namespace std; char n[12][12]; char figure[7][4][4] = { {"1100","1100","0000","0000"}, {"1000","1000","1000","1000"}, {"1111","0000","0000","0000"}, {"0100","1100","1000","0000"}, {"1100","0110","0000","0000"}, {"1000","1100","0100","0000"}, {"0110","110...
a.cc:7:10: error: initializer-string for 'char [4]' is too long [-fpermissive] 7 | {"1100","1100","0000","0000"}, | ^~~~~~ a.cc:7:17: error: initializer-string for 'char [4]' is too long [-fpermissive] 7 | {"1100","1100","0000","0000"}, | ^~~~~~ a.cc:7:24: er...
s767839023
p00036
C++
#include<iostream> #include<cstdio> using namespace std; int main(){ char n[12][12]; char figure[7][4][4] = { {"1100","1100","0000","0000"}, {"1000","1000","1000","1000"}, {"1111","0000","0000","0000"}, {"0100","1100","1000","0000"}, {"1100","0110","0000","0000"}, {"1000","1100","0100","0000"}, {"0110"...
a.cc: In function 'int main()': a.cc:8:18: error: initializer-string for 'char [4]' is too long [-fpermissive] 8 | {"1100","1100","0000","0000"}, | ^~~~~~ a.cc:8:25: error: initializer-string for 'char [4]' is too long [-fpermissive] 8 | {"1100","1100","000...
s612742843
p00036
C++
#include<iostream> #include<cstdio> using namespace std; int main(){ char n[12][12]; char figure[7][4][4] = { {"1100","1100","0000","0000"}, {"1000","1000","1000","1000"}, {"1111","0000","0000","0000"}, {"0100","1100","1000","0000"}, {"1100","0110","0000","0000"}, {"1000","1100","0100","0000"}, {"0110"...
a.cc: In function 'int main()': a.cc:8:18: error: initializer-string for 'char [4]' is too long [-fpermissive] 8 | {"1100","1100","0000","0000"}, | ^~~~~~ a.cc:8:25: error: initializer-string for 'char [4]' is too long [-fpermissive] 8 | {"1100","1100","000...
s914504668
p00036
C++
00000000 00000000 01100000 00110000 00000000 00000000 00000000 00000000 00011110 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00110000 00110000 00000000 00000000 00000000 00000000
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 00000000 | ^~~~~~~~
s506645447
p00036
C++
#include <iostream> #include <string> using namespace std; const double EPS = 1.0e-6; int main() { while(1){ string all[8]; bool endflg = false; for(int i=0; i<8; i++){ if(!(cin>>all[i])) endflg = true; if(endflg) break; } if(endflg) break; for(int i=0; i<7; i++){ bool breakflg = false; for(...
a.cc: In function 'int main()': a.cc:24:49: error: 'ans' was not declared in this scope; did you mean 'abs'? 24 | ans = "A"; | ^~~ | abs a.cc:26:49: error: 'ans'...
s815788087
p00036
C++
#include <iostream> #include <string> using naemsapce std; int main(){ string s[8]; while(true){ bool end = false; for(int i=0;i<8;i++){ if(!(cin >> s[i])) end = true; } if(end) break; for(int i=0;i<8&&!end;i++){ for(int j=0;j<8&&!end;j++){ if(s[i][j]=='1'){ if(i+3<8&&s[i+3][j]=='1') cout <...
a.cc:4:7: error: expected nested-name-specifier before 'naemsapce' 4 | using naemsapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:7:9: error: 'string' was not declared in this scope 7 | string s[8]; | ^~~~~~ a.cc:7:9: note: suggested alternatives: In file included fr...
s347119840
p00036
C++
#include<stdio.h> char mas[20][20]={0}; char check(x,y){ if(mas[y][x+3]=='1'){ //printf("C\n"); return 'C'; } if(mas[y+2][x+1]=='1'){ //printf("F\n"); return 'F'; } if(x>0){ if(mas[y+2][x-1]=='1'){ //printf("D\n"); return 'D'; } } if(mas[y+3][x]=='1'){ //pr...
a.cc:5:12: error: 'x' was not declared in this scope 5 | char check(x,y){ | ^ a.cc:5:14: error: 'y' was not declared in this scope 5 | char check(x,y){ | ^ a.cc:5:15: error: expression list treated as compound expression in initializer [-fpermissive] 5 | char check(x,y){ ...
s496619539
p00036
C++
#include<iostream> using namespace std; typedef unsigned __int64 ull; int main(){ int shape[7]={0x0303,0x01010101,0x0f, 0x010302,0x0603,0x020301,0x0306}; while(!cin.eof()){ int ans=-1; ull mass=0; for(int i=0;i<64;i++){ char c; cin>>c; if(c=='1')mass |= (ull)1<<i; } for(int i=0;i<64;i++){ fo...
a.cc:3:26: error: expected initializer before 'ull' 3 | typedef unsigned __int64 ull; | ^~~ a.cc: In function 'int main()': a.cc:9:17: error: 'ull' was not declared in this scope 9 | ull mass=0; | ^~~ a.cc:13:35: error: 'mass' was not declared...
s219499356
p00036
C++
#include <iostream> #define rep(i,n) for(int i=0; i<n; i++) using namespace std; int main() { char a, c; int map[10][10]; while(cin >> c) { if(c == '0' || c== '1') { rep(i,10)rep(j,10) map[i][j] = 0; rep(i,8)rep(j,8) { if(!(i + j == 0)) ifs >> c; map[i][j] = (int)(c - '0'); } rep(i,8)...
a.cc: In function 'int main()': a.cc:17:51: error: 'ifs' was not declared in this scope 17 | if(!(i + j == 0)) ifs >> c; | ^~~
s409078603
p00036
C++
#include <iostream> #include <vector> #include <stdio.h> using namespace std; int main() { char c[11][11]; vector<int> v; int dat[7][6]={{1,1,1,1,0,0},{1,0,1,0,1,0},{1,1,0,0,0,0},{1,0,1,0,0,0},{1,1,0,1,0,0}, {1,0,1,1,0,1},{1,1,1,0,0,0}}; int i,j,k,x,y,f; while(true) { f=0; for (i=0;i<8;i++) { i...
a.cc: In function 'int main()': a.cc:14:23: error: 'gets' was not declared in this scope; did you mean 'getw'? 14 | if (gets(c[i])==NULL) { i=10; break;} | ^~~~ | getw a.cc:30:11: error: expected ';' at end of input 30 | return 0 | ...
s360658761
p00036
C++
#include<iostream> #include<string> using namespace std; int main(){ while(1){ string str[8]; for(int i =0;i<8;i++) cin >> str[i]; bool stop = false; for(int i=0;i<8;i++){ for(int k=0;k<8;k++){ if(str[i][k] == '1'){ if(str[i][k+1] == '1' && str[i+1][k+1] == '1'&& str[i+1][k] == '1' ){ cout << "A" << e...
a.cc: In function 'int main()': a.cc:40:10: error: expected '}' at end of input 40 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s454179987
p00036
C++
#include <iostream> #include <stdio.h> using namespace std; int main(){ int mass[8][8]; BEGIN: while(scanf("%d%d%d%d%d%d%d%d",mass[0],mass[0]+1,mass[0]+2,mass[0]+3,mass[0]+4 mass[0]+5,mass[0]+6,mass[0]+7)!=EOF) { for(int i=1;i<8;i++){ scanf("%d%d%d%d%d%d%d%d",mass[i],mass[i]+1,mass[i]+2,mass[i]+3,mass[i]+4...
a.cc: In function 'int main()': a.cc:9:87: error: expected ')' before 'mass' 9 | while(scanf("%d%d%d%d%d%d%d%d",mass[0],mass[0]+1,mass[0]+2,mass[0]+3,mass[0]+4 | ~ ^ | ...
s484450307
p00036
C++
#include <iostream> #include <stdio.h> using namespace std; int main(){ int mass[8][8]; BEGIN: while(scanf("%d%d%d%d%d%d%d%d",mass[0],mass[0]+1,mass[0]+2,mass[0]+3,mass[0]+4 mass[0]+5,mass[0]+6,mass[0]+7)!=EOF) { for(int i=1;i<8;i++){ scanf("%d%d%d%d%d%d%d%d",mass[i],mass[i]+1,mass[i]+2,mass[i]+3,mass[i]+4...
a.cc: In function 'int main()': a.cc:9:87: error: expected ')' before 'mass' 9 | while(scanf("%d%d%d%d%d%d%d%d",mass[0],mass[0]+1,mass[0]+2,mass[0]+3,mass[0]+4 | ~ ^ | ...
s687398971
p00036
C++
#include <iostream> #include <stdio.h> using namespace std; int main(){ int mass[8][8]; BEGIN: while(scanf("%d%d%d%d%d%d%d%d",(*mass[0]),(*mass[0])+1,(*mass[0])+2,(*mass[0])+3,(*mass[0])+4 (*mass[0])+5,(*mass[0])+6,(*mass[0])+7)!=EOF) { for(int i=1;i<8;i++){ scanf("%d%d%d%d%d%d%d%d",(*mass[i]),(*mass[i]+1...
a.cc: In function 'int main()': a.cc:10:17: error: expression cannot be used as a function 9 | while(scanf("%d%d%d%d%d%d%d%d",(*mass[0]),(*mass[0])+1,(*mass[0])+2,(*mass[0])+3,(*mass[0])+4 | ~ 10 | ...
s587517562
p00036
C++
#include<iostream> #include<string> using namespace std; int main(){ string line[8]; while(){ int w = 0, h = 0, t=-1; for(int i=0;i<8;++i) cin >> line[i]; int right=0,left=7; for(int i=0;i<8;++i){ bool exist = false; for(int j=0;j<8;++j){ if((line[i])[j] == '1'){ if(t!=-1)t=i; if...
a.cc: In function 'int main()': a.cc:8:15: error: expected primary-expression before ')' token 8 | while(){ | ^
s535198885
p00036
C++
import java.io.IOException; public class Main { public static void main(String[] args) { try { final int SIZE = 20 + 10 * 8 * ((8 + 4) * 8);// 8桁+終端 を 8行に+空行を10回 byte[] buf = new byte[SIZE];// 入力データをすべて格納する int count = 0;// 文字の先頭からの順番 int limit = System.in.read(buf, 0, SIZE); while (count < limit...
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:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s760772410
p00036
C++
#include<stdio.h> #include<string.h> #include<stdlib.h> void figure(char a[8][8]) { int i,j; for(i=0;i<8;i++) for(j=0;j<8;j++) if(a[i][j]=='1'){ if(a[i][j+1]=='1'){ if(a[i+1][j]=='1' && a[i+1][j+1]=='1') printf("A\n"); else if(a[i][j+2]=='1' && a[i][j+3]=='1') printf("C\n"); else if(...
a.cc: In function 'int main()': a.cc:41:17: error: invalid conversion from 'void*' to 'char*' [-fpermissive] 41 | buf=malloc(sizeof(char)*9); | ~~~~~~^~~~~~~~~~~~~~~~ | | | void*
s328981373
p00036
C++
#include<cstdio> #define REP(i,a,n) for(int i = a;i < n;i++) #define rep(i,n) REP(i,0,n) using namespace std; int in(){int n;scanf("%d",&n); return n;} int main(void){ int atlas[10][10]; rep(i,8){ return 0; }
a.cc: In function 'int main()': a.cc:11:2: error: expected '}' at end of input 11 | } | ^ a.cc:6:15: note: to match this '{' 6 | int main(void){ | ^
s044498683
p00037
Java
import static color.ImageUtility.*; import java.awt.image.BufferedImage; import java.io.*; import java.util.ArrayList; import javax.imageio.ImageIO; public class Main { static int horW[]=new int[20],verW[]=new int[20]; public static void main(String[] args) { try{ BufferedReader br = new ...
Main.java:1: error: package color does not exist import static color.ImageUtility.*; ^ 1 error
s804575070
p00037
Java
import java.io.*; import java.awt.*; import jav.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public static...
Main.java:24: error: illegal start of expression static String turnLeft(String dir){ ^ Main.java:52: error: <identifier> expected static void gotoDirection(String dir,int x,inty){ ^ Main.java:82: error: ']' expected if(y+1<=4&&char[2*x][y]=='1'){ ^ Main.jav...
s475619615
p00037
Java
import java.io.*; import java.awt.*; import jav.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public static...
Main.java:53: error: <identifier> expected static void gotoDirection(String dir,int x,inty){ ^ Main.java:83: error: ']' expected if(y+1<=4&&char[2*x][y]=='1'){ ^ Main.java:83: error: not a statement if(y+1<=4&&char[2*x][y]=='1'){ ^ Main.jav...
s490727940
p00037
Java
import java.io.*; import java.awt.*; import jav.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public static...
Main.java:53: error: <identifier> expected static void gotoDirection(String dir,int x,inty){ ^ Main.java:114: error: illegal start of expression static void gotoPath(int x,int y){ ^ Main.java:127: error: not a statement returm; ^ 3 errors
s298868073
p00037
Java
import java.io.*; import java.awt.*; import jav.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public static...
Main.java:53: error: <identifier> expected static void gotoDirection(String dir,int x,inty){ ^ 1 error
s881958192
p00037
Java
import java.io.*; import java.awt.*; import jav.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public static...
Main.java:3: error: package jav.util does not exist import jav.util.*; ^ Main.java:15: error: cannot find symbol line=br.readLine; ^ symbol: variable readLine location: variable br of type BufferedReader Main.java:32: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Mai...
s591262950
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public stati...
Main.java:15: error: cannot find symbol line=br.readLine; ^ symbol: variable readLine location: variable br of type BufferedReader Main.java:32: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Main.java:46: error: incompatible types: String cannot be converted to boole...
s063658301
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public stati...
Main.java:46: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Main.java:60: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Main.java:74: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Main.java:98: error:...
s997811715
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public stati...
Main.java:46: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Main.java:60: error: incompatible types: String cannot be converted to boolean if(dir="L"){ ^ Main.java:122: error: cannot find symbol d.offerLast(p); ^ symbol: variable d location: class Main Main.java:123: ...
s059634305
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[40]; //n?????????????????????????¨????(?????????n=0?????¨??????"") static int[][] times=new int[5][5]; //????????????x,y????????£??????????¨????(?????????0,0???0??¨??????) public stati...
Main.java:122: error: cannot find symbol d.offerLast(p); ^ symbol: variable d location: class Main Main.java:123: error: cannot find symbol while(que.peekFirst!=null){ ^ symbol: variable peekFirst location: variable que of type Deque<Point> 2 errors
s824112248
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[25]; static int[][] times=new int[5][5]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line...
Main.java:23: error: not a statement times[i][j]~0; ^ Main.java:23: error: ';' expected times[i][j]~0; ^ 2 errors
s240949270
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[25]; static int[][] times=new int[5][5]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line...
Main.java:126: error: ')' expected if((px==0py==0){ ^ Main.java:126: error: not a statement if((px==0py==0){ ^ Main.java:126: error: ';' expected if((px==0py==0){ ^ 3 errors
s113528152
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[25]; static int[][] times=new int[5][5]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line...
Main.java:126: error: ')' expected if((px==0&&py==0){ ^ 1 error
s995141630
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[25]; static int[][] times=new int[5][5]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line...
Main.java:162: error: class, interface, enum, or record expected } ^ 1 error
s254825934
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[25]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line; for(int i=0;i<9;i++){ line=br.read...
Main.java:120: error: variable dir is already defined in method gotoPath(int,int,String) String dir=this.dir; ^ Main.java:120: error: non-static variable this cannot be referenced from a static context String dir=this.dir; ^ Main.java:120: error: cannot find symbol String dir=this.dir; ...
s514725082
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; static String[] dp=new String[25]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line; for(int i=0;i<9;i++){ line=br.read...
Main.java:128: error: cannot find symbol else if(cangoNext(dir,px,py)){ ^ symbol: variable px location: class Main Main.java:128: error: cannot find symbol else if(cangoNext(dir,px,py)){ ^ symbol: variable py location: class Main Main.java:129: error: cannot fi...
s165779495
p00037
Java
import java.io.*; import java.awt.*; import java.util.*; class Main{ static char[][] map=new char[9][5]; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line; for(int i=0;i<9;i++){ line=br.readLine(); for(int j=0;j<4;j++){ map[i...
Main.java:118: error: variable di is already defined in method gotoPath(int,int,String) String di=dirr; ^ Main.java:122: error: variable di is already defined in method gotoPath(int,int,String) String di=dirb; ^ 2 errors
s460222818
p00037
Java
import java.util.Scanner; import java.util.Arrays; public class Main { static int[][] grid; static int MAX_HEIGHT = 9; static int MAX_WIDTH = 9; public static void main (String[] args) { Scanner scan = new Scanner(System.in); grid = new int[MAX_HEIGHT][MAX_WIDTH]; String line; int width, n, pos; fo...
Main.java:69: error: reached end of file while parsing } ^ 1 error
s767840539
p00037
Java
public class Main { enum Vec { R, U, L, D; Vec next() { return (this == R) ? D : (this == D) ? L : (this == L) ? U : R; } } public static void main(String[] args) { Scanner in = new Scanner(System.in); boolean isKisu = true; List<boolean[]> gusu = new ArrayList<boolean[]>(); List<boolean[]> kisu = ne...
Main.java:14: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:16: error: cannot find symbol Li...
s705090232
p00037
Java
public class Main { enum Vec { R, U, L, D; Vec next() { return (this == R) ? D : (this == D) ? L : (this == L) ? U : R; } } public static void main(String[] args) { Scanner in = new Scanner(System.in); boolean isKisu = true; List<boolean[]> gusu = new ArrayList<boolean[]>(); List<boolean[]> kisu = ne...
Main.java:14: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:16: error: cannot find symbol Li...
s156836840
p00037
Java
import java.util.*; public class Main { int[][] mapA = new int[5][4]; int[][] mapB = new int[4][5]; int x, y, d; boolean flag; void U(){ if(flag==true && y>0 && mapB[y-1][x]==1){ d=0; y--; flag = false; System.out.print("U"); } } void R(){ if(flag==true && x<4 && mapA[y][x]==1){ d=1; ...
Main.java:94: error: cannot find symbol new AOJ_0037().solve(); ^ symbol: class AOJ_0037 location: class Main 1 error
s996353251
p00037
Java
import java.util.*; public class Main { int[][] mapA = new int[5][4]; int[][] mapB = new int[4][5]; int x, y, d; boolean flag; void U(){ if(flag==true && y>0 && mapB[y-1][x]==1){ d=0; y--; flag = false; System.out.print("U"); } } void R(){ if(flag==true && x<4 && mapA[y][x]==1){ d=1; ...
Main.java:94: error: cannot find symbol new Main.solve(); ^ symbol: class solve location: class Main 1 error
s798003031
p00037
Java
import java.util.Scanner; //Path on a Grid public class Main { void run(){ int[][] move = {{-1,0},{0,1},{1,0},{0,-1}}; char[] ch = {'U','R','D','L'}; Scanner sc = new Scanner(System.in); boolean[][] e = new boolean[25][25]; int h = 0, t = 0; for(int x=0;x<9;x++){ char[] s = sc.next().toCharArray(); ...
Main.java:42: error: cannot find symbol new AOJ0037().run(); ^ symbol: class AOJ0037 location: class Main 1 error
s304414074
p00037
C
h#include <stdio.h> #include <stdbool.h> #include <string.h> bool wall[10000][10000][4]; char str[10001]; const int U = 0; const int R = 1; const int D = 2; const int L = 3; char dirchar[] = "URDL" ; int righthand(int x) {return (x+1)%4;} int lefthand(int x) {return (x+3)%4;} int dx[] = {0, 1, 0, -1}; int dy[] = {-1...
main.c:1:2: error: stray '#' in program 1 | h#include <stdio.h> | ^ main.c:1:1: error: unknown type name 'h' 1 | h#include <stdio.h> | ^ main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | h#include <stdio.h> | ^ In file included from main.c...
s735184979
p00037
C
#include<stdio.h> char f[6][6],i,j,a,y,x,p; int main() { for(;i<9;++i){ gets(f[5]); for(j=0;j<4+i%2;++j){ a=f[5][j]-48; f[i/2][j]|=a<<(1+i%2); f[i/2+i%2][j+!(i%2)]|=a<<3-i%2*3; } } do{ while(!((f[y][x]>>(p=(p+1)%4))&1)); putchar("URDL"[p]); x+=p?2-p:0; y+=p==3?0:p-1; p=(p+2)%4; }while(y||x|...
main.c: In function 'main': main.c:6:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(f[5]); | ^~~~ | fgets
s958248134
p00037
C
w[25],i;main(d){for(i<9;i++){if(i&1)for(d=0;d<5;d++)getchar()-'0'?w[i/2*5+d]|=2,w[i/2*5+d+5]|=8:0;else for(d=0;d<4;d++)getchar()-'0'?w[i/2*5+d]|=1,w[i/2*5-~d]|=4:0;getchar();}d=!putchar(82);for(i=1;d|i;d&=3)w[i]&1<<d?i+="GKEA"[d]-70,putchar("RDLU"[d]),w[i]&1<<(d+3&3)&&--d:++d;i=!puts("");}
main.c:1:1: warning: data definition has no type or storage class 1 | w[25],i;main(d){for(i<9;i++){if(i&1)for(d=0;d<5;d++)getchar()-'0'?w[i/2*5+d]|=2,w[i/2*5+d+5]|=8:0;else for(d=0;d<4;d++)getchar()-'0'?w[i/2*5+d]|=1,w[i/2*5-~d]|=4:0;getchar();}d=!putchar(82);for(i=1;d|i;d&=3)w[i]&1<<d?i+="GKEA"[d]-70,putchar("RDLU...
s929184884
p00037
C++
#include<iostream> #include<string> using namespace std; int main(){ char ma[11][11]; memset(ma,'0',sizeof(ma)); for(int i=1;i<10;i++){ if(i%2==1) for(int j=2;j<9;j+=2) cin>>ma[i][j]; else for(int j=1;j<10;j+=2) cin>>ma[i][j]; } ...
a.cc: In function 'int main()': a.cc:7:5: error: 'memset' was not declared in this scope 7 | memset(ma,'0',sizeof(ma)); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstring> ...
s604573683
p00037
C++
#include <cstdio> #include <string> #include <iostream> using namespace std; string str[100]; int len; int fie[101][101]; int m; int dx[4]={1,0,-1,0}; int dy[4]={0,1,0,-1}; char s[4]={'R','D','L','U'}; int main(void){ int n=0; while(cin >> str[n])n++; if(n>9){ printf("0\n") return 0; } m=str[0].size(); for(i...
a.cc: In function 'int main()': a.cc:17:30: error: expected ';' before 'return' 17 | printf("0\n") | ^ | ; 18 | return 0; | ~~~~~~
s183455482
p00037
C++
#include <bits/stdc++.h> using namespace std ; #define pb(n) push_back(n) #define fi first #define se second #define all(r) (r).begin(),(r).end() #define vmax(ary) *max_element(all(ary)) #define vmin(ary) *min_element(all(ary)) #define debug(x) cout<<#x<<": "<<x<<endl #define fcout(n) cout<<fixed<<setprecision((n)) #d...
a.cc:40:14: error: expected unqualified-id before '=' token 40 | const string = "DLRU"; | ^
s358678179
p00037
C++
#include<stdio.h>///////AOJ0037 int w[5 ][5],i,j;char(b)[ 128 ],* p;F (// int v){ for (i= scanf("%s" ,b) -1, p=b ;*p ;++ p){ w[p -b+ 1-v ][j +v]|=((w[p -b] ...
a.cc:5:24: error: ISO C++ forbids declaration of 'F' with no type [-fpermissive] 5 | ],* p;F (// | ^ a.cc: In function 'int F(int)': a.cc:15:7: warning: no return statement in function returning non-void [-Wreturn-type] 15 | ;} | ^ a.cc: At global...
s059499492
p00037
C++
#include<stdio.h>///////AOJ0037 int w[5 ][5],i,j;char(b)[ 128 ],* p;F (// int v){ for (i= scanf("%s" ,b) -1, p=b ;*p ;++ p){ w[p -b+ 1-v ][j +v]|=((w[p -b] ...
a.cc:5:24: error: ISO C++ forbids declaration of 'F' with no type [-fpermissive] 5 | ],* p;F (// | ^ a.cc: In function 'int F(int)': a.cc:15:7: warning: no return statement in function returning non-void [-Wreturn-type] 15 | ;} | ^ a.cc: At global...
s667160200
p00037
C++
#include<stdio.h> #define r(i,n) for(int i=0;i<n;++i) int f[5][5]; main(e,f) { r(i,9){ char s[6]; scanf("%s",s); if(i%2){ r(j,5){ int a=s[j]-'0'; f[i/2][j]|=a<<2; f[i/2+1][j]|=a; } }else{ r(j,4){ int a=s[j]-'0'; f[i/2][j]|=a<<1; f[i/2][j+1]|=a<<3; } } } printf("R"); int...
a.cc:4:5: error: expected constructor, destructor, or type conversion before '(' token 4 | main(e,f) | ^
s558071541
p00037
C++
#include <iostream> #include <string> using namespace std; int a[12][12]; int dx[4] = {1,0,-1,0}; int dy[4] = {0,1,0,-1}; char dc[4] = {'R','D','L','U'}; //Ž©•ª‚ÌŽüˆÍ‚Sƒ}ƒX‚̕ǂ̏ó‘Ԃ𒲂ׂé void cheakWall(int* wall , const int& px ,const int& py ,const int& d ){ for(int i=0 ; i<4 ; ++i ){ int mx = px + dx[(d+i)...
a.cc: In function 'void record(std::string&, int*)': a.cc:22:33: error: 'd' was not declared in this scope 22 | s.push_back( dc[d] ); | ^
s908680907
p00037
C++
hoge
a.cc:1:1: error: 'hoge' does not name a type 1 | hoge | ^~~~
s814299072
p00037
C++
hige
a.cc:1:1: error: 'hige' does not name a type 1 | hige | ^~~~
s525232007
p00037
C++
‚«‚イ‚è‚̓zƒ‚
a.cc:1:1: error: extended character ‚ is not valid in an identifier 1 | ‚«‚イ‚è‚̓zƒ‚ | ^ a.cc:1:1: error: extended character « is not valid in an identifier a.cc:1:1: error: extended character ‚ is not valid in an identifier a.cc:1:1: error: extended character ‚ is not valid in an identifier a.cc:1:1: error...