submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s411235947
p00127
C++
/* 0127:Pocket Pager Input */ #include <iostream> #include <string> using namespace std; const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main(void) { char WORDSET[6][5]; int w = 0; for(int i = 0; i < 6; i++) { for(int j = 0; j < 5; j++) { WORDSET[i][j] = WORDS[w]; w++; } } while(1) {...
a.cc:9:24: error: initializer-string for 'const char [30]' is too long [-fpermissive] 9 | const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s615492120
p00127
C++
/* 0127:Pocket Pager Input */ #include <iostream> #include <string> using namespace std; const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main(void) { char WORDSET[6][5]; int w = 0; for(int i = 0; i < 6; i++) { for(int j = 0; j < 5; j++) { WORDSET[i][j] = WORDS[w]; w++; } } while(1) {...
a.cc:9:24: error: initializer-string for 'const char [30]' is too long [-fpermissive] 9 | const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s668960804
p00127
C++
/* 0127:Pocket Pager Input */ #include <iostream> #include <string> using namespace std; const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main(void) { char WORDSET[6][5]; int w = 0; for(int i = 0; i < 6; i++) { for(int j = 0; j < 5; j++) { WORDSET[i][j] = WORDS[w]; w++; } } while(1) {...
a.cc:9:24: error: initializer-string for 'const char [30]' is too long [-fpermissive] 9 | const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s048761520
p00127
C++
/* 0127:Pocket Pager Input */ #include <iostream> #include <string> using namespace std; const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main(void) { char WORDSET[6][5]; int w = 0; for(int i = 0; i < 6; i++) { for(int j = 0; j < 5; j++) { WORDSET[i][j] = WORDS[w]; w++; } } while(1) {...
a.cc:9:24: error: initializer-string for 'const char [30]' is too long [-fpermissive] 9 | const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s055941018
p00127
C++
/* 0127:Pocket Pager Input */ #include <iostream> #include <string> using namespace std; const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main(void) { char WORDSET[6][5]; int w = 0; for(int i = 0; i < 6; i++) { for(int j = 0; j < 5; j++) { WORDSET[i][j] = WORDS[w]; w++; } } while(1) {...
a.cc:9:24: error: initializer-string for 'const char [30]' is too long [-fpermissive] 9 | const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s603360474
p00127
C++
#include<iostream> #include<string> #include<cstdio> #include<algorithm> #include<stack> #include<queue> #include<vector> #include<cmath> #include<utility> #include<set> #include<complex> #include<map> #define vi vector<int> #define vvi vector<vector<int> > #define ll long long int #define vl vector<ll> #define vvl vec...
a.cc: In function 'int main()': a.cc:40:11: error: expected ';' before 'bool' 40 | cin>>s | ^ | ; 41 | bool flag=true; | ~~~~ a.cc:42:44: error: 'flag' was not declared in this scope 42 | if(s.length()%2){cout<<"NA"<<endl; flag=false;} | ...
s267930028
p00127
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a="abcdefghijklmnopqrstuvwxyz.?! "; string b; while(cin>>b){ if(b.length()%2==1) { cout<<"NA"<<endl; goto stop; } string c; for(int i=0;i<b.length();i+=2){ int c,d; c=(int)b[i]-'1'; d=(int)b[i+1]-'0'; int e=c*5+d; if(e>25) {...
a.cc: In function 'int main()': a.cc:24:17: error: jump to label 'stop' 24 | stop:; | ^~~~ a.cc:9:30: note: from here 9 | goto stop; | ^~~~ a.cc:11:24: note: crosses initialization of 'std::string c' 11 | ...
s047718759
p00127
C++
#include <bits/stdc++.h> using namespace std; string s[]={"afkpuz","bglqv.","chmrw?","dinsx!","ejoty "}; int main(){string ss;while(cin>>ss){ if(ss.size()%2==1){cout<<"NA"<<endl;continue;} bool b=1;string ans="";for(int i=0;i<ss.size()-1;i+=2){ if(!('1'<=ss[i+1]&&ss[i+1]<='5')||!('1'<=ss[i]&&ss[i]<='6')){b=0; break;} a...
a.cc: In function 'int main()': a.cc:8:8: error: 'in' was not declared in this scope; did you mean 'i'? 8 | ans+=s[in[i+1]-'0'-1][in[i]-'0'-1];} | ^~ | i
s381207554
p00127
C++
#include<bits/stdc++.h> using namespace std; int main(){ string str[6]={"","aafkpuz","abglqv.","achmrw?" ,"adinsx!","aejoty "}; string str2; while(cin>>str2){ if(str2.size()%2==1) cout<<"NA"<<endl; else{ for(int i=0;i<str2.size();i+=2){ cout<<str[str2[i+1]-'0'][str2[i]-'0']; } ...
a.cc: In function 'int main()': a.cc:14:20: error: expected ';' before '}' token 14 | cout<<endl;34 | ^ | ; 15 | } | ~
s821159638
p00127
C++
#include<iostream> #include<math.h> #include<vector> #include<algorithm> #include<cstdio> using namespace std; int main(){ char l[6][6]={{0}}; for(int i=0;i<5;i++){ for(int j=0;j<5;j++) l[i][j]='a'+i*5+j; } strcpy(l[5],"z.?! "); char str[256]; while(scanf("%s",str)!=EOF){ ...
a.cc: In function 'int main()': a.cc:14:5: error: 'strcpy' was not declared in this scope 14 | strcpy(l[5],"z.?! "); | ^~~~~~ a.cc:6:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 5 | #include<cstdio> +++ |+#include <cstring> 6 | us...
s411746821
p00127
C++
if(a == '6' && b == '3') ans = '?'; if(a == '6' && b == '4') ans = '!'; if(a == '6' && b == '5') ans = ' '; return ans; } int main(void) { char c[200]; char ans[100]; int len = 0; while(scanf("%s", c) != EOF) { int cnt = 0; len = strlen(c); for(int i = 0 ; i < len ; i+=2) { ans[i] ...
a.cc:1:3: error: expected unqualified-id before 'if' 1 | if(a == '6' && b == '3') ans = '?'; | ^~ a.cc:2:3: error: expected unqualified-id before 'if' 2 | if(a == '6' && b == '4') ans = '!'; | ^~ a.cc:3:3: error: expected unqualified-id before 'if' 3 | if(a == '6' && b == '5') ans = ' ...
s603670360
p00127
C++
#include<cstdio> #include<cstring> using namespace std; int main(){ char a[7][7] = {"","*abcde","*fghij","*klmno","*pqrst","*uvwxy","*z.?! "}; while(~scanf("%s",s)){ char s[200]; if(strlen(s)%2==1)printf("NA\n"); else{ for(int i=0;i<strlen(s);i+=2){ printf("%...
a.cc: In function 'int main()': a.cc:7:23: error: 's' was not declared in this scope 7 | while(~scanf("%s",s)){ | ^
s662704654
p00127
C++
/* 0127:Pocket Pager Input */ #include <iostream> #include <string> using namespace std; const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main(void) { char WORDSET[6][5]; int w = 0; for(int i = 0; i < 6; i++) { for(int j = 0; j < 5; j++) { WORDSET[i][j] = WORDS[w]; w++; } } while(1) {...
a.cc:9:24: error: initializer-string for 'const char [30]' is too long [-fpermissive] 9 | const char WORDS[30] = "abcdefghijklmnopqrstuvwxyz.?! "; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s274525471
p00128
Java
import java.util.Scanner; public class AOJ0128 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ abacus(sc.nextInt()); } } static void abacus(int n){ //System.out.println(n); char ch[][]=new char[5][8]; int m[]=new int[5]; if(n>=10000){ m[0]=n/10...
Main.java:3: error: class AOJ0128 is public, should be declared in a file named AOJ0128.java public class AOJ0128 { ^ 1 error
s433466860
p00128
C
#include <stdio.h> main(){ char data[10], data1[10]; int i, j, p=0, temp, c=0, l; while(1){ for(i=0;i<5;i++){ data[i]='0'; } for(i=0;i<6;i++){ if(scanf("%c", &data1[i])==EOF){ p=-1; break; } if(data1[i]=='\n'){ temp=i; break; } } ...
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function 'main': main.c:75:1: error: expected declaration or statement at end of input 75 | } | ^
s537533606
p00128
C
putchar('\n');#include<stdio.h> #include<string.h> #include<stdlib.h> int main(void){ int num,keta[5]; int i,j; scanf("%d",&num); for(i=0;i<5;i++){ keta[4-i]=num%10; num/=10; } /*for(i=0;i<5;i++){ printf("%d",keta[i]); } putchar('\n');*/ for(i=0;i<8;i++){ for(j=0;j...
main.c:1:9: error: expected declaration specifiers or '...' before '\xa' 1 | putchar('\n');#include<stdio.h> | ^~~~ main.c:1:15: error: stray '#' in program 1 | putchar('\n');#include<stdio.h> | ^ main.c:1:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' t...
s437974140
p00128
C++
cnt = 0 while True: d = [[' ' for i in range(8)] for j in range(5)] try: if (cnt != 0): cnt += 1 print n = raw_input() while len(n) < 5: n = '0' + n for i in range(len(n)): if (int(n[i]) <= 4): d[i][0] = '*' ...
a.cc:1:1: error: 'cnt' does not name a type; did you mean 'int'? 1 | cnt = 0 | ^~~ | int
s152471854
p00128
C++
#include <string> #include <iostream> using namespace std; string s; int c; int main() { while(cin >> s) { if(c++) printf("\n"); while(s.size() != 5) s = "0" + s; for(int i = 0; i < 5; i++) printf("%c", s[i] < '5' ? '*' : ' '); printf("\n"); for(int i = 0; i < 5; i++) printf("%c", s[i] > '4' ? '*' : ' '); prin...
a.cc: In function 'int main()': a.cc:13:100: error: 'pritf' was not declared in this scope; did you mean 'printf'? 13 | for(int j = 0; j < 5; j++) printf("%c", (s[i] - 48) % 5 == i ? ' ' : '*'); pritf("\n"); | ...
s049365758
p00128
C++
#include <iostream> using namespace std; int main() { char abacus[8][10] = { "***** ", " *****", "==========", " **** ****", "* **** ***", "** **** **", "*** **** *", "**** **** ", }; int n; while (cin >> n){ int num[5]; char a[8][5]; for (int i = 0; i < 5; i++){ num[4 - i] = n %...
a.cc: In function 'int main()': a.cc:7:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 7 | "***** ", | ^~~~~~~~~~~~ a.cc:8:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 8 | " *****", | ...
s682938241
p00128
C++
#include <iostream> #include <cstdio> using namespace std; int main() { char abacus[8][10] = { "***** ", " *****", "==========", " **** ****", "* **** ***", "** **** **", "*** **** *", "**** **** ", }; int n; while (scanf("%d", &n) != EOF){ int num[5]; char a[8][5]; for (int i = 0; ...
a.cc: In function 'int main()': a.cc:8:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 8 | "***** ", | ^~~~~~~~~~~~ a.cc:9:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 9 | " *****", | ...
s279323601
p00128
C++
#include <iostream> #include <cstdio> using namespace std; int main(void) { char abacus[8][10] = { "***** ", " *****", "==========", " **** ****", "* **** ***", "** **** **", "*** **** *", "**** **** ", }; int n; while (scanf("%d", &n) != EOF){ int num[5]; char a[8][5]; for (int i =...
a.cc: In function 'int main()': a.cc:8:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 8 | "***** ", | ^~~~~~~~~~~~ a.cc:9:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 9 | " *****", | ...
s177115176
p00128
C++
#include <iostream> #include <cstdio> using namespace std; int main(void) { char abacus[8][10] = { "***** ", " *****", "==========", " **** ****", "* **** ***", "** **** **", "*** **** *", "**** **** ", }; int n; bool flag = false; while (scanf("%d", &n) != EOF){ int num[5]; char a[8...
a.cc: In function 'int main()': a.cc:8:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 8 | "***** ", | ^~~~~~~~~~~~ a.cc:9:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 9 | " *****", | ...
s810755823
p00128
C++
#include <iostream> #include <cstdio> using namespace std; int main(void) { char abacus[8][10] = { "***** ", " *****", "==========", " **** ****", "* **** ***", "** **** **", "*** **** *", "**** **** ", }; int n; bool flag = false; while (scanf("%d", &n) != EOF){ int num[5]; char a[8...
a.cc: In function 'int main()': a.cc:8:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 8 | "***** ", | ^~~~~~~~~~~~ a.cc:9:17: error: initializer-string for 'char [10]' is too long [-fpermissive] 9 | " *****", | ...
s843110620
p00128
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ bool f=0; int n,i,j; int a[5]; char a0[11][10]={"* = ****","* =* ***","* =** **","* =*** *","* =**** "," *= ****"," *=* ***"," *=** **"," *=*** *"," *=**** "}; while((cin>>n)!="EOF"){ if(f==1) cout<<endl; a[0]=n/10000; a[1]=(n-a[0]*10000)...
a.cc: In function 'int main()': a.cc:10:23: error: no match for 'operator!=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'const char [4]') 10 | while((cin>>n)!="EOF"){ | ~~~~~~~~^~~~~~~ | | | | ...
s300817731
p00128
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ bool f=false; int n,i,j; int a[5]; char a0[11][10]={"* = ****","* =* ***","* =** **","* =*** *","* =**** "," *= ****"," *=* ***"," *=** **"," *=*** *"," *=**** "}; while((cin>>n)!="EOF"){ if(f==true) cout<<endl; a[0]=n/10000; a[1]=(n-a[0]...
a.cc: In function 'int main()': a.cc:10:23: error: no match for 'operator!=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'const char [4]') 10 | while((cin>>n)!="EOF"){ | ~~~~~~~~^~~~~~~ | | | | ...
s510395892
p00128
C++
#include <bits/stdc++.h> using namespace std; int main() { string N; bool flag = false; while (cin >> N) { if (flag) cout << enld; flag = true; while (N.size() < 5) N = "0" + N; vector<string> s(8); s[2] = "====="; for (int i = 0; i < N.size(); i++) { ...
a.cc: In function 'int main()': a.cc:8:27: error: 'enld' was not declared in this scope 8 | if (flag) cout << enld; | ^~~~
s009585111
p00128
C++
#include<iostream> #include<math.h> #include<vector> #include<algorithm> #include<cstdio> using namespace std; int main() { string s; string soro[10] = {"* = ****", "* =* ***", "* =** **", "* =*** *", "* =**** ", " *= ****", " *=* ***", " *=** **", " *=*** *", " *=**** "}; bool flag = true; while(cin >...
a.cc: In function 'int main()': a.cc:26:13: error: 'i' was not declared in this scope 26 | rep(i,5-s.size()) | ^ a.cc:26:9: error: 'rep' was not declared in this scope; did you mean 'frexp'? 26 | rep(i,5-s.size()) | ^~~ | frexp
s346153358
p00128
C++
#include <cstdio> #include <string> using namespace std; int main() { bool aster[10][7]={0}; for(int i=0; i<10; i++) { if(i<=4) aster[i][0]=1; else aster[i][1]=1; } for(int i=0; i<5; i++) for(int j=0; j<10; j++) if(i!=(j%5)) aster[j][i+2]=1; bool f=false; char buf[9]; while(scanf("%s", buf) != EOF) ...
a.cc: In function 'int main()': a.cc:26:37: error: 'strlen' was not declared in this scope 26 | int cnt[7]={0}, len=strlen(buf); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 ...
s820027570
p00128
C++
#include<iostream> int main() { char abacus[8][5]; bool first=true; while(1) { int num; std::cin>>num; if(std::cin.eof())break; for(int c=4;c>=0;i--) { int digit=num%10; num/=10; int q=digit/5; int s=digit%5; int i=0; if(q==1) { abacus[0][c]=' '; abacus[1][c]='*'; } ...
a.cc: In function 'int main()': a.cc:14:34: error: 'i' was not declared in this scope 14 | for(int c=4;c>=0;i--) | ^
s493590363
p00129
C
#include<stdio.h> #include<math.h> #include<algorithm> const double EPS=1e-10; typedef struct Vec{double x,y;}Vec; typedef struct Cer{double r;Vec cp;}Cer; double dot(Vec a,Vec b){return a.x*b.x+a.y*b.y;} double det(Vec a,Vec b){return a.x*b.y-a.y*b.x;} double D(Vec a){return hypot(a.x,a.y);} Vec F(Vec a,Vec b){Vec p...
main.c:3:9: fatal error: algorithm: No such file or directory 3 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s358772013
p00129
C
#include <stdio.h> #include <math.h> #include <stdlib.h> int i,j,n,m; int wall[200][3],tx,ty,sx,sy; int crosscheck(int tx,int ty,int sx,int sy,int wx,int wy,int rr){ int abx=sx-tx,aby=sy-ty; int awx=wx-tx,awy=wy-ty; int bwx=wx-sx,bwy=wy-sy; int rr2=rr*rr; int aw2=awx*awx+awy*awy; int bw2=bwx*bwx+bwy*bwy; int ...
main.c: In function 'crosscheck': main.c:26:56: error: expected expression before 'double' 26 | if((double)tim*tim/ab2 - (double)rr2 > -0.001 (double)tim*tim/ab2 - (double)rr2 < 0.001) fprintf(stderr,"!!\n"); | ^~~~~~ main.c:26:49: error: called ob...
s462120856
p00129
C
#include <stdio.h> #include <math.h> #include <stdlib.h> int i,j,n,m; int wall[200][3],tx,ty,sx,sy; int crosscheck(int tx,int ty,int sx,int sy,int wx,int wy,int rr){ int abx=tx-sx,aby=ty-sy; int awx=wx-sx,awy=wy-sy; int rr2=rr*rr; int aw2=awx*awx+awy*awy; int bw2=bwx*bwx+bwy*bwy; int ab2=abx*abx+aby*aby; in...
main.c: In function 'crosscheck': main.c:15:17: error: 'bwx' undeclared (first use in this function); did you mean 'bw2'? 15 | int bw2=bwx*bwx+bwy*bwy; | ^~~ | bw2 main.c:15:17: note: each undeclared identifier is reported only once for each function it appears in ...
s276215337
p00129
C++
#include <iostream> using namespace std; #define rep2(x,from,to) for(int x=(from);x<(to);++(x)) #define rep(x,to) rep2(x,0,to) double dot(double ax, double ay, double bx, double by) { return ax*bx+ay*by; } int main() { int n,m; while(cin >> n, n) { double x[100],y[100],r[100]; rep(i,n) { cin >> x[i] >> y[i] >...
a.cc: In function 'int main()': a.cc:23:47: error: 'sqrt' was not declared in this scope 23 | double slen = sqrt(vx2*vx2+vy2*vy2); | ^~~~ a.cc:24:52: error: 'pow' was not declared in this scope 24 | ...
s835157191
p00129
C++
#include <iostream> #include <algorithm> #include <string> #include <math.h> using namespace std; #define EPS 1e-7 int n, m, wall[100][3], pp[4]; bool jud; int main(){ cin >> n; for(int i = 0; i < n; i++){ cin >> wall[i][0] >> wall[i][1] >> wall[i][2]; } cin >> m; for(int i = 0; i < m; i++){ for(int j = 0; j <...
a.cc: In function 'int main()': a.cc:29:41: error: 'aa' was not declared in this scope; did you mean 'a'? 29 | aa = 0; | ^~ | a a.cc:67:41: error: 'aa' was not declared in this scope; d...
s476410287
p00129
C++
#include <bits/stdc++.h> using namespace std; typedef complex<double> P; typedef pair<double, P> C; vector<C> circles; #define FST first #define SND second typedef pair<P, P> S; double dot(P a, P b) { return a.real()*b.real()+a.imag()*b.imag(); } double cross(P a, P b) { return a.real()*b.imag()-a.imag()*b.real(...
a.cc: In function 'double distanceSP(S, P)': a.cc:26:35: error: 'EPS' was not declared in this scope 26 | if (dot(s.SND-s.FST, a-s.FST) < EPS) return abs(a-s.FST); | ^~~ a.cc:27:35: error: 'EPS' was not declared in this scope 27 | if (dot(s.FST-s.SND, a-s.SND) < EPS) re...
s956423997
p00130
Java
gimport java.util.*; import java.io.*; import static java.lang.Math.*; class Main { public static void main( final String[] args ) { final Scanner stdin = new Scanner( System.in ); final int n = Integer.parseInt( stdin.nextLine() ); for ( int t = 0; t < n; t++ ) { final String input = stdin.nextLine();...
Main.java:1: error: class, interface, enum, or record expected gimport java.util.*; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.*; ^ Main.java:3: error: class, interface, enum, or record expected import static java.lang.Math.*; ^ 3 errors
s975343940
p00130
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cctype> #include <vector> #include <map> #include <set> #include <stack> #include <queue> #include <cstring> #include <string> #include <sstream> #include <algorithm> #include <iomanip> using namespace std; typedef vector<int> VI; type...
a.cc:32:17: error: 'INT_MAX' was not declared in this scope 32 | const int INF = INT_MAX / 3; | ^~~~~~~ a.cc:16:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 15 | #include <iomanip> +++ |+#include <climits> 16 | using namesp...
s414664747
p00130
C++
#include <stdio.h> #include <string.h> // int search(char[], char, int); // void swap(char[], int, int); void pre_connect(char[], char, int); int main (){ int n, i, j, count, idx; char str[1024], line[60], train; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",str); line[0] = str[0]; ...
a.cc: In function 'void pre_connect(char*, char, int)': a.cc:65:10: error: expected unqualified-id before 'new' 65 | char new[60]; | ^~~ a.cc:67:8: error: expected type-specifier before '[' token 67 | new[0] = t; | ^ a.cc:70:12: error: expected type-specifier before '[' token ...
s801494977
p00130
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >>n; string s; cin >>s; for(int i=0;i<n;i++){ int array[60]; array[30]=s[0]; int t=30; for(int i=0;i<s.length();i++){ if(){ t += 1; array[t]=s[3*i]; }else{ t -= 1; array[t]=s[3*i]; } ...
a.cc: In function 'int main()': a.cc:14:7: error: expected primary-expression before ')' token 14 | if(){ | ^
s217335692
p00130
C++
#include<iostream> #include<string> void main(){ int n; std::cin >> n; for (int i = 0; i < n; i++){ char train[30]; for (int j = 0; j < 30; j++)train[j] = '?'; int it = 14; std::string str; std::cin >> str; train[it] = str[0]; for (int j = 1; j < str.size(); j++){ if (str[j] == '>'){ it++; ...
a.cc:4:1: error: '::main' must return 'int' 4 | void main(){ | ^~~~
s887464891
p00131
Java
package nofill_nosubmit; import java.util.Scanner; public class AOJ_0131 { static int a[][]; static int light[][]; static int first[]; static boolean judge; public static void main(String[] args) { Scanner in=new Scanner(System.in); int N=in.nextInt(); while(N-->0) { a=new int[10][10]; first=new ...
Main.java:3: error: class AOJ_0131 is public, should be declared in a file named AOJ_0131.java public class AOJ_0131 ^ 1 error
s072585275
p00131
C++
#include <stdio.h> #include <iostream> #include <algorithm> #include <iomanip> #include <map> #include <fstream> #include <sstream> #include <math.h> #include <queue> #include <stack> #include <math.h> using namespace std; void f(bool box[12][12]){ for(int i=1; i<=10; i++){ for(int j=1; j<=10; j++){ ...
a.cc: In function 'int main()': a.cc:43:13: error: 'memcpy' was not declared in this scope 43 | memcpy(box2, box, sizeof(box)); | ^~~~~~ a.cc:12:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 11 | #include <math.h> +++ |+...
s186951301
p00131
C++
#include <iostream> using namespace std; int main() { int n; cin >> n; int state[10][10]; int ans[10][10]; while (n --) { memset(state, 0, sizeof(state)); memset(ans, 0, sizeof(ans)); for (int i=0; i<10; ++i) { for (int j=0; j<10; ++j) { cin >> s...
a.cc: In function 'int main()': a.cc:11:9: error: 'memset' was not declared in this scope 11 | memset(state, 0, sizeof(state)); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include <iostream> +++ |+#includ...
s716639563
p00131
C++
#include <iostream> #include <cstring> #include <algorithm> using namespace std; const int dx[] = {0, -1, 0, 1, 0}; const int dy[] = {-1, 0, 0, 0, 1}; int n; int input[10][10], state[10][10], ans[10][10]; void pass(int y, int x) { for (int i=0; i<5; ++i) { if (0 <= y + dy[i] && y + dy[i] < 10 && 0 <= x ...
a.cc: In function 'int main()': a.cc:45:17: error: 'accumulate' was not declared in this scope 45 | if (accumulate(state[9], state[9] + 10, 0) == 0) break; | ^~~~~~~~~~
s422746431
p00131
C++
#include <iostream> #include <cstring> #include <algorithm> #include <functional> using namespace std; const int dx[] = {0, -1, 0, 1, 0}; const int dy[] = {-1, 0, 0, 0, 1}; int n; int input[10][10], state[10][10], ans[10][10]; void pass(int y, int x) { for (int i=0; i<5; ++i) { if (0 <= y + dy[i] && y +...
a.cc: In function 'int main()': a.cc:46:17: error: 'accumulate' was not declared in this scope 46 | if (accumulate(state[9], state[9] + 10, 0) == 0) break; | ^~~~~~~~~~
s444658860
p00131
C++
#include <iostream> #include <cstring> #include <algorithm> using namespace std; const int dx[] = {0, -1, 0, 1, 0}; const int dy[] = {-1, 0, 0, 0, 1}; int n; int input[10][10], state[10][10], ans[10][10]; void pass(int y, int x) { for (int i=0; i<5; ++i) { if (0 <= y + dy[i] && y + dy[i] < 10 && 0 <= x ...
a.cc: In function 'int main()': a.cc:46:17: error: 'accumulate' was not declared in this scope 46 | if (accumulate(state[9], state[9] + 10, 0) == 0) break; | ^~~~~~~~~~
s594519458
p00131
C++
#include <vector> #include <iostream> #include <list> std::list<int> dfs(std::vector<std::vector<bool>> &state, const int &idx = 1) { if (idx < 10) { int res = 0; for (auto i = 0; i < 10; ++i) { res <<= 1; if (state.at(idx - 1).at(i)) { res += 1; for (const auto &index : { i - 1, i, i + 1 }) { ...
a.cc: In function 'int main()': a.cc:71:43: error: cannot bind non-const lvalue reference of type 'std::_Bit_reference&' to an rvalue of type 'std::_Bit_iterator::reference' 71 | for (auto &cell : line) { | ^~~~
s509332806
p00131
C++
#include<iostream> #include<cstdio> #include<algorithm> #include<string> #include<vector> #include<queue> #include<set> #include<stack> #include<functional> #include<list> using namespace std; int c[10][10]; int f[10][10]; bool s[10][10]; int hanten[2] = { 1,0 }; int dx[5] = { -1,0,0,1,0 }, dy[5] = { 0,-1,1,0,0 }; int...
a.cc: In function 'int main()': a.cc:21:17: error: 'memset' was not declared in this scope 21 | memset(s, false, sizeof(s)); | ^~~~~~ a.cc:11:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 10 | #include<list> +++ ...
s934350407
p00131
C++
#include<bits/stdc++>h> using namespace std; int c[10][10]; int f[10][10]; bool s[10][10]; int hanten[2] = { 1,0 }; int dx[5] = { -1,0,0,1,0 }, dy[5] = { 0,-1,1,0,0 }; int main() { int a; cin >> a; for (int b = 0; b < a; b++) { memset(s, false, sizeof(s)); for (int d = 0; d < 10; d++) { for (int e = 0; e < 10...
a.cc:1:23: warning: extra tokens at end of #include directive 1 | #include<bits/stdc++>h> | ^ a.cc:1:9: fatal error: bits/stdc++>: No such file or directory 1 | #include<bits/stdc++>h> | ^~~~~~~~~~~~~~ compilation terminated.
s630821873
p00131
C++
#include<iostream> #include<vector> #include<queue> #include<cstring> #define MAX 12 #define INFTY 1 << 28 using namespace std; class CMap{ public: int m[MAX][MAX]; vector< pair<int, int> > vHist; CMap(){ memset( m, 0, sizeof(*m) * sizeof(**m) ); } void PassParticle(int i, int j){ const int di[] = {0,-1,0,1,0};...
a.cc: In function 'void BFS(CMap&, CMap&)': a.cc:86:60: error: no matching function for call to 'find(std::vector<CMap>::iterator, std::vector<CMap>::iterator, CMap&)' 86 | if( q.end() == find( q.begin(), q.end(), add ) ) | ...
s997137248
p00131
C++
#include<iostream> #include<vector> #include<queue> #include<cmath> #include<algorithm> #define MAX 12 #define NIL (-1) using namespace std; inline bool inRange(int t, int min, int max){ return (min <= t && t < max); } class CMap{ public: int m[MAX][MAX]; vector< pair<int, int > > vHist; CMap() { for(int i ...
a.cc: In function 'void BFS(CMap&, CMap&)': a.cc:157:30: error: 'V' was not declared in this scope 157 | EraseBlocks( V, M ); | ^
s909638496
p00131
C++
#include <iostream> #include <cstring> using namespace std; int n,s,y,x,i; int d[12][12],b[12][12],a[12][12]; int dx[] = { 0,0,0,1,-1}; int dy[] = {-1,1,0,0, 0}; void flip(x, y) { a[y][x] = 1; for(i=0; i<5; i++) { b[y+dy[i]][x+dx[i]] = 1-b[y+dy[i]][x+dx[i]]; } } int main() { cin >> n; while(n--) { for(y=1...
a.cc:10:6: error: variable or field 'flip' declared void 10 | void flip(x, y) | ^~~~ a.cc: In function 'int main()': a.cc:37:50: error: 'flip' was not declared in this scope 37 | if((i>>(x-1))&1) flip(x,y); | ^~~~ a....
s431990938
p00132
Java
import java.awt.*; import java.awt.geom.*; import java.io.*; import java.util.*; class Main { static int h; static int w; static int[] map; static int n; static int[][][] piece; static int[][] hp; static int[][] wp; static HashMap MAP; public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(...
Main.java:1: error: reached end of file while parsing import java.awt.*; import java.awt.geom.*; import java.io.*; import java.util.*; class Main { static int h; static int w; static int[] map; static int n; static int[][][] piece; static int[][] hp; static int[][] wp; static HashMap MAP; public static void main(String...
s725558407
p00132
Java
import java.awt.*; import java.awt.geom.*; import java.io.*; import java.util.*; class Main { static int h; static int w; static int[] map; static int n; static int[][][] piece; static int[][] hp; static int[][] wp; static HashMap<Integer,Boolean> MAP; public static void main(String[] args) { Scanner s...
Main.java:119: error: cannot find symbol cu[y+l] |= (piece[i][j][l] << t); ^ symbol: variable cu location: class Main 1 error
s744975776
p00132
C++
#include<iostream> #include<vector> #include<algorithm> using namespace std; enum {Blank, Fill}; class Piece{ vector<vector<int>> tile_value[4]; int h_value[4], w_value[4]; int dx_value[4]; int direction; public: Piece(vector<vector<int>> tile) { direction = 0; for(int d = 0; d < ...
a.cc:85:1: error: extended character   is not valid in an identifier 85 |     piece.clear(); | ^ a.cc:85:1: error: extended character   is not valid in an identifier a.cc:85:1: error: extended character   is not valid in an identifier a.cc:85:1: error: extended character   is not valid in an identifier a.cc: I...
s496525052
p00132
C++
#include <iostream> #include <string> #include <vector> using namespace std; class Puzzle { public: int H, W, ulx, uly; vector<int> v; Puzzle() {}; Puzzle(int h, int w) { reset(h, w); }; void reset(int h, int w) { H = h; W = w; v.clear(); v.resize(H); } int get(int i, int j) { return (v[i] >> (H-1-j)) ...
a.cc: In function 'std::string solve()': a.cc:70:29: error: 'ok' was not declared in this scope 70 | if (ok) { | ^~ a.cc:72:49: error: 'ph' was not declared in this scope; did you mean 'pz'? 72 | for (int k=0; k<ph; ++k) { ...
s709840270
p00132
C++
#include <iostream> #include <string> #include <vector> using namespace std; class Puzzle { public: int H, W, ulx, uly; vector<int> v; Puzzle() {}; Puzzle(int h, int w) { reset(h, w); }; void reset(int h, int w) { H = h; W = w; v.clear(); v.resize(H); } int get(int i, int j) { return (v[i] >> (H-1-j)) ...
a.cc: In function 'std::string solve()': a.cc:70:29: error: 'ok' was not declared in this scope 70 | if (ok) { | ^~ a.cc:72:49: error: 'ph' was not declared in this scope; did you mean 'pz'? 72 | for (int k=0; k<ph; ++k) { ...
s637523490
p00132
C++
#include <iostream> #include <vector> #include <string> #include <bitset> #include <algorithm> #include <cstdlib> using namespace std; vector<string> puzzle_flame; int puzzle_size; int puzzle_w; int puzzle_h; int piece_num; struct piece { vector<vector<string> > p; int size; vector<int> sharp_x; vector<int> sharp...
a.cc: In function 'int main()': a.cc:290:1: error: 'it' was not declared in this scope; did you mean 'int'? 290 | it(test_case > 10) abort(); | ^~ | int
s975247024
p00132
C++
#include "bits/stdc++.h" #include<unordered_map> #include<unordered_set> #pragma warning(disable:4996) using namespace std; using ld = long double; template<class t> using table = vector<vector<t>>; const ld eps=1e-9; //// < "d:\d_download\visual studio 2015\projects\programing_contest_c++\debug\a.txt" vector<vector...
a.cc: In function 'bool check(const std::vector<std::vector<int> >&, std::set<int>&)': a.cc:56:83: error: 'a' was not declared in this scope; did you mean 'ax'? 56 | if(ay>=0&&a) | ...
s634491874
p00132
C++
int H, W, n, h[40], w[40], sz[40]; int m, no[10]; char in[20][21], pc[40][20][21]; bool v[20][20], u[20][20]; bool cmp(int a, int b){ return sz[a] > sz[b]; } bool rec(int c){ if(c == m) return 1; memset(u, 0, sizeof(u)); rep(i, H) rep(j, W) if(in[i][j] == '.' && !u[i][j]){ for(int k = c; k < m; k++) rep(t, 4){ ...
a.cc: In function 'bool rec(int)': a.cc:11:9: error: 'memset' was not declared in this scope 11 | memset(u, 0, sizeof(u)); | ^~~~~~ a.cc:1:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' +++ |+#include <cstring> 1 | int H, W, n, ...
s426152158
p00132
C++
#include<iostream> int H, W, n, h[40], w[40], sz[40]; int m, no[10]; char in[20][21], pc[40][20][21]; bool v[20][20], u[20][20]; bool cmp(int a, int b){ return sz[a] > sz[b]; } bool rec(int c){ if(c == m) return 1; memset(u, 0, sizeof(u)); rep(i, H) rep(j, W) if(in[i][j] == '.' && !u[i][j]){ for(int k = c; k < m...
a.cc: In function 'bool rec(int)': a.cc:12:9: error: 'memset' was not declared in this scope 12 | memset(u, 0, sizeof(u)); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cst...
s195259013
p00132
C++
#include<bits/stdc++.h> #define rep(i,n)for(int i=0;i<(n);i++) using namespace std; int H, W, h[10], w[10], n; char f[21][21], c[10][21][21], a[21][21]; bool ok[10]; void rotate(int t) { rep(i, h[t])rep(j, w[t])a[i][j] = c[t][i][j]; fill(c[t][0], c[t][21], 0); rep(i, w[t])rep(j, h[t])c[t][i][j] = a[h[t] - j - 1][i]...
a.cc: In function 'bool dfs(int)': a.cc:36:17: error: jump to label 'g' 36 | g:; | ^ a.cc:26:84: note: from here 26 | if (c[p][k][t] == '#'&&f[i + k][j + t] == '#')goto g; | ...
s896463992
p00132
C++
#include<iostream> #include<vector> using namespace std; #define REP(i,b,n ) for(int i=b;i<n;i++) #define rep(i,n) REP(i,0,n) #define UNFILLED 0 #define FILLED 1 #define ORI true #define DUP false; char inp[20][20]; bool m[20][20]; bool visited[20][20]; typedef struct Info{ int x,y,r,c,rot; }; class Piece{ pub...
a.cc:16:1: warning: 'typedef' was ignored in this declaration 16 | typedef struct Info{ | ^~~~~~~ a.cc:141:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 141 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:185:7: error: 'sort' was not declared in this scope; did yo...
s396431700
p00132
C++
#include<iostream> #include<vector> using namespace std; #define REP(i,b,n ) for(int i=b;i<n;i++) #define rep(i,n) REP(i,0,n) #define UNFILLED 0 #define FILLED 1 #define ORI true #define DUP false; char inp[20][20]; bool m[20][20]; bool visited[20][20]; typedef struct Info{ int x,y,r,c,rot; }; class Piece{ pub...
a.cc:16:1: warning: 'typedef' was ignored in this declaration 16 | typedef struct Info{ | ^~~~~~~ a.cc:139:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 139 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:183:7: error: 'sort' was not declared in this scope; did yo...
s417678038
p00132
C++
#include<iostream> #include<vector> #include<algorithm> using namespace std; #define REP(i,b,n ) for(int i=b;i<n;i++) #define rep(i,n) REP(i,0,n) #define UNFILLED 0 #define FILLED 1 #define ORI true #define DUP false; char inp[20][20]; bool m[20][20]; bool visited[20][20]; typedef struct Info{ int x,y,r,c,rot; ...
a.cc:17:1: warning: 'typedef' was ignored in this declaration 17 | typedef struct Info{ | ^~~~~~~ a.cc:143:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 143 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:184:11: error: expected unqualified-id before ',' token 1...
s113104326
p00132
C++
#include <cstdio> #include <vector> #include <algorithm> #include <string> #include <map> #include <set> #include <queue> #include <cstring> #include <deque> using namespace std; #define reep(i,f,t) for(int i=f ; i<int(t) ; ++i) #define rep(i,n) reep(i, 0, n) typedef vector<int> vi; typedef vector<vi> vvi; typedef ...
a.cc: In function 'int main()': a.cc:228:54: error: 'i' was not declared in this scope; did you mean 'vi'? 228 | puts(reinterpret_cast<char*>(i)); | ^ | vi
s692260802
p00132
C++
#include<iostream> #include<string> #include<vector> using namespace std; int H,W; typedef vector<string> P; P V; vector<P> K; vector<int> Ans; int n; bool same[20][20]; P fill(P All,int ny,int nx,int k,int r){ int h=K[k].size(),w=K[k][0].size(); P temp; if(r==0) temp=K[k]; if(r==1){ for(int x=w-1;x>=0;x--)...
a.cc: In function 'void solve()': a.cc:95:9: error: 'memset' was not declared in this scope 95 | memset(same,false,sizeof(same)); | ^~~~~~ a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include<vector> +++ |+#include...
s528026698
p00132
C++
#include <algorithm> #include <set> #include <bitset> #include <cstdio> #include <map> using namespace std; #define reps(i,f,n) for(int i=f; i<int(n); ++i) #define rep(i,n) reps(i,0,n) struct Piece { int h, w, area, topleft; int map[20]; void input(bool inv) { scanf("%d%d", &h, &w); rep(i, h){ char str[...
a.cc: In function 'bool search(int)': a.cc:125:11: error: 'cnt' was not declared in this scope; did you mean 'int'? 125 | ++cnt; | ^~~ | int
s031294547
p00132
C++
#include <iostream> #include <vector> #include <cstring> using namespace std; class P{ public: int h, w; char t[22][22]; P(){} P(int _h, int _w, char _t[22][22]){ h = _h; w = _w; memcpy(t, _t, sizeof(char) * 22 * 22); } P rotate(){ char tmp[22][22]; for(int i = 0; i < h; i++){ ...
a.cc: In function 'bool solve()': a.cc:215:3: error: 'sort' was not declared in this scope; did you mean 'short'? 215 | sort(v, v + m, cmp); | ^~~~ | short
s810674517
p00132
C++
#include <iostream> #include <vector> #include <cstring> #include <cstdio> #include <cstdlib> using namespace std; class P{ public: int h, w; char t[22][22]; P(){} P(int _h, int _w, char _t[22][22]){ h = _h; w = _w; memcpy(t, _t, sizeof(char) * 22 * 22); } P rotate(){ char tmp[22][22]; ...
a.cc: In function 'bool solve()': a.cc:217:3: error: 'sort' was not declared in this scope; did you mean 'short'? 217 | sort(v, v + m, cmp); | ^~~~ | short
s629643837
p00133
C
#include<stdio.h> char MAP[8][9];//??????????????± void rotate(){//????????????90????????¢ char bM[8][9]; memcpy(bM,MAP,72); for(int i=0;i<8;i++){ for(int j=0;j<8;j++){ MAP[i][j]=bM[7-j][i]; } } } void showmap(){//?????????????????? for(int i=0;i<8;i++){ printf("%s\n",MAP[i]); } } int main(){ for(int i...
main.c: In function 'rotate': main.c:6:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 6 | memcpy(bM,MAP,72); | ^~~~~~ main.c:2:1: note: include '<string.h>' or provide a declaration of 'memcpy' 1 | #include<stdio.h> +++ |+#include <string.h> 2 |...
s858810242
p00133
C
#include"env.h" char s[72],r[72]; R(){ int x,y; memcpy(s,r,71); for(y=0;y<8;y++) for(x=0;x<8;x++) r[x+y*9]=s[y+(7-x)*9]; puts(r); } main(i){ read(0,r,71); for(i=1;i<=3;i++){ printf("%d\n",90*i); R(); } exit(0); }
main.c:1:9: fatal error: env.h: No such file or directory 1 | #include"env.h" | ^~~~~~~ compilation terminated.
s568941423
p00133
C
#include <stdio.h> #incldue <string.h> int rotate(char pat[8][9]) { char buf[8][9]; int x,y; for(y=0;y<8;y++) { for(x=0;x<8;x++) { buf[x][8-y]=pat[y][x]; } } memcpy(pat,buf,sizeof(pat)); } int main(void) { char buf[8][9]; int i; for(i=0;i<8;i++)scanf("%s",buf[i]); rotate(buf); puts("90"); for(i=0;i<...
main.c:2:2: error: invalid preprocessing directive #incldue; did you mean #include? 2 | #incldue <string.h> | ^~~~~~~ | include main.c: In function 'rotate': main.c:12:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 12 | memcpy(pat,buf,sizeof(pat)); ...
s119920888
p00133
C
#include <stdio.h> #include <conio.h> #define N 8 int main(void) { int i,j,k; char sq[N][N]; char change[N][N]; for(i=0; i<N; i++) for(j=0; j<N; j++) sq[i][j]=getche(); for(k=1; k<=3; k++){ printf("%d\n",90*k); for(i=0; i<N; i++) for(j=0; j<N; j++) change[i][j]=sq[i][j]; for(i=0; i<N; i++){ ...
main.c:2:10: fatal error: conio.h: No such file or directory 2 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s317113959
p00133
C++
テ」ツ??include <vector> #include <iostream> #include <utility> #include <algorithm> #include <string> #include <deque> #include <queue> #include <tuple> #include <queue> #include <functional> #include <cmath> #include <iomanip> #include <map> #include <set> #include <numeric> #include <unordered_map> #include <unordered_...
a.cc:1:1: error: extended character 」 is not valid in an identifier 1 | テ」ツ??include <vector> | ^ a.cc:1:1: error: '\U000030c6\U0000300d\U000030c4' does not name a type 1 | テ」ツ??include <vector> | ^~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/i...
s420213830
p00133
C++
#include <iostream> #include <map> #include <cstdio> using namespace std; char MAP[8][9];//ƒ}ƒbƒvî•ñ void rotate(){//ƒ}ƒbƒv‚ð90“x‰ñ“] char bM[8][9]; memcpy(bM,MAP,72); for(int i = 0 ; i < 8 ; i++){ for(int j = 0 ; j < 8 ; j++){ MAP[i][j] = bM[7-j][i]; } } } void showmap() {//ƒ}ƒbƒv‚ðo—Í for(...
a.cc: In function 'void rotate()': a.cc:10:3: error: 'memcpy' was not declared in this scope 10 | memcpy(bM,MAP,72); | ^~~~~~ a.cc:4:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include <cstdio> +++ |+#include <cstring> 4 | using...
s690772448
p00133
C++
#include <iostream> using namespace std; int main(){ string mat[8][8]; for(int i = 0 ; i < 8 ; i++) for(int j = 0 ; j < 8 ; j++) cin >> mat[i][j]; cout << "90" << endl; for(int i = 0 ; i < 8 ; i++) for(int j = 0 ; j < 8 ; j++) cout << mat[8-i-1][j]; cout << "180" << endl; for(int i...
a.cc: In function 'int main()': a.cc:28:3: error: 'retunrn' was not declared in this scope 28 | retunrn 0; | ^~~~~~~
s623969937
p00134
Java
import java.io.*; import java.util.*; // 2011/10/23 // 0134 oŒû’²¸ public class Main { // ƒƒCƒ“ return false‚Å‚¨‚µ‚Ü‚¢ boolean main() throws IOException { int size = 0; try { size = readIntArray()[0]; } catch(Exception e) { return false; } long sum = 0; for(int i = 0; i < size; i++) { ...
Main.java:28: error: unreachable statement return true; // ?????I?? ???? ^ 1 error
s884956599
p00134
Java
public class Main{ public static void main(String a[]) throws java.io.IOException{ Scanner scan = new Scanner(System.in); int n =scan.nextInt(); long sum=0; while(scan.hasNext()){ sum+=scan.nextInt(); } System.out.println(sum/n); } }
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s736333878
p00134
Java
import java.util.Scanner; public class AOJ0134 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nexint(); long a = 0; for(int i=0;i<n;i++)a+=sc.nextint(); System.out.println(a/n); } }
Main.java:2: error: class AOJ0134 is public, should be declared in a file named AOJ0134.java public class AOJ0134 { ^ Main.java:6: error: cannot find symbol long n = sc.nexint(); ^ symbol: method nexint() location: variable sc of type Scanner Main.java:8: error: cannot find symbol for(int ...
s372121861
p00134
Java
import java.util.Scanner; public class AOJ0134 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextint(); long a = 0; for(int i=0;i<n;i++)a+=sc.nextint(); System.out.println(a/n); } }
Main.java:2: error: class AOJ0134 is public, should be declared in a file named AOJ0134.java public class AOJ0134 { ^ Main.java:6: error: cannot find symbol long n = sc.nex?int(); ^ symbol: method nex?int() location: variable sc of type Scanner Main.java:8: error: cannot find symbol for(in...
s900386648
p00134
Java
import java.util.Scanner; public class AOJ0134 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextdouble(); long a = 0; for(int i=0;i<n;i++)a+=sc.nextdouble(); System.out.println(a/n); } }
Main.java:2: error: class AOJ0134 is public, should be declared in a file named AOJ0134.java public class AOJ0134 { ^ Main.java:6: error: cannot find symbol long n = sc.nex?double(); ^ symbol: method nex?double() location: variable sc of type Scanner Main.java:8: error: cannot find symbol ...
s258454045
p00134
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextlong(); long a = 0; for(int i=0) { for(i<n;i++) { a+=sc.nextlong(); System.out.println(a/n); } ...
Main.java:8: error: ';' expected for(int i=0) { ^ Main.java:9: error: > or ',' expected for(i<n;i++) { ^ Main.java:9: error: not a statement for(i<n;i++) { ^ Main.java:9: error: ';' expected for(i<n...
s870957520
p00134
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextlong(); long a = 0; for(int i=0;i<n;i++) { a+=sc.nextlong(); System.out.println(a/n); } } } }
Main.java:14: error: class, interface, enum, or record expected } ^ 1 error
s183025204
p00134
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextlong(); long a = 0; for(int i=0;i<n;i++) { a+=sc.nextlong(); System.out.println(a/n); } } }
Main.java:6: error: cannot find symbol long n = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner Main.java:9: error: cannot find symbol a+=sc.nextlong(); ^ symbol: method nextlong() location: variable sc of typ...
s802889022
p00134
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextlong(); long a = 0; for(int i=0;i<n;i++)a+=sc.nextlong(); System.out.println(a/n); } }
Main.java:6: error: cannot find symbol long n = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner Main.java:8: error: cannot find symbol for(int i=0;i<n;i++)a+=sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type ...
s571434225
p00134
C
double s;d;main(n){for(;~scanf("%d",&d);n--)s-=d;exit(!printf("%d\n",d=s/n-1));
main.c:1:10: warning: data definition has no type or storage class 1 | double s;d;main(n){for(;~scanf("%d",&d);n--)s-=d;exit(!printf("%d\n",d=s/n-1)); | ^ main.c:1:10: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] main.c:1:12: error: return type defaults to 'int' [-Wimplicit-in...
s124952506
p00134
C
sadsa
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input 1 | sadsa | ^~~~~
s159960852
p00134
C
#include <stdio.h> int main(void) { int num; int nownum; int i; int sum; scanf("%d",&num); sum=0; for(i=0;i<num;i++) { scanf("%d",&nownum); sum+=nownum: } printf("%d\n",sum/num); return 0; }
main.c: In function 'main': main.c:12:28: error: expected ';' before ':' token 12 | sum+=nownum: | ^ | ;
s243623356
p00134
C
int main(){long long int i,a,n,s=0;scanf("%lld",&n);for(i=n;i--;s+=a)scanf("%lld",&a);std::printf("%d\n",s/n);}
main.c: In function 'main': main.c:1:36: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | int main(){long long int i,a,n,s=0;scanf("%lld",&n);for(i=n;i--;s+=a)scanf("%lld",&a);std::printf("%d\n",s/n);} | ^~~~~ main.c:1:1: note: include '<...
s471516218
p00134
C
int main(){long long int i,a,n,s=0;scanf("%lld",&n);for(i=n;i--;s+=a)scanf("%lld",&a);std::printf("%d\n",s/n);}
main.c: In function 'main': main.c:1:36: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | int main(){long long int i,a,n,s=0;scanf("%lld",&n);for(i=n;i--;s+=a)scanf("%lld",&a);std::printf("%d\n",s/n);} | ^~~~~ main.c:1:1: note: include '<...
s042915755
p00134
C
#include <cstdio> int main() { long long cus; long long spe[1000000]; long long cnt; scanf("%lld",&cus); int sum=0; for(cnt=0;cnt<cus;cnt++) { scanf("%lld",&spe[cnt]); sum=sum+spe[cnt]; } long long ans; an...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s793990601
p00134
C++
/* 0134:Exit Survery */ #include <iostream> using namespace std; int main(void) { int w; __int64 ave, sum = 0; cin >> w; for(int i = 0; i < w; i++) { int bu; cin >> bu; sum += bu; } ave = sum / w; cout << ave << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: '__int64' was not declared in this scope; did you mean '__int64_t'? 10 | __int64 ave, sum = 0; | ^~~~~~~ | __int64_t a.cc:17:17: error: 'sum' was not declared in this scope 17 | sum += bu; | ...
s877599944
p00134
C++
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main(){ int n long long sum=0; cin>>n; for(int i=0;i<n;i++){ long long int a; cin>>a; sum+=a; } cout<<sum/n<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: expected initializer before 'long' 7 | long long sum=0; | ^~~~ a.cc:8:10: error: 'n' was not declared in this scope 8 | cin>>n; | ^ a.cc:12:9: error: 'sum' was not declared in this scope 12 | sum+=a; | ^~~...
s395246126
p00134
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n&n!=0){ long long sum=0; for(int i=0;i<n;i++){ int a; cin>>a; sum+=a; } sum/=n; cout<<sum<<endl; } }
a.cc: In function 'int main()': a.cc:5:21: error: no match for 'operator&' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'bool') 5 | while(cin>>n&n!=0){ | ~~~~~~^~~~~ | | | | | bool ...
s634076367
p00134
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n&n!=0){ long long sum=0; for(int i=0;i<n;i++){ int a; cin>>a; sum+=a; } sum/=n; cout<<sum<<endl; } }
a.cc: In function 'int main()': a.cc:5:21: error: no match for 'operator&' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'bool') 5 | while(cin>>n&n!=0){ | ~~~~~~^~~~~ | | | | | bool ...
s915883821
p00134
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n&n!=0){ long long sum=0; for(int i=0;i<n;i++){ int a; cin>>a; sum+=a; } sum/=n; cout<<sum<<endl; } }
a.cc: In function 'int main()': a.cc:5:21: error: no match for 'operator&' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'bool') 5 | while(cin>>n&n!=0){ | ~~~~~~^~~~~ | | | | | bool ...
s212265875
p00134
C++
#include <stdio.h> #include <iostream> #include <algorithm> #include <map> #include <vector> int main(){ int n; cin>>n; int sum=0; for(int i=0;i<n;i++){ int u=0; cin>>u; sum+=u; } cout<<sum/n<<endl; }
a.cc: In function 'int main()': a.cc:9:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 9 | cin>>n; | ^~~ | std::cin In file included from a.cc:2: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard in...
s948796049
p00134
C++
import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}} | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:...
s753644997
p00134
C++
#include<iostream> using namespace std; main(){ long long n,m,a=0,i=0; for(cin>>n;i<n;i++)cin>>m,a+=m; cout<<a/<<endl; }
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:6:17: error: expected primary-expression before '<<' token 6 | cout<<a/<<endl; | ^~