submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s044193237 | p00311 | C++ | 0 20
10 0
1 1 10 0 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 0 20
| ^
|
s686362048 | p00311 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int h1, h2, k1, k2, a, b, c, d, p1, p2;
cin >> h1 >> h2 >> k1 >> k2 >> a >> b >> c >> d;
p1 = h1 * a + h2 *b + (h1 / 10) * c + (h2 / 10) * d;
p2 = k1 * a + k2 *b + (k1 / 10) * c + (k2 / 10) * d;
if(p1 > p2){
cout << "hi... | a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before string constant
16 | }else cout "even";
| ^~~~~~~
| ;
|
s159094770 | p00311 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int x1,x2,y1,y2;
cout<<x1<<x2<<y1<<y2;
cout<<a<<b<<c<<d;
int x=x1*a+x1/10*c+x2*b+x2/20*d;
int y=y1*a+y1/10*c+y2*b+y2/20*d;
if(x<y) cout<<k"enjiro"<<endl;
else if(x>y) cout<<"hiroshi"<<endl;
else cout<<"even"<<endl;
retu... | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope
6 | cout<<x1<<x2<<y1<<y2;
| ^~~~
a.cc:7:11: error: 'a' was not declared in this scope
7 | cout<<a<<b<<c<<d;
... |
s244793383 | p00311 | C++ | int main(){
int h1, h2, k1, k2;
int a, b, c, d;
int p1, p2;
cin >> h1 >> h2 >> k1 >> k2 >> a >> b >> c >>d;
p1 = h1 * a + h2 * b + (h1 / 10) * c + (h2 / 10) * d;
p2 = k1 * a + k2 * b + (k1 / 10) * c + (k2 / 10) * d;
if(p1 > p2){
cout << "hiroshi";
}else if(p1 < p2){
cout << "kenziro";
}else... | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> h1 >> h2 >> k1 >> k2 >> a >> b >> c >>d;
| ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "hiroshi";
| ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
... |
s661760763 | p00311 | C++ | int main(){
int h1, h2, k1, k2;
int a, b, c, d;
int p1, p2;
cin >> h1 >> h2 >> k1 >> k2 >> a >> b >> c >>d;
p1 = h1 * a + h2 * b + (h1 / 10) * c + (h2 / 10) * d;
p2 = k1 * a + k2 * b + (k1 / 10) * c + (k2 / 10) * d;
if(p1 > p2){
cout << "hiroshi";
}else if(p1 < p2){
cout << "kenjiro";
}else... | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> h1 >> h2 >> k1 >> k2 >> a >> b >> c >>d;
| ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "hiroshi";
| ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
... |
s292289340 | p00311 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int x1,x2,y1,y2;
cin<<x1<<x2;
cin<<y1<<y2;
cin<<a<<b<<c<<d;
int x=x1*a+x1/10*c+x2*b+x2/20*d;
int y=y1*a+y1/10*c+y2*b+y2/20*d;
if(x<y) cout<<k"enjiro"<<endl;
else if(x>y) cout<<"hiroshi"<<endl;
else cout<<"even"<<endl;
... | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin<<x1<<x2;
| ^~~
a.cc:8:10: error: 'a' was not declared in this scope
8 | cin<<a<<b<<c<<d;
| ... |
s507585705 | p00311 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int x1,x2,y1,y2;
cin<<x1<<x2;
cin<<y1<<y2;
cin<<a<<b<<c<<d;
int x=x1*a+x1/10*c+x2*b+x2/20*d;
int y=y1*a+y1/10*c+y2*b+y2/20*d;
if(x<y) cout<<"kenjiro"<<endl;
else if(x>y) cout<<"hiroshi"<<endl;
else cout<<"even"<<endl;
... | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin<<x1<<x2;
| ^~~
a.cc:8:10: error: 'a' was not declared in this scope
8 | cin<<a<<b<<c<<d;
| ... |
s302147970 | p00311 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int h1,h2,k1,k2;
cin<<h1<<h2;
cin<<k1<<k2;
cin<<a<<b<<c<<d;
int x=h1*a+h1/10*c+h2*b+h2/20*d;
int y=k1*a+k1/10*c+k2*b+k2/20*d;
if(x<y) cout<<"kenjiro";
else if(x>y) cout<<"hiroshi";
else cout<<"even";
return 0;
... | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin<<h1<<h2;
| ^~~
a.cc:8:10: error: 'a' was not declared in this scope
8 | cin<<a<<b<<c<<d;
| ... |
s775731273 | p00311 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int h1,h2,k1,k2;
cin>>h1>>h2;
cin>>k1>>k2;
cin>>a>>b>>c>>d;
int x=h1*a+h1/10*c+h2*b+h2/20*d;
int y=k1*a+k1/10*c+k2*b+k2/20*d;
if(x<y) cout<<"kenjiro";
else if(x>y) cout<<"hiroshi";
else cout<<"even";
return 0;
... | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin>>h1>>h2;
| ^~~
a.cc:8:10: error: 'a' was not declared in this scope
8 | cin>>a>>b>>c>>d;
| ... |
s551416401 | p00311 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int h1,h2,k1,k2;
cin>>h1>>h2;
cin>>k1>>k2;
cin>>a>>b>>c>>d;
int x=h1*a+h1/10*c+h2*b+h2/20*d;
int y=k1*a+k1/10*c+k2*b+k2/20*d;
if(x<y) cout<<"kenjiro";
else if(x>y) cout<<"hiroshi";
else cout<<"even";
return 0;
... | a.cc: In function 'int main()':
a.cc:8:10: error: 'a' was not declared in this scope
8 | cin>>a>>b>>c>>d;
| ^
a.cc:8:13: error: 'b' was not declared in this scope
8 | cin>>a>>b>>c>>d;
| ^
a.cc:8:16: error: 'c' was not declared in this scope
8 | cin>>a>>b>>c>>d;
... |
s391040558 | p00311 | C++ | h1, h2 = gets.split.map(&:to_i)
k1, k2 = gets.split.map(&:to_i)
a, b, c, d, = gets.split.map(&:to_i)
f = -> i, y { a * i + b * y + c * (i / 10) + d * (y / 20) }
h = f[h1, h2]
k = f[k1, k2]
puts h > k ? 'hiroshi' : h < k ? 'kenjiro' : 'even'
| a.cc:7:14: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
7 | puts h > k ? 'hiroshi' : h < k ? 'kenjiro' : 'even'
| ^~~~~~~~~
a.cc:7:34: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
7 | puts h > k ? 'hiroshi' : h < k ? 'ken... |
s029156504 | p00312 | Java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int D = scan.nextInt();
int L = scan.nextInt();
int x;
int y;
x = D/L;
y = x/3;
System.out.println(x+y);
| Main.java:13: error: reached end of file while parsing
System.out.println(x+y);
^
1 error
|
s307693935 | p00312 | C | 1 #include <stdio.h>
2 int main(void){
3 int times,dist,len;
4
5 scanf("%d %d",&dist,&len);
6
7 times=(dist/len)+(dist%len);
8
9 printf("%d\n",times);
10
11 return 0;
12
13 } | main.c:1:2: error: expected identifier or '(' before numeric constant
1 | 1 #include <stdio.h>
| ^
main.c:1:4: error: stray '#' in program
1 | 1 #include <stdio.h>
| ^
|
s780547430 | p00312 | C | 1 #include <stdio.h>
2 int main(void){
3 int times,dist,len;
4
5 scanf("%d %d",&dist,&len);
6
7 times=(dist/len)+(dist%len);
8
9 printf("%d\n",times);
10
11 return 0;
12
13 } | main.c:1:2: error: expected identifier or '(' before numeric constant
1 | 1 #include <stdio.h>
| ^
main.c:1:4: error: stray '#' in program
1 | 1 #include <stdio.h>
| ^
|
s498706106 | p00312 | C | #include<stdio.h>;
int main(void){
int d l,h;
scanf("%d %d",&d,&l);
h=d/l+d%l;
printf("%d\n",h);
return 0;
} | main.c:1:18: warning: extra tokens at end of #include directive
1 | #include<stdio.h>;
| ^
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l'
4 | int d l,h;
| ^
main.c:4:11: error: 'l' undeclared (first use in th... |
s750344448 | p00312 | C | #include<stdio.h>
int main(void){
int d l,h;
scanf("%d %d",&d,&l);
h=d/l+d%l;
printf("%d\n",h);
return 0;
} | main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'l'
4 | int d l,h;
| ^
main.c:4:11: error: 'l' undeclared (first use in this function)
main.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
main.... |
s202663638 | p00312 | C | #include <stdio.h>
int main(void){
scanf("%d %d\n",&dist,&len);
times=(dist/len)+(dist%len);
return 0;
} | main.c: In function 'main':
main.c:3:22: error: 'dist' undeclared (first use in this function)
3 | scanf("%d %d\n",&dist,&len);
| ^~~~
main.c:3:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:28: error: 'len' undeclared (first use in... |
s601845637 | p00312 | C | #include <stdio.h>
2 int main(void)
3 {
4 int time,disit,len;
5 scanf("%d %d",&disit,&len);
6 time = len/disit + len%disit;
7 printf("%d\n",time);
8
9 return 0;
10 } | main.c:2:3: error: expected identifier or '(' before numeric constant
2 | 2 int main(void)
| ^
|
s005359316 | p00312 | C | #include <stdio.h>
int main(void){
int times,dist,len;
scanf("%d %d\n",&dist,&len);
times=(dist/len)+(dist%len);
printf("%d\n",&dist,&len)
return 0;
} | main.c: In function 'main':
main.c:6:30: error: expected ';' before 'return'
6 | printf("%d\n",&dist,&len)
| ^
| ;
7 | return 0;
| ~~~~~~
|
s318906763 | p00312 | C | #include <stdio.h>
int main(void){
int D,L,times;
times=0;
scanf("%d %d",&D,&L);
times=D/L;
times=times+D%L;
printf(""%d\n",times);
return 0;
} | main.c: In function 'main':
main.c:8:12: error: stray '\' in program
8 | printf(""%d\n",times);
| ^
main.c:8:11: error: 'd' undeclared (first use in this function)
8 | printf(""%d\n",times);
| ^
main.c:8:11: note: each undeclared identifier is reported only once for each functio... |
s306300001 | p00312 | C | #include <stdio.h>
int main(void){
int times,dist,len;
scanf("%d %d\n",&dist,&len);
times=(dist/len)+(dist%len);
printf("%d\n",times)
return 0;
} | main.c: In function 'main':
main.c:6:25: error: expected ';' before 'return'
6 | printf("%d\n",times)
| ^
| ;
7 | return 0;
| ~~~~~~
|
s685792015 | p00312 | C | #include <stdio.h>
2 int main (void)
3 {
4 int l,d,t;
5 scanf("%d%d",&d,&l);
6
7 t=d/l+d%l;
8 printf("%d\n",t);
9
10 return 0;
11 } | main.c:2:3: error: expected identifier or '(' before numeric constant
2 | 2 int main (void)
| ^
|
s503772165 | p00312 | C | #include <stdio.h>
int main(void){
int times,dist,len;
scanf("%d %d",&dist,%len);
times=dist/len;
times+=dist%len;
printf("%d\n",times);
return 0;
} | main.c: In function 'main':
main.c:5:25: error: expected expression before '%' token
5 | scanf("%d %d",&dist,%len);
| ^
|
s393120273 | p00312 | C | 1 #include <stdio.h>
2 int main(void){
3 int d, l;
4
5 scanf("%d %d",&d, &l);
6
7 int m = d / l;
8 int n = d % l;
9
10 int s = m + n;
11
12
13 printf("%d\n",s);
14
15
16 return 0;
17 }
18
~
~
~ | main.c:1:3: error: expected identifier or '(' before numeric constant
1 | 1 #include <stdio.h>
| ^
main.c:1:5: error: stray '#' in program
1 | 1 #include <stdio.h>
| ^
main.c:18:2: error: expected identifier or '(' before numeric constant
18 | 18
| ^~
|
s523064428 | p00312 | C | #include <stdio.h>
2 int main(void)
3 {
4 int time,disit,len;
5 scanf("%d %d",&disit,&len);
6 time = len/disit + len%disit;
7 printf("%d\n",time);
8
9 return 0;
10 }
~ | main.c:2:3: error: expected identifier or '(' before numeric constant
2 | 2 int main(void)
| ^
main.c:11:1: error: expected identifier or '(' before '~' token
11 | ~
| ^
|
s265938237 | p00312 | C | #include <stdio.h>
2 int main(void)
3 {
4 int time,disit,len;
5 scanf("%d %d",&disit,&len);
6 time = len/disit + len%disit;
7 printf("%d\n",time);
8
9 return 0;
10 }
~ | main.c:2:3: error: expected identifier or '(' before numeric constant
2 | 2 int main(void)
| ^
main.c:11:1: error: expected identifier or '(' before '~' token
11 | ~
| ^
|
s330432665 | p00312 | C | #include <stdio.h>
2 int main(void)
3 {
4 int time,disit,len;
5 scanf("%d %d",&disit,&len);
6 time = len/disit + len%disit;
7 printf("%d\n",time);
8
9 return 0;
10 }
~ | main.c:2:3: error: expected identifier or '(' before numeric constant
2 | 2 int main(void)
| ^
main.c:11:1: error: expected identifier or '(' before '~' token
11 | ~
| ^
|
s623244074 | p00312 | C | #incude <stdio.h>
int main(void){
int d, l;
scanf("%d %d",&d, &l);
int m = d / l;
int n = d % l;
int s = m + n;
printf("%d\n",s);
return 0;
} | main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
1 | #incude <stdio.h>
| ^~~~~~
| include
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
5 | scanf("%d %d",&d, &l);
| ^~~~~
m... |
s472239278 | p00312 | C++ | #include <stdio.h>
int main(void){
int D,L,sam;
scanf("%d %d",&D,&L);
sam=(D/L)+(D%L);
printf("%d\n",sam);
return 0; | a.cc: In function 'int main()':
a.cc:10:18: error: expected '}' at end of input
10 | return 0;
| ^
a.cc:2:15: note: to match this '{'
2 | int main(void){
| ^
|
s862586515 | p00312 | C++ | #include <iostream>
using namespace std;
int main(){
int d,l;
cin >>d>>l;
int lcount =d/l;
int num=d-lcount*l;
if(num<0){
num =d-lcount*l+l;
cout << num+lcount-1<<endl;
}else cout <<lcount<<endl;
return 0;-1
} | a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before '}' token
12 | return 0;-1
| ^
| ;
13 | }
| ~
|
s394346512 | p00312 | C++ | #include <bits/stdc++.h>
int main() {
int D,L;
std:cin >> D >> L;
int sum;
int a = 1;
while(1) {
sum = L * a;
if(D > sum) {
--a;
break;
}else if(D <= sum) {
++a;
continue;
}
}
std::cout << a + (D - sum) << std::endl;
} | a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | std:cin >> D >> L;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:6... |
s404524083 | p00312 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int d,l,i;
i=0;
cin>>d>>l;
while(d>=l){
d=d-l;
i++
}
cout<<i+d<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:4: error: expected ';' before '}' token
10 | i++
| ^
| ;
11 | }
| ~
|
s535430859 | p00312 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int d,l;
cin>>d>>l;
x=d/l+d%l;
cout<<x<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'x' was not declared in this scope
7 | x=d/l+d%l;
| ^
|
s203144966 | p00313 | C | #include <stdio.h>
int main(int argc, char const *argv[]) {
int n;
int a,b,c;
int count=0;
int x[100],y[100],z[100];
int i,j;
scanf("%d%d%d%d",&n,&a,&b,&c);
for(i=0;i<a;i++){
scanf("%d",x[i] );
}
for(i=0;i<b;i++){
scanf("%d",y[i] );
}
for(i=0;i<c;i++){
scanf("%d",z[i]... | main.c: In function 'main':
main.c:19:14: error: 'k' undeclared (first use in this function)
19 | for(k=0;k<b;k++){
| ^
main.c:19:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:17: error: expected ')' before 'count'
28 | printf("... |
s781802665 | p00313 | C | #include <stdio.h>
int main(int argc, char const *argv[]) {
int n;
int a,b,c;
int count=0;
int x[100],y[100],z[100];
int i,j,k;
scanf("%d%d%d%d",&n,&a,&b,&c);
for(i=0;i<a;i++){
scanf("%d",x[i] );
}
for(i=0;i<b;i++){
scanf("%d",y[i] );
}
for(i=0;i<c;i++){
scanf("%d",z[... | main.c: In function 'main':
main.c:28:17: error: expected ')' before 'count'
28 | printf("%d\n"count);
| ~ ^~~~~
| )
|
s990264552 | p00313 | C++ | #include<stdio.h>
int main(){
int n,x,y,z,lnum=0;
int xnum[100];
int ynum[100];
int znum[100];
scanf("%d\n",&n);
scanf("%d ",&x);
int i;
for(i=0;i<x;i++){
scanf("%d",&xnum[i]);
}
scanf("\n");
scanf("%d",&y);
int ia;
for(ia=0;ia<y;ia++){
scanf("%d",&ynu... | a.cc: In function 'int main()':
a.cc:26:15: error: expected primary-expression before ',' token
26 | int s,h=0;,g;
| ^
a.cc:26:16: error: 'g' was not declared in this scope
26 | int s,h=0;,g;
| ^
|
s568953629 | p00313 | C++ | #include<stdio.h>
int main(){
int n,x,y,z,lnum=0;
int xnum[100];
int ynum[100];
int znum[100];
scanf("%d\n",&n);
scanf("%d ",&x);
int i;
for(i=0;i<x;i++){
scanf("%d ",&xnum[i]);
}
scanf("\n");
scanf("%d ",&y);
int ia;
for(ia=0;ia<y;ia++){
scanf("%d ",&... | a.cc: In function 'int main()':
a.cc:26:15: error: expected primary-expression before ',' token
26 | int s,h=0;,g;
| ^
a.cc:26:16: error: 'g' was not declared in this scope
26 | int s,h=0;,g;
| ^
|
s542309698 | p00313 | C++ | #include<stdio.h>
int main(){
int n,x,y,z,lnum=0;
int xnum[100];
int ynum[100];
int znum[100];
scanf("%d\n",&n);
scanf("%d ",&x);
int i;
for(i=0;i<x;i++){
scanf("%d ",&xnum[i]);
}
scanf("\n");
scanf("%d ",&y);
int ia;
for(ia=0;ia<y;ia++){
scanf("%d ",&... | a.cc: In function 'int main()':
a.cc:26:15: error: expected primary-expression before ',' token
26 | int s,h=0;,g;
| ^
a.cc:26:16: error: 'g' was not declared in this scope
26 | int s,h=0;,g;
| ^
|
s004088791 | p00313 | C++ | #include<stdio.h>
int main(){
int n,x,y,z,lnum=0;
int xnum[100];
int ynum[100];
int znum[100];
scanf("%d\n",&n);
scanf("%d ",&x);
int i;
for(i=0;i<x;i++){
scanf("%d ",&xnum[i]);
}
scanf("\n");
scanf("%d ",&y);
int ia;
for(ia=0;ia<y;ia++){
scanf("%d ",&... | a.cc: In function 'int main()':
a.cc:26:15: error: expected primary-expression before ',' token
26 | int s,h=0;,g;
| ^
a.cc:26:16: error: 'g' was not declared in this scope
26 | int s,h=0;,g;
| ^
|
s916150827 | p00313 | C++ | #include<stdio.h>
int main(){
int n,x,y,z;
int xnum[100];
int ynum[100];
int znum[100];
scanf("%d\n",&n);
scanf("%d ",&x);
int i;
for(i=0;i<x;i++){
scanf("%d ",&xnum[i]);
}
scanf("\n");
scanf("%d ",&y);
int ia;
for(ia=0;ia<y;ia++){
scanf("%d ",&ynum[ia... | a.cc:40:11: error: expected constructor, destructor, or type conversion before '(' token
40 | printf("%d\n",s);
| ^
a.cc:41:5: error: expected unqualified-id before 'return'
41 | return 0;
| ^~~~~~
a.cc:42:1: error: expected declaration before '}' token
42 | }
| ^
|
s552032552 | p00313 | C++ | #include<stdio.h>
int main(){
int n,x,y,z;
int xnum[100];
int ynum[100];
int znum[100];
scanf("%d\n",&n);
scanf("%d ",&x);
int i;
for(i=0;i<x;i++){
scanf("%d ",&xnum[i]);
}
scanf("\n");
scanf("%d ",&y);
int ia;
for(ia=0;ia<y;ia++){
scanf("%d ",&ynum[ia... | a.cc:39:11: error: expected constructor, destructor, or type conversion before '(' token
39 | printf("%d\n",s);
| ^
a.cc:40:5: error: expected unqualified-id before 'return'
40 | return 0;
| ^~~~~~
a.cc:41:1: error: expected declaration before '}' token
41 | }
| ^
|
s820017259 | p00313 | C++ | #include<stdio.h>
int main(void)
{
int n,x,y,z,i,j,flg,fcnt,cnt1,cnt2;
int a[101],b[101],c[101];
scanf("%d %d",&n,&x);
for(i=0;i<x;i++) scanf("%d",&a[i]);
scanf("%d",&y);
for(i=0;i<y;i++) scanf("%d",&b[i]);
scanf("%d",&z);
for(i=0;i<z;i++) scanf("%d",&c[i]);
fcnt=0;
for(i=0;i<x;i++){
for(j=0;j<z;j++){
if... | a.cc: In function 'int main()':
a.cc:38:18: error: expected '}' at end of input
38 | return 0;
| ^
a.cc:3:1: note: to match this '{'
3 | {
| ^
|
s953332555 | p00313 | C++ | #include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int a[n+1]={};
int x;
cin>>x;
for(int i=0;i<x;i++){
int b;
cin>>b;
for(int j=0;j<100;j++){
if(b==j){
a[j]+=1;
}
}
}
int y;
cin>>y;
for(int i=0;i<y;i++){
int b;
cin>>b;
for(int j=0;j<100;j++){
if(b==j){
a[j]+=1... | a.cc:51:5: error: redefinition of 'int main()'
51 | int main(){
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main(){
| ^~~~
|
s081925460 | p00313 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n=0,a=0,count=0;
cin>>n;
int x[3][100];
for(int i=0;i<3;i++){
cin>>a;
for(int j=0;j<a;j++){
cin>>b;
x[i][j]=1;
}
}
for(int j=0;j<a;j++){
if(x[1][j]==0 && x[3][j]=... | a.cc: In function 'int main()':
a.cc:14:18: error: 'b' was not declared in this scope
14 | cin>>b;
| ^
|
s909978987 | p00313 | C++ | #include<bits\stdc++.h>
using namespace std;
int main(){
int n=0,a=0,count=0,b=0,t=0;
cin>>n;
int x[3][100]={};
for(int i=0;i<3;i++){
cin>>a;
t=a;
for(int j=0;j<t;j++){
cin>>b;
x[i][b-1]=1;
}
}
for(int j=0;j<n;j++){
... | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s417349873 | p00313 | 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
| |
s541518449 | p00313 | C++ | #include<iostream>
using namespace std;
int main(){
int n,x[3],p[100]={},ans =0;
cin>>n;
for(int i =0;i<3;i++){
cin>>x[i]
for(int j =0;j<x[i];j++){
int t;
cin>>t;t--;
p[t] += 1;
}
if(i != 2)for(int j=0;j<n;j++)p[j] *= 2;
}
for(int ... | a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'for'
8 | cin>>x[i]
| ^
| ;
9 | for(int j =0;j<x[i];j++){
| ~~~
a.cc:9:22: error: 'j' was not declared in this scope
9 | for(int j =0;j<x[i];j++){
... |
s132589417 | p00313 | C++ | #include<iostream>
using namespace std;
int main(){
int n,x[3],p[100]={},ans =0;
cin>>n;
for(int i =0;i<3;i++){
cin>>x[i]
for(int j =0;j<x[i];j++){
int t;
cin>>t;
t--;
p[t] += 1;
}
if(i != 2)for(int j=0;j<n;j++)p[j] *= 2;
}... | a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'for'
8 | cin>>x[i]
| ^
| ;
9 | for(int j =0;j<x[i];j++){
| ~~~
a.cc:9:22: error: 'j' was not declared in this scope
9 | for(int j =0;j<x[i];j++){
... |
s282863481 | p00313 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
int n,x,t,ans =0;
cin>>n;
set<int>s[3];
for(int i =0;i<3;i++){
cin>>x;
for(int j =0;j<x;j++){
cin>>t;
s[i].insert(t);
}
}
for(int i=o;i<n;i++){
int a[3]={};
for(int j=0;j<3;j++... | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s990085529 | p00313 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,t,ans =0;
cin>>n;
set<int>s[3];
for(int i =0;i<3;i++){
cin>>x;
for(int j =0;j<x;j++){
cin>>t;
s[i].insert(t);
}
}
for(int i=o;i<n;i++){
int a[3]={};
for(int j=0;j<3;j... | a.cc: In function 'int main()':
a.cc:15:15: error: 'o' was not declared in this scope
15 | for(int i=o;i<n;i++){
| ^
|
s261803651 | p00314 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vectot<int> v(n);
for(int i=0;i<n;i++){
cin>>v[i];
}
sort(v.rbegin(),v.rend());
for(int i=0;i<n;i++){
if(v[i]<=i+1){
cout<<i+1<<endl;
return 0;
}
}
}
| a.cc: In function 'int main()':
a.cc:6:5: error: 'vectot' was not declared in this scope
6 | vectot<int> v(n);
| ^~~~~~
a.cc:6:12: error: expected primary-expression before 'int'
6 | vectot<int> v(n);
| ^~~
a.cc:8:14: error: 'v' was not declared in this scope
8 | c... |
s821952873 | p00314 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vector<int> v(101);
fill(v.begin(),v.end(),0)
for(int i=0;i<n;i++){
int a;
cin>>a;
v[a]++;
}
for(int i=100;i>0;i+=-1){
v[i-1]+=v[i];
}
for(int i=100;i>=0;i+=-1){
if(v[i]<=i... | a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before 'for'
7 | fill(v.begin(),v.end(),0)
| ^
| ;
8 | for(int i=0;i<n;i++){
| ~~~
a.cc:8:17: error: 'i' was not declared in this scope
... |
s507786099 | p00314 | C++ | #include <vector>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
int n,i;
scanf("%d",&n);
vector<int>v(n);
for(i=0;i<n;i++)scanf("%d",&v[i]);
sort(v.begin(),v.end(),greater<int>());
for(i=0;i<n&&v[i]>=i+1;i++);
printf("%d\n",i);
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
7 | scanf("%d",&n);
| ^~~~~
a.cc:12:9: error: 'printf' was not declared in this scope
12 | printf("%d\n",i);
| ^~~~~~
a.cc:4:1: note: 'printf' is defined in header '<cstdio>'; this ... |
s423640791 | p00314 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int N;
cin>>N;
int p[100];
for(int i=0;i<N;i++){
cin>>p[i];
}
sort(p,p+N);
int score=0;
for(int i=1; i<=N;i++){
if(((p+N)-lower_bound(p,p+N,i))>=i){
score=i;s
}
else{
break;
}
}
cout<<score<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:20:33: error: 's' was not declared in this scope
20 | score=i;s
| ^
|
s330330835 | p00314 | C++ | #include <stdio.h>
#include <algorithm>
#define rep(i, n) for(int i = 0; i < n; ++i)
int main(void) {
int n, i, j, k;
scanf("%d", &n);
int f[n];
rep(i, n) scanf("%d", &f[i]);
std::sort(f, f + n, std::greater<int>());
rep(i, n) {
if(p[i] <= i + 1) {
ans = p[i];
break;
}
}
printf("%d\... | a.cc: In function 'int main()':
a.cc:10:28: error: 'greater' is not a member of 'std'
10 | std::sort(f, f + n, std::greater<int>());
| ^~~~~~~
a.cc:10:36: error: expected primary-expression before 'int'
10 | std::sort(f, f + n, std::greater<int>());
| ... |
s878212881 | p00314 | 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
| |
s349101461 | p00315 | C | #include<stdio.h>
#include<string.h>
#define MAX_N 1000
int e, n, d, r, c;
char p[MAX_N][MAX_N + 1];
int main(void)
{
int cnt;
int i, j;
scanf( "%d %d ", &e, &n );
for( i=0; i<n; i++ ) {
gets( p[i] );
}
cnt = 0;
while( 1 ) {
for( i=0; i<n/2; i++ ) {
for( j=0; j<n/2; j++ ) {
if ( !(p[j][i] ... | main.c: In function 'main':
main.c:17:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
17 | gets( p[i] );
| ^~~~
| fgets
|
s965654951 | p00315 | C | #include<stdio.h>
#include<string.h>
#define MAX_N 1000
int e, n, d, r, c;
char p[MAX_N][MAX_N + 1];
int main(void)
{
int cnt;
int i, j;
scanf( "%d %d ", &e, &n );
for( i=0; i<n; i++ ) {
gets( p[i] );
}
cnt = 0;
while( 1 ) {
for( i=0; i<n/2; i++ ) {
for( j=0; j<n/2; j++ ) {
if ( !(p[j][i] ... | main.c: In function 'main':
main.c:17:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
17 | gets( p[i] );
| ^~~~
| fgets
|
s646428320 | p00315 | C | #include<stdio.h>
#define N_MAX 10000
char pixel[ N_MAX ][ N_MAX ] ;
int main( void )
{
int SameOrDiff_H( char* ,int* ) ;
int SameOrDiff_V( char(*)[ N_MAX ] ,int* ,int* ) ;
int C ,N ;
scanf( "%d %d" ,&C ,&N ) ;
int cnt ;
int i ,j ;
for( i = cnt = 0 ; i < N ; ++i )
{
scanf( "%s" ,pixel[ i ] ) ;
if( ... | /usr/bin/ld: /tmp/ccjyOsUF.o: in function `main':
main.c:(.text+0x8d): undefined reference to `SameOrDiff_H'
/usr/bin/ld: main.c:(.text+0xcc): undefined reference to `SameOrDiff_V'
/usr/bin/ld: main.c:(.text+0x2c0): undefined reference to `SameOrDiff_H'
/usr/bin/ld: main.c:(.text+0x314): undefined reference to `SameOrD... |
s583463086 | p00315 | C++ | #include<bits/stdc++.h>
usingnamespace std;
int main(){
int c,n;
int m[1000][1000];
cin>>c>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin<<m[i][j];
}
}
bool f=true;
int ans=0;
for(int i=0;i<=n/2+1;i++){
for(int j=0;j<=n/2+1;j++){
if(m[... | a.cc:2:1: error: 'usingnamespace' does not name a type
2 | usingnamespace std;
| ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>c>>n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-... |
s024206245 | p00315 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int c,n;
int m[1000][1000];
cin>>c>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin<<m[i][j];
}
}
bool f=true;
int ans=0;
for(int i=0;i<=n/2+1;i++){
for(int j=0;j<=n/2+1;j++){
if(m... | a.cc: In function 'int main()':
a.cc:9:16: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
9 | cin<<m[i][j];
| ~~~^~~~~~~~~
| | |
| | int
| std::istrea... |
s062937146 | p00315 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int c,n;
int m[1000][1000];
cin>>c>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>m[i][j];
}
}
bool f=true;
int ans=0;
for(int i=0;i<=n/2+1;i++){
for(int j=0;j<=n/2+1;j++){
if(m... | a.cc: In function 'int main()':
a.cc:48:2: error: expected '}' at end of input
48 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s113549437 | p00315 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int c,n;
int m[1000][1000];
cin>>c>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
char c;
cin>>c;
m[i][j]=(c==‘0’?0:1);
}
}
bool f=true;
int ans=0;
for(int i=0;i<(n+1)/2;i++){
... | a.cc:11:25: error: extended character ‘ is not valid in an identifier
11 | m[i][j]=(c==‘0’?0:1);
| ^
a.cc:11:25: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:25: error: '\U000020180\U00002019' was not declared in this scop... |
s261599264 | p00315 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int c,n;
int m[1000][1000];
cin>>c>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
char c;
cin>>c;
m[i][j]=(c=='0'?0:1);
}
}
int ans=0;
set<int> s;
for(int i=0;i<(n+1)/2;i++){
... | a.cc: In function 'int main()':
a.cc:37:9: error: 'f' was not declared in this scope
37 | f=true;
| ^
|
s890009271 | p00315 | C++ | clude <bits/stdc++.h>
using namespace std;
const double eps=1e-9;
typedef vector<int> vi;
typedef long long ll;
string board[1005];
bool sym[1005][1005];
int C,N;
int ans=0;
int miss=0;
unordered_set<int> rowdif;
unordered_set<int> coldif;
vector<set<int> > rowdifset(1005);
vector<set<int> > coldifset(1005);
void judge... | a.cc:1:1: error: 'clude' does not name a type
1 | clude <bits/stdc++.h>
| ^~~~~
a.cc:4:9: error: 'vector' does not name a type
4 | typedef vector<int> vi;
| ^~~~~~
a.cc:6:1: error: 'string' does not name a type
6 | string board[1005];
| ^~~~~~
a.cc:11:1: error: 'unordered_set' does... |
s394986981 | p00315 | C++ | #include<iostream>
#include<set>
#include<algorithm>
using namespace std;
class Point{
public:
int x;
int y;
bool bin;
};
bool operator<(const Point& lp,const Point& rp){
return (lp.x + lp.y) < (rp.x + rp.y);
}
class FourPoint{
public:
Point lu;
Point ru;
Point ld;
Point rd;
friend ostream& operato... | a.cc: In function 'int main()':
a.cc:162:10: error: 'is_delete' was not declared in this scope; did you mean 'timer_delete'?
162 | is_delete = false;
| ^~~~~~~~~
| timer_delete
|
s377648933 | p00315 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
int c,n,d,x,y,count;
count = 0;
cin >> c >> n;
bool table[n][n];
char cha;
for(int i=0; i<n; i++){
for(int j=0; j<n; j++){
cin >> cha;
table[i][j] = cha=='0' ? 0 : 1;
}
}
b... | a.cc: In function 'int main()':
a.cc:28:40: error: 'N' was not declared in this scope
28 | if( (table[i][j] + table[i][N-j] + table[N-i][j] + table[N-i][N-j]) % 4 != 0){
| ^
a.cc:55:42: error: 'N' was not declared in this scope
55 | if( (table[i... |
s376724480 | p00315 | C++ | #include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<vector>
#include<functional>
#include<cmath>
#include<map>
#include<stack>
#include<set>
#include<numeric>
#include<limits>
#include<iterator>
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
... | a.cc: In function 'int main()':
a.cc:47:25: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
47 | scanf_s("%1d",&field[i][j]);
| ^~~~~~~
| scanf
|
s293696399 | p00315 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
#define down_queue(x) priority_queue<x>
#define up_queue(x) priority_queue<x, vector<x>, greater<x>>
#define vec(x) vector<x>
ll gcd(ll a,ll b){while(b){ll tmp = a % b;a = b;b = tmp;}return a;}
ll lcm(ll a,ll b){return a / gcd(a,b) ... | a.cc: In function 'int main()':
a.cc:83:4: error: expected '}' at end of input
83 | }
| ^
a.cc:35:11: note: to match this '{'
35 | int main(){
| ^
|
s323987691 | p00315 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
#define down_queue(x) priority_queue<x>
#define up_queue(x) priority_queue<x, vector<x>, greater<x>>
#define vec(x) vector<x>
ll gcd(ll a,ll b){while(b){ll tmp = a % b;a = b;b = tmp;}return a;}
ll lcm(ll a,ll b){return a / gcd(a,b) ... | a.cc: In function 'int main()':
a.cc:83:4: error: expected '}' at end of input
83 | }
| ^
a.cc:35:11: note: to match this '{'
35 | int main(){
| ^
|
s580888411 | p00315 | C++ | #include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
class Coster {
public:
Coster(int n);
~Coster();
void diff(const int& r, const int& c);
int SymmetryNum();
void FirstSym();
void SymCalc(int r, int c);
bool** pixel;
private:
int symmetry;
int N;
};
Coster::Coster(int n) {
N = n... | a.cc: In function 'int main()':
a.cc:82:32: error: 'r' was not declared in this scope
82 | coster.SymCalc(r,c);
| ^
a.cc:82:34: error: 'c' was not declared in this scope
82 | coster.SymCalc(r,c);
| ^
|
s503673829 | p00315 | C++ | int main() {
int c, n;
cin >> c >> n;
vector<string> p(n);
for(int i = 0; i < n; ++i) {
cin >> p[i];
}
int incorrect = 0;
for(int i = 0; i < n / 2; ++i) {
for(int j = 0; j < n / 2; ++j) {
incorrect += p[i][j] != p[i][n - j - 1] || p[i][j] != p[n - i - 1][j];
... | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
3 | cin >> c >> n;
| ^~~
a.cc:4:5: error: 'vector' was not declared in this scope
4 | vector<string> p(n);
| ^~~~~~
a.cc:4:12: error: 'string' was not declared in this scope
4 | vector<strin... |
s891153509 | p00316 | C | /*
????????? ??¨?´?????????? ???????????????
A ???????????????????????§???????????????A ??????????????????????????¨?´???????????±???????????????????
?????????????????¨????????????A???????????? 1 ?????? N ??????????????????????????? N ??????????????¨???
1 ?????? M ??????????????????????????? M ?¨?????????¨?´???????????... | main.c: In function 'unite':
main.c:102:31: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
102 | if ( size[ a ] > size[ b ]) swap( a, b );
| ^~~~
main.c:106:45: error: 'true' undeclared (first use in this function)
106 | if(id[a]!=-1&&id[b]!=... |
s601882047 | p00316 | C | /*
????????? ??¨?´?????????? ???????????????
A ???????????????????????§???????????????A ??????????????????????????¨?´???????????±???????????????????
?????????????????¨????????????A???????????? 1 ?????? N ??????????????????????????? N ??????????????¨???
1 ?????? M ??????????????????????????? M ?¨?????????¨?´???????????... | main.c: In function 'main':
main.c:270:86: error: expected expression before ')' token
270 | if ( ( t2 < 1 ) || ( t3 < 1 ) || ( t2 > n ) || ( t3 < n ) || ) {
| ^
main.c:283:86: error: expected expression... |
s863046487 | p00316 | C++ | #include<bits/stdc++.h>
using namespace std;
int n,m,k;
vector<int> club;
struct uf{
vector<int> par,ran;
uf(int N){
init(N);
}
void init(int a){
par.resize(a);
ran.resize(a,0);
for(int i=0;i<a;i++){
par[i]=i;
}
}
int find(int x){
retur... | a.cc:74:31: error: extended character — is not valid in an identifier
74 | }else if(club[x]==—1){
| ^
a.cc: In function 'int main()':
a.cc:74:31: error: '\U000020141' was not declared in this scope
74 | }else if(club[x]==—1){
| ... |
s940783134 | p00316 | C++ | #include<bits/stdc++.h>
using namespace std;
int n,m,k;
vector<int> club;
struct uf{
vector<int> par,ran;
uf(int N){
init(N);
}
void init(int a){
par.resize(a);
ran.resize(a,0);
for(int i=0;i<a;i++){
par[i]=i;
}
}
int find(int x){
retur... | a.cc:74:31: error: extended character — is not valid in an identifier
74 | }else if(club[x]==—1){
| ^
a.cc: In function 'int main()':
a.cc:74:31: error: '\U000020141' was not declared in this scope
74 | }else if(club[x]==—1){
| ... |
s388424408 | p00316 | C++ |
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<vector>
#include<functional>
#include<cmath>
#include<map>
#include<stack>
#include<set>
#include<numeric>
#include<limits>
#include<iterator>
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
... | a.cc: In function 'int main()':
a.cc:90:2: error: expected '}' at end of input
90 | }
| ^
a.cc:59:1: note: to match this '{'
59 | {
| ^
|
s773118331 | p00316 | C++ | //0321 部活動調査
//UF木
#include<bits/stdc++.h>
#define LL long long int
using namespace std;
LL bol[200010],r1[200010],r2[200010],club[100010],node[100010],size[100010];
int root(int x){
if(x!=node[x]){
node[x]=return root(node[x]);
}
else return x;
}
int main(void)
{
LL i,j,n,m,k;
cin>>n>>m>>k;
for(i=0;i<k;i++) ci... | a.cc: In function 'int root(int)':
a.cc:9:25: error: expected primary-expression before 'return'
9 | node[x]=return root(node[x]);
| ^~~~~~
a.cc: In function 'int main()':
a.cc:18:46: error: reference to 'size' is ambiguous
18 | for(i=0;i<n;i++) club[i]=0,nod... |
s771899475 | p00317 | C++ | #include <iostream>
#include <vector>
#include <set>
#include <string>
#include <algorithm>
#include <map>
using namespace std;
struct Node
{
int N1 = 0;
int N2 = 0;
Node *C[26] = {};
};
void add(Node *node, string str, int p)
{
node->N2++;
if (p < str.length())
{
if (node->C.coun... | a.cc: In function 'void add(Node*, std::string, int)':
a.cc:23:21: error: request for member 'count' in 'node->Node::C', which is of non-class type 'Node* [26]'
23 | if (node->C.count(str[p]-'a') == 0)
| ^~~~~
a.cc: In function 'int count(Node*, std::string, int)':
a.cc:49:25: error... |
s383970585 | p00317 | C++ | #include<cstdio>
#include<algorithm>
#include<vector>
#include<deque>
#include<stack>
#include<queue>
#include<string>
#include<iostream>
#include<tuple>
#include<utility>
#include<set>
#include<queue>
#include<iomanip>
#include<iterator>
//#include<chrono>
#include<random>
using namespace std;
typedef long long int ll... | a.cc: In function 'int main()':
a.cc:60:33: error: expected ',' or ';' before 'if'
60 | if(it!=word.end()&&(*it)==sla){ans++;}
| ^~
|
s101531730 | p00318 | C++ | #include<bits/stdc++.h>
using namespace std;
#define MAX_N 100001
int n;
double X[MAX_N],R[MAX_N];
bool check(double y){
double l=-1e9;
double r=1e9;
for(int i=0;i<n;i++){
double a=X[i]- sqrt(R[i]*R[i]-y*y);
l=max(l,a);
double b=X[i]+ sqrt(R[i]*R[i]-y*y);
r=min(r,b);
}
return (l<r);
}
int ... | a.cc: In function 'int main()':
a.cc:38:26: error: expected '}' at end of input
38 | printf("%.10f\n",left);
| ^
a.cc:19:11: note: to match this '{'
19 | int main(){
| ^
|
s786483999 | p00318 | C++ | #include <bits/stdc++.h>
using namespace std;
#define MP make_pair
#define F first
#define S second
typedef pair<double, double> P;
int N, wh;
double kh;
P prev, next, next2, xr[100000];
double nx, ny;
P cross(int le, int ri)
{
double xx = (xr[le].S + xr[ri].S) / 2 + (xr[ri].F * xr[ri].F - xr[le].F * xr[le].F) / (2 * ... | a.cc: In function 'int main()':
a.cc:25:9: error: reference to 'prev' is ambiguous
25 | prev = MP(xr[0].S, xr[0].F); // (x, r)
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_... |
s646813733 | p00320 | C++ | using namespace std;
int main(){
int a2,a4,a6,b2,b4,b6,c,q,i,j,z=0,k=1,m[1000][1000]={0};
int a[1000]={0},b[1000]={0},w[1000]={0},e[5][2]={0};
for(a2=a4=a6=b2=b4=b6=i=0;i<6;i++){
cin>>q>>c;
w[q]++;
w[c]++;
if(q>c)m[q][c]++;
else m[c][q]++;
}
for(i=0;i<1000;i++){
for(j=0;j<1000;j++){
... | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin>>q>>c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:31:65: error: ... |
s003495875 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int c,b,i,j,z=0,k=1,m[1001][1001]={0},e[6][2]={0};
for(i=0;i<6;i++){
cin>>b>>c;
if(b>c)m[b][c]++;
else m[c][b]++;
}
for(i=0;i<1001;i++)for(j=0;j<1001;j++){
if(m[i][j]==6){e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
... | a.cc:16:3: error: expected unqualified-id before 'if'
16 | if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1]||o>3)k=0;
| ^~
a.cc:17:3: error: expected unqualified-id before 'if'
17 | if(k)cout<<"yes"<<endl;
| ^~
a.cc:18:3: error: expected unqualified-id before 'else'
18 | else cout<... |
s415224284 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
????for(i=0;i<6;i++){
????????cin>>q>>c;
????????w[q]++;
????????w[c]++;
????????if(q>c)m[q][c]++;
????????else m[c][q]++;
????}
????for(i=0;i<1001;i++){
????... | a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
| ^
a.cc:4:2: error: expected primary-expression before '?' token
4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
| ^
a.cc:4:3: error: expected primary... |
s884196948 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
for(i=0;i<6;i++){
cin>>q>>c;
w[q]++;
w[c]++;
if(q>c)m[q][c]++;
else m[c][q]++;
}
for(i=0;i<1001;i++){
if(w[i])o++;
for(j=0;j<1001;j++){
if(m[i][j])for(o=0;o<m[i][j]/2... | a.cc: In function 'int main()':
a.cc:16:31: error: expected ';' before ')' token
16 | if(m[i][j])for(o=0;o<m[i][j]/2){e[z][0]=i;e[z++][1]=j;}
| ^
| ;
|
s397061220 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
for(i=0;i<6;i++){
cin>>q>>c;
w[q]++;
w[c]++;
if(q>c)m[q][c]++;
else m[c][q]++;
}
for(i=0;i<1001;i++){
if(w[i])o++;
for(j=0;j<1001;j++){
if(m[i][j])for(o=0;o<m[i][j]/2... | a.cc: In function 'int main()':
a.cc:16:31: error: expected ';' before ')' token
16 | if(m[i][j])for(o=0;o<m[i][j]/2){e[z][0]=i;e[z++][1]=j;}
| ^
| ;
|
s201834552 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
????int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
????for(i=0;i<6;i++){
????????cin>>q>>c;
????????if(q>c)m[q][c]++;
????????else m[c][q]++;
????}
????for(i=0;i<1001;i++){
????????????for(j=0;j<1001;j++){
???... | a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
| ^
a.cc:4:2: error: expected primary-expression before '?' token
4 | ????int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
| ^
a.cc:4:3: error: expected primary... |
s479774098 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int c,q,i,j,z=0,k=1,m[1001][1001]={0},e[6][2]={0};
for(i=0;i<6;i++){
cin>>q>>c;
if(q>c)m[q][c]++;
else m[c][q]++;
}
for(i=0;i<1001;i++)for(j=0;j<1001;j++){
if(m[i][j]&&m[i][j]%2==0)for(c=0;c<m[i][j]/2;c++){e[z][0]=i;e[z++][1]=j;}
}
... | a.cc:14:3: error: expected unqualified-id before 'if'
14 | if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
| ^~
a.cc:15:3: error: expected unqualified-id before 'if'
15 | if(k)cout<<"yes"<<endl;
| ^~
a.cc:16:3: error: expected unqualified-id before 'else'
16 | else cout<<"no"... |
s267534378 | p00320 | C++ | #include <vector>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
int n,i;
vector<pair<int,int> >v(6);
for(i=0;i<6;i++){
scanf("%d%d",&v[i].first,&v[i].second);
if(v[i].first>v[i].second)swap(v[i].first,v[i].second);
}
sort(v.begin(),v.end());
puts(v[0]==v[1] && v[2]==v[3] && v[4]=... | a.cc: In function 'int main()':
a.cc:9:17: error: 'scanf' was not declared in this scope
9 | scanf("%d%d",&v[i].first,&v[i].second);
| ^~~~~
a.cc:13:9: error: 'puts' was not declared in this scope
13 | puts(v[0]==v[1] && v[2]==v[3] && v[4]==v[5] ? "yes" : "no");
... |
s142195661 | p00320 | C++ | #include "stdafx.h"
#include<iostream>
#include<map>
#include<vector>
#include<algorithm>
using namespace std;
typedef pair<int, int> P;
int main() {
vector<P>v;
for (int i = 0;i < 6;i++) {
int a, b;
cin >> a >> b;
v.push_back(make_pair(max(a, b), min(a, b)));
}
sort(v.begin(), v.end());
if (v[0] == v[1] &... | a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s180387682 | p00320 | C++ | #include <iostream>
#include <map>
#include <utility>
using namespace std;
int main(void){
std::map<pair<int,int>,bool > m;
int a,b;
for(int i=0;i<6;i++){
cin>>a>>b;
if(s[make_pair(a,b)]){
cout<<"no"<<endl;
return 0;
}
s[make_pair(a,b)]=true;
}
if(m.size()==3)cout<<"yes"<<endl;
else cout<<"no"<<end... | a.cc: In function 'int main()':
a.cc:11:20: error: 's' was not declared in this scope
11 | if(s[make_pair(a,b)]){
| ^
a.cc:15:17: error: 's' was not declared in this scope
15 | s[make_pair(a,b)]=true;
| ^
|
s839368576 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
pair<int,int> a[6];for(int i=0;i<6;i++){
cin>>a[i].first>>a[i].second;
if(a[i].first>a[i].second){
int tmp=a[i].first;
a[i].first=a[i].second;
a[i].second=tmp;
}
}
sort(a,a+6);
set<int>s;
if(a[0]==a[1]){
s.insert(a[0].sirst);
s.insert(a[... | a.cc: In function 'int main()':
a.cc:15:31: error: 'struct std::pair<int, int>' has no member named 'sirst'; did you mean 'first'?
15 | s.insert(a[0].sirst);
| ^~~~~
| first
a.cc:18:39: error: 'struct std::pair<int, int>' has no ... |
s804105169 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
pair<int,int> a[6];for(int i=0;i<6;i++){
cin>>a[i].first>>a[i].second;
if(a[i].first>a[i].second){
int tmp=a[i].first;
a[i].first=a[i].second;
a[i].second=tmp;
}
}
sort(a,a+6);
set<int>s;
if(a[0]==a[1]){
s.insert(a[0].first);
s.insert(a[... | a.cc: In function 'int main()':
a.cc:23:48: error: 'out' was not declared in this scope
23 | if(s.size()<=3)out<<"yes\n";
| ^~~
|
s257789504 | p00320 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
pair<int,int> a[6];for(int i=0;i<6;i++){
cin>>a[i].first>>a[i].second;
if(a[i].first>a[i].second){
int tmp=a[i].first;
a[i].first=a[i].second;
a[i].second=tmp;
}
}
sort(a,a+6);
set<int>s;
if(a[0]==a[1]){
s.insert(a[0].first);
s.insert(a[... | a.cc: In function 'int main()':
a.cc:25:45: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
25 | if(s[0]==s[2]&&s[2]==s[4])cout<<"no\n";
| ^
a.cc:25:51: error: no match for 'operator[]' (operand t... |
s049919732 | p00320 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
class plane{
public:
int w,h;
};
bool operator==(plane &a,plane &b){
if(a.h>a.w){
swap(a.h,a.w);
}
if(b.h>b.w){
swap(b.h,b.w);
}
return a.h==b.h&&a.w==b.w;
}
bool func(vector<plane> &);
int main(){
vector<plane> line(6);
for(int ... | a.cc: In function 'bool func(std::vector<plane>&)':
a.cc:35:25: error: 'breka' was not declared in this scope
35 | breka;
| ^~~~~
|
s380126670 | p00320 | C++ | #include <stdio.h>
#include <vector>
using namespace std;
#define PB push_back
struct b{
int h;
int w;
bool operator ==(const b &a){return (h==a.h&&w==a.w)||(h==a.w&&w==a.h);}
void in(){
scanf("%d%d",&h,&w);
return ;
}
void reset(){
h=w=0;
return ;
}
bool ... | a.cc: In function 'void swap(const b&, const b&)':
a.cc:26:7: error: passing 'const b' as 'this' argument discards qualifiers [-fpermissive]
26 | a=r;
| ^
a.cc:18:10: note: in call to 'void b::operator=(const b&)'
18 | void operator =(const b &a){
| ^~~~~~~~
a.cc:27:7: error: ... |
s867826081 | p00321 | C++ | #include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<map>
using namespace std;
class key2{
public:
string s,t;
key2(string a,string b){
if(a>b){
swap(a,b);
}
s=a;
t=b;
}
};
bool operator<(const key2 &a,const key2 &b){
return a.s<b... | a.cc: In function 'int main()':
a.cc:61:16: error: template argument 1 is invalid
61 | vector<data> anslist;
| ^
a.cc:61:16: error: template argument 2 is invalid
a.cc:64:21: error: request for member 'push_back' in 'anslist', which is of non-class type 'int'
64 | anslist.push... |
s253612340 | p00321 | C++ | int
| a.cc:1:4: error: expected unqualified-id at end of input
1 | int
| ^
|
s018513983 | p00323 | C++ |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7
__attribute__((constructor))
void initial() {
cin.tie(0);
ios::sync_with_s... | a.cc: In function 'int main()':
a.cc:29:10: error: 'b' was not declared in this scope
29 | if(a[b + c] > 2) {
| ^
a.cc:29:14: error: 'c' was not declared in this scope
29 | if(a[b + c] > 2) {
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.