submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s425960793 | p03711 | C++ | #include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<numeric>
#include <algorithm>
using namespace std;
int input(){
int x;
cin>>x;
return x;
}
int abs(int x){
if(x>=0){
return x;
}else{
return -x;
}
}
int gcd(int x, int y){
if(x<y){
return gcd(y,x);
}
if(y==0){
return x;
}
return gcd(y,x%y);
}
int moji(char i){
if(i=='a'){
return 1;
}
if(i=='b'){
return 2;
}
if(i=='c'){
return 3;
}
if(i=='d'){
return 4;
}
if(i=='e'){
return 5;
}
if(i=='f'){
return 6;
}
if(i=='g'){
return 7;
}
if(i=='h'){
return 8;
}
if(i=='i'){
return 9;
}
if(i=='j'){
return 10;
}
if(i=='k'){
return 11;
}
if(i=='l'){
return 12;
}
if(i=='m'){
return 13;
}
if(i=='n'){
return 14;
}
if(i=='o'){
return 15;
}
if(i=='p'){
return 16;
}
if(i=='q'){
return 17;
}
if(i=='r'){
return 18;
}
if(i=='s'){
return 19;
}
if(i=='t'){
return 20;
}
if(i=='u'){
return 21;
}
if(i=='v'){
return 22;
}
if(i=='w'){
return 23;
}
if(i=='x'){
return 24;
}
if(i=='y'){
return 25;
}
if(i=='z'){
return 26;
}
return 100;
}
int main() {
int x=input();
int y=input();
int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
if(a[x]==a[y]){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:118:12: error: expected identifier before numeric constant
118 | int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
| ^
a.cc:118:13: error: expected ']' before ',' token
118 | int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
| ^
| ]
a.cc: In lambda function:
a.cc:118:13: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:118:11: error: initializer fails to determine size of 'a'
118 | int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
| ^~
a.cc:118:11: error: array must be initialized with a brace-enclosed initializer
a.cc:118:14: error: expected unqualified-id before numeric constant
118 | int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
| ^
|
s026650174 | p03711 | C++ | x,y = gets.chomp.split(" ").map(&:to_i);
a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]
if (a.include?(x) && a.include?(y)) || (b.include?(x) && b.include?(y))||(c.include?(x) && c.include?(y))
puts 'Yes'
else
puts 'No'
end | a.cc:7:10: warning: multi-character character constant [-Wmultichar]
7 | puts 'Yes'
| ^~~~~
a.cc:9:10: warning: multi-character character constant [-Wmultichar]
9 | puts 'No'
| ^~~~
a.cc:1:1: error: 'x' does not name a type
1 | x,y = gets.chomp.split(" ").map(&:to_i);
| ^
a.cc:2:1: error: 'a' does not name a type
2 | a = [1, 3, 5, 7, 8, 10, 12]
| ^
|
s363843921 | p03711 | C++ | x,y = gets.chomp.split(" ").map(&:to_i);
A = [1, 3, 5, 7, 8, 10, 12]
B = [4,6,9,11]
C = [2]
if A.include?(x) then
x = 'A'
elsif B.include?(x) then
x = 'B'
else
x = 'C'
end
if A.include?(y) then
y = 'A'
elsif B.include?(y) then
y = 'B'
else
y ='C'
end
if x == y
puts 'Yes'
else
puts 'No'
end | a.cc:23:10: warning: multi-character character constant [-Wmultichar]
23 | puts 'Yes'
| ^~~~~
a.cc:25:10: warning: multi-character character constant [-Wmultichar]
25 | puts 'No'
| ^~~~
a.cc:1:1: error: 'x' does not name a type
1 | x,y = gets.chomp.split(" ").map(&:to_i);
| ^
a.cc:2:1: error: 'A' does not name a type
2 | A = [1, 3, 5, 7, 8, 10, 12]
| ^
|
s237700090 | p03711 | C | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:40: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~
main.c:1:40: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:150: error: 'y' undeclared (first use in this function)
1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^
main.c:1:150: note: each undeclared identifier is reported only once for each function it appears in
|
s480477758 | p03711 | C | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");} | main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:29: error: expected ')' before '}' token
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ~ ^
| )
main.c:1:29: error: expected ';' before '}' token
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^
| ;
main.c: At top level:
main.c:1:31: error: expected identifier or '(' before 'if'
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~
main.c:1:51: error: expected identifier or '(' before 'else'
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~
main.c:1:140: error: expected identifier or '(' before 'else'
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^~~~
main.c:1:186: error: expected identifier or '(' before '}' token
1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
| ^
|
s636134255 | p03711 | C++ | #include<cstdio>
#include<cstring>
#include<algorithm>
#include<queue>
#include<map>
#include<iostream>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
int main()
{
int a, b;
cin >> a >> b;
map<int, int> mp1, mp2, mp3;
mp1.clear();mp2.clear();mp3.clear();
mp1[1]=1;mp1[3] = 1; mp1[5] = 1; mp1[7] = 1;mp1[8] = 1;mp1[10] = 1;mp1[12] = 1;
mp2[4] = 1;mp2[6] = 1;mp2[9] = 1;mp2[11] = 1;mp3[2] = 1;
if(mp1[a] && mp1[b])
printf("Yes\n");
else if(mp2[a] && mp2[b])
printf("Yes\n");
else if(mp3[a] && mp3[b])
pritnf("Yes\n");
else printf("No\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:25:9: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
25 | pritnf("Yes\n");
| ^~~~~~
| printf
|
s248681957 | p03711 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> group1 = {1, 3, 5, 7, 8, 10, 12};
vector<int> group2 = {4, 6, 9, 11};
int type_x=0, type_y=0;
for(int i=0;i<7;i++) {
if(group1(i) == x) type_x=1;
if(group1(i) == y) type_y=1;
}
for(int i=0;i<4;i++) {
if(group2(i) == x) type_x=2;
if(group2(i) == y) type_y=2;
}
if(type_x == type_y) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:14:26: error: no match for call to '(std::vector<int>) (int&)'
14 | if(group1(i) == x) type_x=1;
| ~~~~~~^~~
a.cc:15:26: error: no match for call to '(std::vector<int>) (int&)'
15 | if(group1(i) == y) type_y=1;
| ~~~~~~^~~
a.cc:19:26: error: no match for call to '(std::vector<int>) (int&)'
19 | if(group2(i) == x) type_x=2;
| ~~~~~~^~~
a.cc:20:26: error: no match for call to '(std::vector<int>) (int&)'
20 | if(group2(i) == y) type_y=2;
| ~~~~~~^~~
|
s764100364 | p03711 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> group1 = {1, 3, 5, 7, 8, 10, 12}, group2 = {4, 6, 9, 11};
int type_x=0, type_y=0;
for(int i=0;i<7;i++) {
if(group1(i) == x) type_x=1;
if(group1(i) == y) type_y=1;
}
for(int i=0;i<4;i++) {
if(group2(i) == x) type_x=2;
if(group2(i) == y) type_y=2;
}
if(type_x == type_y) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:13:26: error: no match for call to '(std::vector<int>) (int&)'
13 | if(group1(i) == x) type_x=1;
| ~~~~~~^~~
a.cc:14:26: error: no match for call to '(std::vector<int>) (int&)'
14 | if(group1(i) == y) type_y=1;
| ~~~~~~^~~
a.cc:18:26: error: no match for call to '(std::vector<int>) (int&)'
18 | if(group2(i) == x) type_x=2;
| ~~~~~~^~~
a.cc:19:26: error: no match for call to '(std::vector<int>) (int&)'
19 | if(group2(i) == y) type_y=2;
| ~~~~~~^~~
|
s492318252 | p03711 | Java | import java.util.Scanner;
public class Main {
@SuppressWarnings("resource")
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
if(x==2||y==2){
System.out.println("No");
}else if((x==4||x==6||x==9||x==11)&&(y==4||y==6||y==9||y==11)){
System.out.println("Yes");
}else if((x==1||x==3||x==5||x==7||x==8||x==10||x==12)&&(y==1||y==3||y==5||y==7||y==8||y==10||y==12)){
System.out.println("Yes");
}else{
System.out.println("No");
} | Main.java:19: error: reached end of file while parsing
}
^
1 error
|
s674842699 | p03711 | C++ | #include<iostream>
int a[]={0,1,2,1,4,1,4,1,1,4,1,4,1},x,y;main{std::cin>>x>>y;puts(a[x]-a[y]?"No":"Yes");} | a.cc:2:41: error: 'main' does not name a type
2 | int a[]={0,1,2,1,4,1,4,1,1,4,1,4,1},x,y;main{std::cin>>x>>y;puts(a[x]-a[y]?"No":"Yes");}
| ^~~~
|
s263719267 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int s={0,1,3,1,2,1,2,1,1,2,1,2,1};
if(s[a]==s[b])cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:7: error: scalar object 's' requires one element in initializer
7 | int s={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s548924236 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int x,y;
string p,q;
cin >> x >> y;
if (x == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
{ p = 57; }
if (x == 4 || x == 6 || x == 9 || x == 11)
{ p = 58; }
if (x == 2 )
{ p = 59; }
if (y == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
{ q = 57; }
if (y == 4 || x == 6 || x == 9 || x == 11)
{ q = 58; }
if (y == 2 )
{ y = 59; }
if ( p == q )
{cout << "Yes" << endl;}
if(p=!q) {cout << "No" << endl;}}
| a.cc: In function 'int main()':
a.cc:21:8: error: no match for 'operator!' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'})
21 | if(p=!q) {cout << "No" << endl;}}
| ^~
a.cc:21:8: note: candidate: 'operator!(bool)' (built-in)
a.cc:21:8: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
|
s352132689 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int x,y;
string p,q;
cin >> x >> y;
if (x == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
{ p = A; }
if (x == 4 || x == 6 || x == 9 || x == 11)
{ p = B; }
if (x == 2 )
{ p = C; }
if (y == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
{ q = A; }
if (y == 4 || x == 6 || x == 9 || x == 11)
{ q = B; }
if (y == 2 )
{ y = C; }
if ( p == q )
{cout << "Yes" << endl;}
else if {cout << "No" << endl;}}
| a.cc: In function 'int main()':
a.cc:8:9: error: 'A' was not declared in this scope
8 | { p = A; }
| ^
a.cc:10:9: error: 'B' was not declared in this scope
10 | { p = B; }
| ^
a.cc:12:9: error: 'C' was not declared in this scope
12 | { p = C; }
| ^
a.cc:14:9: error: 'A' was not declared in this scope
14 | { q = A; }
| ^
a.cc:16:9: error: 'B' was not declared in this scope
16 | { q = B; }
| ^
a.cc:18:9: error: 'C' was not declared in this scope
18 | { y = C; }
| ^
a.cc:21:11: error: expected '(' before '{' token
21 | else if {cout << "No" << endl;}}
| ^
| (
|
s118486937 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,s;
cin >> a >> s;
int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1};
if(group[a]==group[s])
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:30: error: expected primary-expression before ',' token
8 | int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1};
| ^
|
s597562740 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,s;
cin >> a >> s;
int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1}
if(group[a]==group[s])
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:30: error: expected primary-expression before ',' token
8 | int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1}
| ^
a.cc:11:5: error: 'else' without a previous 'if'
11 | else
| ^~~~
|
s012952190 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x, y;
cin >> x >> y;
if(x == 4 || x == 6 || x == 9 || x == 11) x = b;
else if(x == 2) x = c;
else x = a;
if(y == 4 || y == 6 || y == 9 || y == 11) y = b;
else if(y == 2) y = c;
else y = a;
if(x == y) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:49: error: 'b' was not declared in this scope
8 | if(x == 4 || x == 6 || x == 9 || x == 11) x = b;
| ^
a.cc:9:23: error: 'c' was not declared in this scope
9 | else if(x == 2) x = c;
| ^
a.cc:10:12: error: 'a' was not declared in this scope
10 | else x = a;
| ^
a.cc:12:49: error: 'b' was not declared in this scope
12 | if(y == 4 || y == 6 || y == 9 || y == 11) y = b;
| ^
a.cc:13:23: error: 'c' was not declared in this scope
13 | else if(y == 2) y = c;
| ^
a.cc:14:12: error: 'a' was not declared in this scope
14 | else y = a;
| ^
|
s258228990 | p03711 | C++ | #include<iostream>
using namespace std;
int c[13]={
0,1,3,1,2,1,2,1,2,1,2,1,2
}
int main()
{
int a,b;
cin>>a>>b;
if(c[a]==c[b])cout<<"Yes";
else cout<<"No";
}
/*code in 90 seconds*/ | a.cc:9:1: error: expected ',' or ';' before 'int'
9 | int main()
| ^~~
|
s023969811 | p03711 | C++ | #include <iostream>
using namespace std;
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
cin>>x>>y;
if(a[x]==a[y])cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:8: error: 'x' was not declared in this scope
5 | cin>>x>>y;
| ^
a.cc:5:11: error: 'y' was not declared in this scope
5 | cin>>x>>y;
| ^
|
s512601378 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int a[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
int b,c;
int main(){
cin>>b>>c;
if(a[b] == a[c]){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
} | a.cc:3:37: error: too many initializers for 'int [12]'
3 | int a[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s208775048 | p03711 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
using namespace std;
typedef long long ll;
#define rep(i,a,n) for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
ll gcd(ll a,ll b){
if(b==0)return a;
return gcd(b,a%b);
}
ll lcm(ll a,ll b){
ll g=gcd(a,b);
return a/g*b;
}
ll digitsum(ll a){
ll x=0;
while(a>0){
x+=a%10;
a/=10;
}
return x;
}
int main(){
ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
ll a,b;
cin>>a>>b;
if(x[a]==x[b])cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:31:44: error: too many initializers for 'll [12]' {aka 'long long int [12]'}
31 | ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s700066037 | p03711 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
using namespace std;
typedef long long ll;
#define rep(i,a,n) for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
ll gcd(ll a,ll b){
if(b==0)return a;
return gcd(b,a%b);
}
ll lcm(ll a,ll b){
ll g=gcd(a,b);
return a/g*b;
}
ll digitsum(ll a){
ll x=0;
while(a>0){
x+=a%10;
a/=10;
}
return x;
}
int main(){
ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
ll a,b;
cin>>a>>b;
if(x[a]==x[b])cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:31:44: error: too many initializers for 'll [12]' {aka 'long long int [12]'}
31 | ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
a.cc:33:14: error: 'a' was not declared in this scope
33 | cin>>a>>b;
| ^
a.cc:33:17: error: 'b' was not declared in this scope
33 | cin>>a>>b;
| ^
|
s989811940 | p03711 | C++ | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(), y = sc.nextInt();
int[] group1 = {1,3,5,7,8,10,12};
int[] group2 = {4,6,9,11};
if(checkSameGroup(x, y, group1)) {
System.out.println("Yes");
}else if(checkSameGroup(x, y, group2)) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
static public boolean checkSameGroup(int x, int y, int[] group) {
boolean sameX = false,sameY = false;
for (int i : group) {
if(i == x) sameX = true;
if(i == y) sameY = true;
}
if(sameX && sameY) return true;
return false;
}
}
| a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s687633204 | p03711 | C++ | #include <stdio.h>
int main (){
int a,b;
scanf("%d%d",&a,&b);
if (a==1){
if (b==3||5||7||8||10||12)printf("Yes");
}
printf("No");
else if(a==2){
printf("No");
}
else if (a==3){
if (b==5||7||8||10||12){
printf("Yes");
}else printf("No");
else if (a==4){
if(b==6||9||11){
printf("Yes");}
else printf("No");
else if (a==5){
if (b==7||8||10||12){
printf("Yes");}
else printf("No");
else if(a==6){
if(b==9||11){
printf("Yes");}
else printf("No");
else if(a==10){
if(b==12){
printf("Yes");
}else printf("No");
else printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:1: error: 'else' without a previous 'if'
9 | else if(a==2){
| ^~~~
a.cc:16:1: error: expected '}' before 'else'
16 | else if (a==4){
| ^~~~
a.cc:12:15: note: to match this '{'
12 | else if (a==3){
| ^
a.cc:20:1: error: expected '}' before 'else'
20 | else if (a==5){
| ^~~~
a.cc:16:15: note: to match this '{'
16 | else if (a==4){
| ^
a.cc:24:1: error: expected '}' before 'else'
24 | else if(a==6){
| ^~~~
a.cc:20:15: note: to match this '{'
20 | else if (a==5){
| ^
a.cc:28:1: error: expected '}' before 'else'
28 | else if(a==10){
| ^~~~
a.cc:24:14: note: to match this '{'
24 | else if(a==6){
| ^
a.cc:32:1: error: expected '}' before 'else'
32 | else printf("No");
| ^~~~
a.cc:28:15: note: to match this '{'
28 | else if(a==10){
| ^
|
s969655874 | p03711 | C++ | #include <stdio.h>
int main (){
int a,b;
scanf("%d%d",&a,&b);
if (a==1){
if (b==3||5||7||8||10||12){
printf("Yes");
}
else printf("No");
if(a==2){
printf("No");
}
else printf("No");
else if (a==3){
if (b==5||7||8||10||12){
printf("Yes");
else printf("No");
else if (a==4){
if(b==6||9||11){
printf("Yes");
else printf("No");
else if (a==5){
if (b==7||8||10||12){
printf("Yes");
else printf("No");
else if(a==6){
if(b==9||11){
printf("Yes");
else printf("No");
else if(a==10){
if(b==12){
printf("Yes");
else printf("No");
else printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:14:1: error: expected '}' before 'else'
14 | else if (a==3){
| ^~~~
a.cc:5:10: note: to match this '{'
5 | if (a==1){
| ^
a.cc:17:1: error: expected '}' before 'else'
17 | else printf("No");
| ^~~~
a.cc:15:24: note: to match this '{'
15 | if (b==5||7||8||10||12){
| ^
a.cc:18:1: error: expected '}' before 'else'
18 | else if (a==4){
| ^~~~
a.cc:14:15: note: to match this '{'
14 | else if (a==3){
| ^
a.cc:21:1: error: expected '}' before 'else'
21 | else printf("No");
| ^~~~
a.cc:19:16: note: to match this '{'
19 | if(b==6||9||11){
| ^
a.cc:22:1: error: expected '}' before 'else'
22 | else if (a==5){
| ^~~~
a.cc:18:15: note: to match this '{'
18 | else if (a==4){
| ^
a.cc:25:1: error: expected '}' before 'else'
25 | else printf("No");
| ^~~~
a.cc:23:21: note: to match this '{'
23 | if (b==7||8||10||12){
| ^
a.cc:26:1: error: expected '}' before 'else'
26 | else if(a==6){
| ^~~~
a.cc:22:15: note: to match this '{'
22 | else if (a==5){
| ^
a.cc:29:1: error: expected '}' before 'else'
29 | else printf("No");
| ^~~~
a.cc:27:13: note: to match this '{'
27 | if(b==9||11){
| ^
a.cc:30:1: error: expected '}' before 'else'
30 | else if(a==10){
| ^~~~
a.cc:26:14: note: to match this '{'
26 | else if(a==6){
| ^
a.cc:33:1: error: expected '}' before 'else'
33 | else printf("No");
| ^~~~
a.cc:31:10: note: to match this '{'
31 | if(b==12){
| ^
a.cc:34:1: error: expected '}' before 'else'
34 | else printf("No");
| ^~~~
a.cc:30:15: note: to match this '{'
30 | else if(a==10){
| ^
|
s489809093 | p03711 | C++ | #include <stdio.h>
int main (){
int a,b;
scanf("%d%d",&a,&b);
if (a==1){
if (b==3||5||7||8||10||12){
printf("Yes");
}
else printf("No");
if(a==2){
printf("No");
}
else printf("No");
else if (a==3){
if (b==5||7||8||10||12){
printf("Yes");
}else printf("No");
else if (a==4){
if(b==6||9||11){
printf("Yes");
}else printf("No");
else if (a==5){
if (b==7||8||10||12){
printf("Yes");
}else printf("No");
else if(a==6){
if(b==9||11){
printf("Yes");
}else printf("No");
else if(a==10){
if(b==12){
printf("Yes");
}else printf("No");
else printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:14:1: error: expected '}' before 'else'
14 | else if (a==3){
| ^~~~
a.cc:5:10: note: to match this '{'
5 | if (a==1){
| ^
a.cc:18:1: error: expected '}' before 'else'
18 | else if (a==4){
| ^~~~
a.cc:14:15: note: to match this '{'
14 | else if (a==3){
| ^
a.cc:22:1: error: expected '}' before 'else'
22 | else if (a==5){
| ^~~~
a.cc:18:15: note: to match this '{'
18 | else if (a==4){
| ^
a.cc:26:1: error: expected '}' before 'else'
26 | else if(a==6){
| ^~~~
a.cc:22:15: note: to match this '{'
22 | else if (a==5){
| ^
a.cc:30:1: error: expected '}' before 'else'
30 | else if(a==10){
| ^~~~
a.cc:26:14: note: to match this '{'
26 | else if(a==6){
| ^
a.cc:34:1: error: expected '}' before 'else'
34 | else printf("No");
| ^~~~
a.cc:30:15: note: to match this '{'
30 | else if(a==10){
| ^
|
s815066312 | p03711 | C++ | [x,y]=[int(i) for i in input().split()]
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if (a.count(x)==1 and a.count(y)==1) or (b.count(x)==1 and b.count(y)==1):
print("Yes")
else:
print("No")
| a.cc:1:1: error: expected unqualified-id before '[' token
1 | [x,y]=[int(i) for i in input().split()]
| ^
|
s116324430 | p03711 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
string n,m,e,t,i,j;
string a,b,c;
cin>>n>>e;
if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
if(e==1||e==3||e==5||e==7||e==8||e==10||e==12){
cout<<"Yes"<<endl;
}
}else if(n==2){
cout<<"No"<<endl;
}else{
if(e!=1||e!=3||e!=5||e!=7||e!=8||e!=10||e!=12){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const _CharT*' and 'int'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::tuple<_UTypes ...>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| ^
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: template argument deduction/substitution failed:
a.cc:8:11: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){
| |
s325896492 | p03711 | C | #include <iostream>
#include <vector>
int belong( std::vector<int> g, int a, int b )
{
int cnt = 0;
for( int i = 0; g[ i ] != 0; i++ ) {
if( g[ i ] == a or g[ i ] == b ) {
cnt += 1;
}
}
return cnt;
}
int main()
{
std::vector<int> g[] = {
{ 1, 3, 5, 7, 8, 10, 12, 0 },
{ 4, 6, 9, 11, 0 },
{ 2, 0 },
};
int a, b;
std::cin >> a >> b;
bool isbel = false;
for( int i = 0; i < 3; i++ ) {
if( belong( g[ i ], a, b ) == 2 ) {
isbel = true;
break;
}
}
std::cout << ( isbel ? "Yes" : "No" ) << std::endl;
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s032149146 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin >> x >> y;
if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl;
else if((x==4||x==6||x==9||x==11)and(y==4||y==6||y==9||y==11))cout << "Yes" << endl;
else cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:42: error: lvalue required as left operand of assignment
6 | if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:88: error: lvalue required as left operand of assignment
6 | if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s248859048 | p03711 | C++ | #include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
#include "dbgtoki.hpp"
#define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i)
DbgTimer D_t;
#define TSTART() D_t.start()
#define TSTOP() D_t.stop()
#else
#define DUMP(i)
#define TSTART()
#define TSTOP()
#endif
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end());
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
const int EPS = 1e-9;
//Union Find Tree
class UnionFindTree{
public:
int treeCnt; //ツリーの数
vector<int> rank,p; //rank => 根の高さ, p => 親
vector<int> num; //木の要素数
UnionFindTree(){}
UnionFindTree(int size){
rank.resize(size,0);
p.resize(size,0);
num.assign(n,1);
treeCnt = 0;
REP(i,size){
makeset(i);
}
}
void makeset(int x){
p[x] = x;
rank[x] = 0;
treeCnt++;
}
//同じ木に属しているか判定
bool same(int x, int y){
return findSet(x) == findSet(y);
}
//xとyが属している木をつなぐ
void unite(int x, int y){
link(findSet(x),findSet(y));
}
///木と木を繋ぐ処理をする。(ついでに木の高さを調整)
void link(int x, int y){
if(!same(x,y)){
if(rank[x] > rank[y]){
p[y] = x;
num[x] += num[y];
}else{
p[x] = y;
if(rank[x] == rank[y]){
rank[y]++;
}
num[y] += num[x];
}
treeCnt--;
}
}
//xが属している木の根を探る(ついでに木を操作)
int findSet(int x){
if(p[x] == x) return x;
else return p[x] = findSet(p[x]);
}
int countTree(){
return treeCnt;
}
int getNum(int a){
return num[findSet(a)];
}
};
int main (){
cin.tie(0);
ios::sync_with_stdio(false);
int x,y;
while(cin >> x >> y){
TSTART();
//union find 使うほどの問題ではない(?)と思うが練習
UnionFindTree uft(12);
uft.unite(0,2);
uft.unite(4,2);
uft.unite(6,2);
uft.unite(7,2);
uft.unite(9,2);
uft.unite(11,2);
uft.unite(3,5);
uft.unite(8,5);
uft.unite(10,5);
string ans;
if(same(x-1,y-1))ans = "Yes";
else ans = "No";
cout << ans << endl;
TSTOP();
}
return 0;
}
| a.cc: In constructor 'UnionFindTree::UnionFindTree(int)':
a.cc:40:16: error: 'n' was not declared in this scope; did you mean 'yn'?
40 | num.assign(n,1);
| ^
| yn
a.cc: In function 'int main()':
a.cc:115:8: error: 'same' was not declared in this scope
115 | if(same(x-1,y-1))ans = "Yes";
| ^~~~
|
s770262299 | p03711 | C++ | #include <cstdio>
using namespace std;
int main(void){
int gr={0,1,2,1,3,1,3,1,1,3,1,3,1};
int x,y;
cin >> x >> y;
puts(gr[x]-gr[y]?"No":"Yes");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:7: error: scalar object 'gr' requires one element in initializer
5 | int gr={0,1,2,1,3,1,3,1,1,3,1,3,1};
| ^~
a.cc:8:3: error: 'cin' was not declared in this scope
8 | cin >> x >> y;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <cstdio>
+++ |+#include <iostream>
2 | using namespace std;
|
s039110306 | p03711 | C | #include <stdio.h>
int main(){
int a=2;
int b[4];
b[0]=4;
b[1]=6;
b[2]=9;
b[3]=11;
int x,y;
scanf("%d%d",&x,&y);
switch (x){
case 2 :x=13;break;
case 4 :x=14;break;
case 6 :x=14;break;
case 9 :x=14;break;
case 11:x=14;break;
default :x=12;
}
switch (y){
case 2 :y=13;break;
case 4 :y=14;break;
case 6 :y=14;break;
case 9 :y=14;break;
case 11:y=14;break;
default :y=12;
}
if(x==y)
puts("Yes");
else
puts("No");
| main.c: In function 'main':
main.c:40:9: error: expected declaration or statement at end of input
40 | puts("No");
| ^~~~
|
s178684994 | p03711 | C++ | #include <stdio.h>
int main(){
int a=2;
int b[4];
b[0]=4;
b[1]=6;
b[2]=9;
b[3]=11;
int x,y;
scanf("%d%d",&x,&y);
switch (x){
case 2 :x=13;break;
case 4 :x=14;break;
case 6 :x=14;break;
case 9 :x=14;break;
case 11:x=14;break;
default :x=12;
}
switch (y){
case 2 :y=13;break;
case 4 :y=14;break;
case 6 :y=14;break;
case 9 :y=14;break;
case 11:y=14;break;
default :y=12;
}
if(x==y)
puts("Yes");
else
puts("No");
| a.cc: In function 'int main()':
a.cc:40:20: error: expected '}' at end of input
40 | puts("No");
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s418254685 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
int a(20)={0,1,3,1,2,1,2,1,1,2,1,2,1};
cin >> x >>y;
if (a[x]==a[y])cout << "Yes" <<endl;
else cout << "No" <<endl;
} | a.cc: In function 'int main()':
a.cc:6:18: error: expected ',' or ';' before '=' token
6 | int a(20)={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
a.cc:8:14: error: invalid types 'int[int]' for array subscript
8 | if (a[x]==a[y])cout << "Yes" <<endl;
| ^
a.cc:8:20: error: invalid types 'int[int]' for array subscript
8 | if (a[x]==a[y])cout << "Yes" <<endl;
| ^
|
s266846455 | p03711 | C++ | include <iostream>
using namespace std;
int main() {
int a[] = {0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
int x, y;
cin >> x >> y;
if (a[x] == a[y])
cout << "Yes" << endl;
else
cout << "No" << endl;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
7 | cin >> x >> y;
| ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << "Yes" << endl;
| ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
10 | cout << "Yes" << endl;
| ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "No" << endl;
| ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
12 | cout << "No" << endl;
| ^~~~
|
s771353722 | p03711 | C++ | /* ---------- STL Libraries ---------- */
// IO library
#include <cstdio>
#include <iomanip>
#include <ios>
#include <iostream>
// algorithm library
#include <algorithm>
#include <cmath>
#include <numeric>
// container library
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
/* ---------- Namespace ---------- */
using namespace std;
/* ---------- Type Abbreviation ---------- */
template <typename T>
using V = vector<T>;
template <typename T, typename U>
using P = pair<T, U>;
using ll = long long;
using PL = P<ll, ll>;
using PS = P<string, ll>;
using VI = V<int>;
using VVI = V<VI>;
using VL = V<ll>;
using VVL = V<VL>;
using VS = V<string>;
using VB = V<bool>;
using VVB = V<VB>;
using VPL = V<PL>;
using VPS = V<PS>;
#define fst first
#define snd second
/* ---------- conversion ---------- */
#define INT(c) static_cast<int>(c)
#define CHAR(n) static_cast<char>(n)
#define LL(n) static_cast<ll>(n)
#define DOUBLE(n) static_cast<double>(n)
/* ---------- container ---------- */
#define EACH(i, c) for (auto i = (c).begin(); i != (c).end(); i++)
#define ALL(c) (c).begin(), (c).end()
#define SORT(c) sort(ALL(c))
#define GSORT(c) sort(ALL(c), greater<decltype((c).front())>())
#define SZ(x) (LL((x).size()))
/* ---------- repetition ---------- */
#define FOR(i, a, b) for (ll i = (a); i <= (b); i++)
#define REP(i, n) FOR(i, 0, n - 1)
#define NREP(i, n) FOR(i, 1, n)
#define RFOR(i, a, b) for (ll i = (a); i >= (b); i--)
#define RREP(i, n) RFOR(i, n, 0)
#define RNREP(i, n) RFOR(i, n, 1)
// Usual REP runs from 0 to n-1 (R: n to 0)
// Natural REP runs from 1 to n (R: n to 1)
/* ---------- Constants ---------- */
// const ll MOD = 1e9 + 7;
// const int INF = 1 << 25;
// const ll INF = 1LL << 50;
// const double PI = 3.14159265358979;
// const ll dx[4] = {0, -1, 1, 0};
// const ll dy[4] = {-1, 0, 0, 1};
// const ll dx[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
// const ll dy[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
/* ---------- Short Functions ---------- */
template <typename T>
T square(T a) {
return a * a;
}
/* ---------- Debug ---------- */
#define GET_VAR_NAME(variable) #variable
#define test(x) cout << GET_VAR_NAME(x) << " = " << x << endl;
#define testP(p) cout << GET_VAR_NAME(p) << " = (" << (p).fst << ", " << (p).snd << ")" << endl;
/* ^^^^^^^^^^^^^^^ Settting Part ^^^^^^^^^^^^^^^ */
/* ---------- Variances ---------- */
/* ---------- Functions ---------- */
/* ---------- Main Function ---------- */
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int g[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}
int x, y;
cin >> x >> y;
if (g[x] = g[y]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:127:3: error: expected ',' or ';' before 'int'
127 | int x, y;
| ^~~
a.cc:128:10: error: 'x' was not declared in this scope
128 | cin >> x >> y;
| ^
a.cc:128:15: error: 'y' was not declared in this scope
128 | cin >> x >> y;
| ^
|
s461295877 | p03711 | C++ | #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s;
int a,b,c,d;
int l[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
char A,B;
priority_queue<int,vector<int>,greater<int> >small;
int main(){
cin >> a >> b;
if(l[a]==l[b])o("Yes");
else o("No");
} | a.cc:9:37: error: too many initializers for 'int [12]'
9 | int l[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s001563495 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main{
int a,b;
cin>>a>>b;
int x,y;
if(a==2) x=1;
else if(a==4||a==6||a==9||a==11) x=2;
else x=3;
if(b==2) y=1;
else if(b==4||b==6||b==9||b==11) y=2;
else y=3;
if(x==y){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
4 | int a,b;
| ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:3: error: 'cin' does not name a type
5 | cin>>a>>b;
| ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
8 | if(a==2) x=1;
| ^~
a.cc:9:3: error: expected unqualified-id before 'else'
9 | else if(a==4||a==6||a==9||a==11) x=2;
| ^~~~
a.cc:10:3: error: expected unqualified-id before 'else'
10 | else x=3;
| ^~~~
a.cc:12:3: error: expected unqualified-id before 'if'
12 | if(b==2) y=1;
| ^~
a.cc:13:3: error: expected unqualified-id before 'else'
13 | else if(b==4||b==6||b==9||b==11) y=2;
| ^~~~
a.cc:14:3: error: expected unqualified-id before 'else'
14 | else y=3;
| ^~~~
a.cc:16:3: error: expected unqualified-id before 'if'
16 | if(x==y){
| ^~
a.cc:19:3: error: expected unqualified-id before 'else'
19 | else{
| ^~~~
a.cc:22:1: error: expected declaration before '}' token
22 | }
| ^
|
s142591619 | p03711 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <queue>
#include <set>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
using namespace std;
typedef long long int lli;
int main(){
int x,y;
cin>>x>>y;
int gx=1,gy=1;
if(x==4||x==6||x==9||x==11)gx=2
if(x==2) gx=3;
if(y==4||y==6||y==9||y==11)gy=2
if(y==2) gy=3;
if(gx==gy)cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:18:40: error: expected ';' before 'if'
18 | if(x==4||x==6||x==9||x==11)gx=2
| ^
| ;
19 | if(x==2) gx=3;
| ~~
a.cc:20:40: error: expected ';' before 'if'
20 | if(y==4||y==6||y==9||y==11)gy=2
| ^
| ;
21 | if(y==2) gy=3;
| ~~
|
s896707354 | p03711 | C++ | use std::env;
use std::io::*;
use std::str::*;
fn read<T: FromStr>() -> T {
let stdin = stdin();
let s = stdin.bytes().map(|c| c.unwrap() as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect::<String>();
s.parse::<T>().ok().unwrap()
}
fn main() {
// main の引数
/*
引数なしのときargs.len() = 1;
*/
let args: Vec<String> = env::args().collect();
let G1 = vec![1,3,5,7,8,10,12];
let G2 = vec![4,6,9,11];
let G3 = vec![2];
let x = read::<i32>();
let y = read::<i32>();
let mut boolean = false;
match (G1.iter().find(|&&f| f == x), G1.iter().find(|&&f| f == y)) {
(Some(x), Some(y)) => boolean = true,
_ => {},
}
match (G2.iter().find(|&&f| f == x), G2.iter().find(|&&f| f == y)) {
(Some(x), Some(y)) => boolean = true,
_ => {},
}
match (G3.iter().find(|&&f| f == x), G3.iter().find(|&&f| f == y)) {
(Some(x), Some(y)) => boolean = true,
_ => {},
}
if boolean {
println!("Yes");
}else {
println!("No");
}
}
| a.cc:1:1: error: 'use' does not name a type
1 | use std::env;
| ^~~
a.cc:2:1: error: 'use' does not name a type
2 | use std::io::*;
| ^~~
a.cc:3:1: error: 'use' does not name a type
3 | use std::str::*;
| ^~~
a.cc:5:1: error: 'fn' does not name a type
5 | fn read<T: FromStr>() -> T {
| ^~
a.cc:14:1: error: 'fn' does not name a type
14 | fn main() {
| ^~
|
s695184790 | p03711 | C | #include <stdio.h>
int main(){
int a[20];
a[2]=2;
a[4]=a[6]=a[9]=a[11]=3;
int x,y;
scanf("%d %d",&x,&y);
printf(a[x]==a[y]?"Yes":"No");
return 0;
}
| main.c: In function 'main':
main.c:3:1: error: stray '\302' in program
3 | <U+00A0> int a[20];
| ^~~~~~~~
main.c:4:1: error: stray '\302' in program
4 | <U+00A0> a[2]=2;
| ^~~~~~~~
main.c:5:1: error: stray '\302' in program
5 | <U+00A0> a[4]=a[6]=a[9]=a[11]=3;
| ^~~~~~~~
main.c:6:1: error: stray '\302' in program
6 | <U+00A0> int x,y;
| ^~~~~~~~
main.c:7:1: error: stray '\302' in program
7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
| ^~~~~~~~
main.c:7:24: error: stray '\302' in program
7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
| ^~~~~~~~
main.c:7:25: error: stray '\302' in program
7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
| ^~~~~~~~
main.c:7:26: error: stray '\302' in program
7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
| ^~~~~~~~
main.c:8:1: error: stray '\302' in program
8 | <U+00A0> printf(a[x]==a[y]?"Yes":"No");
| ^~~~~~~~
main.c:9:1: error: stray '\302' in program
9 | <U+00A0> return 0;
| ^~~~~~~~
|
s686308439 | p03711 | C | #include<stdio.h>
int main(){
int a[20];
a[2]=2;
a[4]=a[6]=a[9]=a[11]=3;
int x,y;
scanf("%d%d",&x,&y);
printf(a[x]==a[y]?"Yes":"No");
return 0;
}
| main.c: In function 'main':
main.c:10:2: error: '\U0000ff5d' undeclared (first use in this function)
10 | }
| ^~
main.c:10:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:4: error: expected ';' at end of input
10 | }
| ^
| ;
main.c:10:2: error: expected declaration or statement at end of input
10 | }
| ^~
|
s007936077 | p03711 | C | #include<stdio.h>
int main(){
int a[20];
a[2]=2;
a[4]=a[6]=a[9]=a[11]=3;
int x,y;
scanf("%d%d",&x,&y);
printf(a[x]==a[y]?"Yes","No");
return 0;
} | main.c: In function 'main':
main.c:8:31: error: expected ':' before ')' token
8 | printf(a[x]==a[y]?"Yes","No");
| ^
| :
main.c:10:2: error: '\U0000ff5d' undeclared (first use in this function)
10 | }
| ^~
main.c:10:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:4: error: expected ';' at end of input
10 | }
| ^
| ;
main.c:10:2: error: expected declaration or statement at end of input
10 | }
| ^~
|
s869722440 | p03711 | C++ | #include<iostream>
#include<set>
using namespace std;
int main(){
int x,y;
set<int> st{1,3,5,7,8,10,12}
cin >> x >> y;
if(x==2&&y==2) cout << "Yes\n";
else if(x==2||y==2) cout << "No\n";
else if(st.find(x)==st.end()&&st.find(y)==st.end()) cout << "Yes\n";
else if(st.find(x)!=st.end()&&st.find(y)!=st.end()) cout << "Yes\n";
else cout << "No\n";
} | a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cin'
7 | cin >> x >> y;
| ^~~
|
s926229202 | p03711 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
int a[10] = { 1,3,5,7,8,10,12 };
int b[10] = { 4,6,9,11 };
int c[10] = { 2 };
int main() {
int x, y;
cin >> x >> y;
bool one = false;
bool two = false;
for (int i = 0; i < 10; i++) {
if (x == a[i])one = true;
if (y == a[i])two = true;
}
if (one&&two) {
cout << "Yes" << endl;
return 0;
}
bool one = false;
bool two = false;
for (int i = 0; i < 10; i++) {
if (x == b[i])one = true;
if (y == b[i])two = true;
}
if (one&&two) {
cout << "Yes" << endl;
return 0;
}
bool one = false;
bool two = false;
for (int i = 0; i < 10; i++) {
if (x == c[i])one = true;
if (y == c[i])two = true;
}
if (one&&two) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:24:14: error: redeclaration of 'bool one'
24 | bool one = false;
| ^~~
a.cc:14:14: note: 'bool one' previously declared here
14 | bool one = false;
| ^~~
a.cc:25:14: error: redeclaration of 'bool two'
25 | bool two = false;
| ^~~
a.cc:15:14: note: 'bool two' previously declared here
15 | bool two = false;
| ^~~
a.cc:34:14: error: redeclaration of 'bool one'
34 | bool one = false;
| ^~~
a.cc:14:14: note: 'bool one' previously declared here
14 | bool one = false;
| ^~~
a.cc:35:14: error: redeclaration of 'bool two'
35 | bool two = false;
| ^~~
a.cc:15:14: note: 'bool two' previously declared here
15 | bool two = false;
| ^~~
|
s730969265 | p03711 | C++ | #include <iostream>
using namespace std;
int main(){
int x[2],y[i],i;
for(i=0;i<2;i++){
cin >> x[i];
if(x[i]==2) y[i]=0;
if(x[i]==4||x[i]==6||x[i]==9||x[i]==11) y[i]=1;
else y[i]=2;
}
if(y[0]==y[1]) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:5:20: error: 'i' was not declared in this scope
5 | int x[2],y[i],i;
| ^
a.cc:8:29: error: 'y' was not declared in this scope
8 | if(x[i]==2) y[i]=0;
| ^
a.cc:9:57: error: 'y' was not declared in this scope
9 | if(x[i]==4||x[i]==6||x[i]==9||x[i]==11) y[i]=1;
| ^
a.cc:10:22: error: 'y' was not declared in this scope
10 | else y[i]=2;
| ^
a.cc:12:12: error: 'y' was not declared in this scope
12 | if(y[0]==y[1]) cout << "Yes" << endl;
| ^
|
s260485071 | p03711 | C++ | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define INF (1<<30)
#define INFLL (1ll<<60)
typedef pair<int, int> P;
typedef pair<ll, P> E;
#define cost first
#define from second.first
#define to second.second
#define MOD (1000000007ll)
#define l_ength size
void mul_mod(ll& a, ll b){
a *= b;
a %= MOD;
}
int main(void){
int g[13]={0,31,28,31,30,31,30,31,31,30,31,30,31},x,y;
cin >> x >> y;
cout << ((g[x]==g[y]):"Yes":"No") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:22:30: error: expected ')' before ':' token
22 | cout << ((g[x]==g[y]):"Yes":"No") << endl;
| ~ ^
| )
|
s534072285 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(void){
int a, b;
cin >> a >> b;
int root[13] = {0, 1, 2, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 1};
if (root[a] == root[b])
cout << "Yes";
else
cout << "No";
} | a.cc: In function 'int main()':
a.cc:12:65: error: too many initializers for 'int [13]'
12 | int root[13] = {0, 1, 2, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 1};
| ^
|
s823739279 | p03711 | C++ | #include<iostream>
#include<vector>
int main() {
std::vector<std::vector<int>> vv{ {1,3,5,7,8,10,12},{4,6,9,11},{2} };
int x, y,count=0;
bool flag=false;
std::cin >> x >> y;
for (int i = 0; i < 2; i++) {
auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
if (itr_x != vv[i].end() && itr_y != vv[i].end()) {
flag = true;
break;
}
}
std::cout << (flag ? "Yes" : "No") << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
12 | auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
435 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed:
a.cc:12:39: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
12 | auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:13:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
13 | auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
435 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed:
a.cc:13:39: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
13 | auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s681832211 | p03711 | C++ | #include<iostream>
#include<vector>
int main() {
std::vector<std::vector<int>> vv{ {1,3,5,7,8,10,12},{4,6,9,11},{2} };
int x, y,count=0;
bool flag=false;
std::cin >> x >> y;
for (int i = 0; i < 2; i++) {
auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
if (itr_x != vv[i].end() && itr_y != vv[i].end()) {
flag = true;
break;
}
}
std::cout << (flag ? "Yes" : "No") << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
12 | auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
435 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed:
a.cc:12:39: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
12 | auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:13:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
13 | auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
435 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed:
a.cc:13:39: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
13 | auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s608512715 | p03711 | C++ | #include <iostream>
using namespace std;
int main(){
int x,y; cin >> x >> y;
if (x == 1 or 3 or 5 or 7 or 8 or 10 or 12 ){
if (y == 1 or 3 or 5 or 7 or 8 or 10 or 12){
cout << "G1-Yes" << endl;
}
}else{
if (x == 4 or 6 or 9 or 11){
if (y == 4 or 6 or 9 or 11){
cout << "G2-Yes" << endl;
}
}else{
if (x == 2){
if (y == 2){
cout << "G3-Yes" <<endl;
}
}else{
cout << "No" <<endl;
}
}
}
}
}
| a.cc:29:1: error: expected declaration before '}' token
29 | }
| ^
|
s535995206 | p03711 | C++ | #include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
int x,y;
cin>>x>>y;
(a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:41: error: expected ':' before ';' token
11 | (a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
| :
a.cc:11:41: error: expected primary-expression before ';' token
a.cc:11:43: error: expected primary-expression before ':' token
11 | (a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
|
s716331535 | p03711 | C++ | #include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
int x,y;
cin>>x>>y;
a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:39: error: expected ':' before ';' token
11 | a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
| :
a.cc:11:39: error: expected primary-expression before ';' token
a.cc:11:41: error: expected primary-expression before ':' token
11 | a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
|
s882733840 | p03711 | C++ | #include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}
int x,y;
cin>>x>>y;
if(a[x]==a[y])cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'int'
9 | int x,y;
| ^~~
a.cc:10:14: error: 'x' was not declared in this scope
10 | cin>>x>>y;
| ^
a.cc:10:17: error: 'y' was not declared in this scope
10 | cin>>x>>y;
| ^
|
s845551174 | p03711 | C++ | #include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}
int x,y;
cin>>x>>y;
a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'int'
9 | int x,y;
| ^~~
a.cc:10:14: error: 'x' was not declared in this scope
10 | cin>>x>>y;
| ^
a.cc:10:17: error: 'y' was not declared in this scope
10 | cin>>x>>y;
| ^
a.cc:11:39: error: expected ':' before ';' token
11 | a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
| :
a.cc:11:39: error: expected primary-expression before ';' token
a.cc:11:41: error: expected primary-expression before ':' token
11 | a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
|
s494866926 | p03711 | C++ | #include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}
int x,y;
cin>>x>>y;
a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'int'
9 | int x,y;
| ^~~
a.cc:10:14: error: 'x' was not declared in this scope
10 | cin>>x>>y;
| ^
a.cc:10:17: error: 'y' was not declared in this scope
10 | cin>>x>>y;
| ^
a.cc:11:37: error: expected ':' before ';' token
11 | a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
| :
a.cc:11:37: error: expected primary-expression before ';' token
a.cc:11:39: error: expected primary-expression before ':' token
11 | a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl;
| ^
|
s798452112 | p03711 | C++ | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}
int main(){
int a[4] = {4, 6, 9, 11}
int x, y;
cin>>x>>y;
if(x==2 || y==2) cout<<"No"<<endl;
else {
rep(i, 4) rep(j, 4) if(x==a[i]&&y==a[j]) cout<<"Yes"<<endl;
cout<<"No"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:43:3: error: expected ',' or ';' before 'int'
43 | int x, y;
| ^~~
a.cc:44:8: error: 'x' was not declared in this scope
44 | cin>>x>>y;
| ^
a.cc:44:11: error: 'y' was not declared in this scope
44 | cin>>x>>y;
| ^
|
s391481436 | p03711 | C++ | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
int a[2];
cin >> a[0] >> a[1];
for(i = 0; i < 2; i++) {
if((a[i]==1)||(a[i]==3)||(a[i]==5)||(a[i]==7)||(a[i]==8)||(a[i]==10)||(a[i]==12)) {
a[i] == 100;
} else if((a[i]==4)||(a[i]==6)||(a[i]==9)||(a[i]==11)) {
a[i] == 200;
}
}
if(a[0] != a[1]) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
12 | for(i = 0; i < 2; i++) {
| ^
|
s736200786 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a[7] = {1,3,5,7,8,10,12};
int b[4] = {4,6,9,11};
int c,x,y;
cin >> x >> y;
c=2;
for (int i=0;i<=6;i++){
for(int j=0;j<=6;j++){
if((x==a[i]&&y==a[j])||(x==a[i]&&y==b[j])||(x==c&&y==c)){
cout << "Yes" << endl;
return 0;
}else{
cout << "No" << endl;
}
}
}
}
return 0;
} | a.cc:20:9: error: expected unqualified-id before 'return'
20 | return 0;
| ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
21 | }
| ^
|
s261992787 | p03711 | C++ | #include<iostream>
using namespace std;
int main(void) {
vector<int> m(13);
m[1] = m[3] = m[5] = m[7] = m[8] = m[10] = m[12] = 31;
m[4] = m[6] = m[9] = m[11] = 30;
m[2] = 28;
int a, b;
cin >> a >> b;
if (m[a] == m[b]) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'vector' was not declared in this scope
5 | vector<int> m(13);
| ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
1 | #include<iostream>
+++ |+#include <vector>
2 | using namespace std;
a.cc:5:8: error: expected primary-expression before 'int'
5 | vector<int> m(13);
| ^~~
a.cc:6:1: error: 'm' was not declared in this scope; did you mean 'tm'?
6 | m[1] = m[3] = m[5] = m[7] = m[8] = m[10] = m[12] = 31;
| ^
| tm
|
s527040236 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H,W,max,min,ans;
cin >> N >> W;
if(N*W%3==0)ans=0;
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'N' was not declared in this scope
6 | cin >> N >> W;
| ^
|
s491145234 | p03711 | C++ | #include <iostream>
using namespace std;
int main()
{
int month[12];
month[0] = 0, month[1] = 1, month[2] = 0, month[3] = 2, month[4] = 0, month[5] = 2, month[6] = 0, month[7] = 0, month[8] = 2, month[9] = 0, month[10] = 2, month[11] = 0;
int x, y;
cin >> x >> y;
if (month[x-1] == month[y-1]) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc:2:1: error: extended character is not valid in an identifier
2 |
| ^
a.cc:4:1: error: extended character is not valid in an identifier
4 |
| ^
a.cc:5:1: error: extended character is not valid in an identifier
5 |
| ^
a.cc:9:1: error: extended character is not valid in an identifier
9 |
| ^
a.cc:11:1: error: extended character is not valid in an identifier
11 |
| ^
a.cc:2:1: error: '\U000000a0' does not name a type
2 |
| ^
a.cc:4:1: error: '\U000000a0' does not name a type
4 |
| ^
|
s854389574 | p03711 | C++ | group = [0,1,3,1,2,1,2,1,1,2,1,2,1]
x, y = map(int, input().split())
print("Yes" if group[x] == group[y] else "No")
| a.cc:1:1: error: 'group' does not name a type
1 | group = [0,1,3,1,2,1,2,1,1,2,1,2,1]
| ^~~~~
|
s259177252 | p03711 | C | #include <stdio.h>
int main(){
int a[6]={1,3,5,7,8,10,12};
int b[4]={4,6,9,11};
int c=2;
int x,y,flagx=0,flagy=0;
scanf("%d %d",&x,&y);
for("int i=0;i<6;i++){
if(a[i]==x)flagx=1;
if(a[i]==y)flagy=1;
}
for("int i=0;i<4;i++){
if(b[i]==x)flagx=2;
if(b[i]==y)flagy=2;
}
if(flagx==flagy){printf("Yes");}
else{printf("No");
}
return 0;
} | main.c: In function 'main':
main.c:4:24: warning: excess elements in array initializer
4 | int a[6]={1,3,5,7,8,10,12};
| ^~
main.c:4:24: note: (near initialization for 'a')
main.c:9:5: warning: missing terminating " character
9 | for("int i=0;i<6;i++){
| ^
main.c:9:5: error: missing terminating " character
9 | for("int i=0;i<6;i++){
| ^~~~~~~~~~~~~~~~~~
main.c:10:1: error: expected expression before 'if'
10 | if(a[i]==x)flagx=1;
| ^~
main.c:11:1: error: expected expression before 'if'
11 | if(a[i]==y)flagy=1;
| ^~
main.c:12:1: error: expected expression before '}' token
12 | }
| ^
main.c:12:1: error: expected expression before '}' token
main.c: At top level:
main.c:13:1: error: expected identifier or '(' before 'for'
13 | for("int i=0;i<4;i++){
| ^~~
main.c:13:5: warning: missing terminating " character
13 | for("int i=0;i<4;i++){
| ^
main.c:13:5: error: missing terminating " character
13 | for("int i=0;i<4;i++){
| ^~~~~~~~~~~~~~~~~~
main.c:15:1: error: expected identifier or '(' before 'if'
15 | if(b[i]==y)flagy=2;
| ^~
main.c:16:1: error: expected identifier or '(' before '}' token
16 | }
| ^
main.c:17:1: error: expected identifier or '(' before 'if'
17 | if(flagx==flagy){printf("Yes");}
| ^~
main.c:18:1: error: expected identifier or '(' before 'else'
18 | else{printf("No");
| ^~~~
main.c:20:1: error: expected identifier or '(' before 'return'
20 | return 0;
| ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
21 | }
| ^
|
s296833548 | p03711 | C | #include <stdiio.h>
int main(){
int a[6]={1,3,5,7,8,10,12};
int b[4]={4,6,9,11};
int c=2;
int x,y,flagx=0,flagy=0;
scanf("%d %d",&x,&y);
for("int i=0;i<6;i++){
if(a[i]==x)flagx=1;
if(a[i]==y)flagy=1;
}
for("int i=0;i<4;i++){
if(b[i]==x)flagx=2;
if(b[i]==y)flagy=2;
}
if(flagx==flagy){printf("Yes");}
else{printf("No");
}
return 0;
} | main.c:1:10: fatal error: stdiio.h: No such file or directory
1 | #include <stdiio.h>
| ^~~~~~~~~~
compilation terminated.
|
s046075107 | p03711 | C++ | #include<iostream>
int main(){
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};//先にデータ入れ
int x,y;
cin>>x>>y;
cout<<(a[x]==a[y]?"Yes":"No")<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>x>>y;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<(a[x]==a[y]?"Yes":"No")<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout<<(a[x]==a[y]?"Yes":"No")<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s655955245 | p03711 | C++ | #include <bits/stdc++.h>g++
using namespace std;
int main(){
int x,y,a=0,b=0,c=0;
scanf("%d %d",&x,&y);
if(x==4 || x==6 || x==9 || x==11){
a = a + 1;
}
else if(x==2){
b = b + 1;
}
else{
c = c + 1;
}
if(a==2 || b==2 || c==2){
printf("Yes");
}
else{
printf("No");
}
} | a.cc:1:26: warning: extra tokens at end of #include directive
1 | #include <bits/stdc++.h>g++
| ^~
a.cc:1:10: fatal error: bits/stdc++.h>: No such file or directory
1 | #include <bits/stdc++.h>g++
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s603052826 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int32_t main()
{
vector<uint32_t> group1{1,3,4,5,7,8,10,12};
vector<uint32_t> group2{4,6,9,11};
vector<uint32_t> group3{2};
uint32_t x, y;
cin >> x >> y;
uint32_t group_x, group_y;
for(uint32_t i = 0; i < group1.size();i++){
if(x == group1[i]) group_x = 1;
if(y == group1[i]) group_y = 1;
}
for(uitn32_t i = 0; i < group2.size(); i++){
if(x == group2[i]) group_x = 2;
if(y == group2[i]) group_y = 2;
}
for(uint32_t i = 0; i < group3.size(); i++){
if(x == group3[i]) group_x = 3;
if(y == group3[i]) group_y = 3;
}
if(group_x == group_y){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| a.cc: In function 'int32_t main()':
a.cc:8:10: error: 'uint32_t' was not declared in this scope
8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12};
| ^~~~~~~~
a.cc:3:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
2 | #include <vector>
+++ |+#include <cstdint>
3 |
a.cc:8:18: error: template argument 1 is invalid
8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12};
| ^
a.cc:8:18: error: template argument 2 is invalid
a.cc:8:20: error: scalar object 'group1' requires one element in initializer
8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12};
| ^~~~~~
a.cc:9:18: error: template argument 2 is invalid
9 | vector<uint32_t> group2{4,6,9,11};
| ^
a.cc:9:20: error: scalar object 'group2' requires one element in initializer
9 | vector<uint32_t> group2{4,6,9,11};
| ^~~~~~
a.cc:10:18: error: template argument 2 is invalid
10 | vector<uint32_t> group3{2};
| ^
a.cc:12:11: error: expected ';' before 'x'
12 | uint32_t x, y;
| ^~
| ;
a.cc:13:10: error: 'x' was not declared in this scope
13 | cin >> x >> y;
| ^
a.cc:13:15: error: 'y' was not declared in this scope
13 | cin >> x >> y;
| ^
a.cc:15:11: error: expected ';' before 'group_x'
15 | uint32_t group_x, group_y;
| ^~~~~~~~
| ;
a.cc:16:15: error: expected ';' before 'i'
16 | for(uint32_t i = 0; i < group1.size();i++){
| ^~
| ;
a.cc:16:23: error: 'i' was not declared in this scope
16 | for(uint32_t i = 0; i < group1.size();i++){
| ^
a.cc:17:24: error: 'group_x' was not declared in this scope; did you mean 'group3'?
17 | if(x == group1[i]) group_x = 1;
| ^~~~~~~
| group3
a.cc:18:24: error: 'group_y' was not declared in this scope; did you mean 'group3'?
18 | if(y == group1[i]) group_y = 1;
| ^~~~~~~
| group3
a.cc:21:7: error: 'uitn32_t' was not declared in this scope; did you mean 'u_int32_t'?
21 | for(uitn32_t i = 0; i < group2.size(); i++){
| ^~~~~~~~
| u_int32_t
a.cc:21:23: error: 'i' was not declared in this scope
21 | for(uitn32_t i = 0; i < group2.size(); i++){
| ^
a.cc:22:24: error: 'group_x' was not declared in this scope; did you mean 'group3'?
22 | if(x == group2[i]) group_x = 2;
| ^~~~~~~
| group3
a.cc:23:24: error: 'group_y' was not declared in this scope; did you mean 'group3'?
23 | if(y == group2[i]) group_y = 2;
| ^~~~~~~
| group3
a.cc:26:15: error: expected ';' before 'i'
26 | for(uint32_t i = 0; i < group3.size(); i++){
| ^~
| ;
a.cc:26:23: error: 'i' was not declared in this scope
26 | for(uint32_t i = 0; i < group3.size(); i++){
| ^
a.cc:26:34: error: request for member 'size' in 'group3', which is of non-class type 'int'
26 | for(uint32_t i = 0; i < group3.size(); i++){
| ^~~~
a.cc:27:24: error: 'group_x' was not declared in this scope; did you mean 'group3'?
27 | if(x == group3[i]) group_x = 3;
| ^~~~~~~
| group3
a.cc:28:24: error: 'group_y' was not declared in this scope; did you mean 'group3'?
28 | if(y == group3[i]) group_y = 3;
| ^~~~~~~
| group3
a.cc:31:6: error: 'group_x' was not declared in this scope; did you mean 'group3'?
31 | if(group_x == group_y){
| ^~~~~~~
| group3
a.cc:31:17: error: 'group_y' was not declared in this scope; did you mean 'group3'?
31 | if(group_x == group_y){
| ^~~~~~~
| group3
|
s385796393 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int32_t main()
{
vector<uint32_t> group1{1,3,4,5,7,8,10,12};
vecror<uint32_t> group2{4,6,9,11};
vector<uint32_t> group3{2};
uint32_t x, y;
cin >> x >> y;
uint32_t group_x, group_y;
for(uint32_t i = 0; i < group1.size();i++){
if(x == group1[i]) group_x = 1;
if(y == group1[i]) group_y = 1;
}
for(uitn32_t i = 0; i < group2.size(); i++){
if(x == group2[i]) group_x = 2;
if(y == group2[i]) group_y = 2;
}
for(uint32_t i = 0; i < group3.size(); i++){
if(x == group3[i]) group_x = 3;
if(y == group3[i]) group_y = 3;
}
if(group_x == group_y){
cout << 'Yes' << endl;
} else {
cout << 'No' << endl;
}
return 0;
} | a.cc:32:13: warning: multi-character character constant [-Wmultichar]
32 | cout << 'Yes' << endl;
| ^~~~~
a.cc:34:13: warning: multi-character character constant [-Wmultichar]
34 | cout << 'No' << endl;
| ^~~~
a.cc: In function 'int32_t main()':
a.cc:8:10: error: 'uint32_t' was not declared in this scope
8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12};
| ^~~~~~~~
a.cc:3:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
2 | #include <vector>
+++ |+#include <cstdint>
3 |
a.cc:8:18: error: template argument 1 is invalid
8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12};
| ^
a.cc:8:18: error: template argument 2 is invalid
a.cc:8:20: error: scalar object 'group1' requires one element in initializer
8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12};
| ^~~~~~
a.cc:9:3: error: 'vecror' was not declared in this scope; did you mean 'perror'?
9 | vecror<uint32_t> group2{4,6,9,11};
| ^~~~~~
| perror
a.cc:9:20: error: 'group2' was not declared in this scope
9 | vecror<uint32_t> group2{4,6,9,11};
| ^~~~~~
a.cc:10:18: error: template argument 2 is invalid
10 | vector<uint32_t> group3{2};
| ^
a.cc:12:11: error: expected ';' before 'x'
12 | uint32_t x, y;
| ^~
| ;
a.cc:13:10: error: 'x' was not declared in this scope
13 | cin >> x >> y;
| ^
a.cc:13:15: error: 'y' was not declared in this scope
13 | cin >> x >> y;
| ^
a.cc:15:11: error: expected ';' before 'group_x'
15 | uint32_t group_x, group_y;
| ^~~~~~~~
| ;
a.cc:16:15: error: expected ';' before 'i'
16 | for(uint32_t i = 0; i < group1.size();i++){
| ^~
| ;
a.cc:16:23: error: 'i' was not declared in this scope
16 | for(uint32_t i = 0; i < group1.size();i++){
| ^
a.cc:17:24: error: 'group_x' was not declared in this scope; did you mean 'group3'?
17 | if(x == group1[i]) group_x = 1;
| ^~~~~~~
| group3
a.cc:18:24: error: 'group_y' was not declared in this scope; did you mean 'group3'?
18 | if(y == group1[i]) group_y = 1;
| ^~~~~~~
| group3
a.cc:21:7: error: 'uitn32_t' was not declared in this scope; did you mean 'u_int32_t'?
21 | for(uitn32_t i = 0; i < group2.size(); i++){
| ^~~~~~~~
| u_int32_t
a.cc:21:23: error: 'i' was not declared in this scope
21 | for(uitn32_t i = 0; i < group2.size(); i++){
| ^
a.cc:22:24: error: 'group_x' was not declared in this scope; did you mean 'group3'?
22 | if(x == group2[i]) group_x = 2;
| ^~~~~~~
| group3
a.cc:23:24: error: 'group_y' was not declared in this scope; did you mean 'group3'?
23 | if(y == group2[i]) group_y = 2;
| ^~~~~~~
| group3
a.cc:26:15: error: expected ';' before 'i'
26 | for(uint32_t i = 0; i < group3.size(); i++){
| ^~
| ;
a.cc:26:23: error: 'i' was not declared in this scope
26 | for(uint32_t i = 0; i < group3.size(); i++){
| ^
a.cc:26:34: error: request for member 'size' in 'group3', which is of non-class type 'int'
26 | for(uint32_t i = 0; i < group3.size(); i++){
| ^~~~
a.cc:27:24: error: 'group_x' was not declared in this scope; did you mean 'group3'?
27 | if(x == group3[i]) group_x = 3;
| ^~~~~~~
| group3
a.cc:28:24: error: 'group_y' was not declared in this scope; did you mean 'group3'?
28 | if(y == group3[i]) group_y = 3;
| ^~~~~~~
| group3
a.cc:31:6: error: 'group_x' was not declared in this scope; did you mean 'group3'?
31 | if(group_x == group_y){
| ^~~~~~~
| group3
a.cc:31:17: error: 'group_y' was not declared in this scope; did you mean 'group3'?
31 | if(group_x == group_y){
| ^~~~~~~
| group3
|
s139442421 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int m(int a1, int a2, int a3) {
if (a1 > a2) {
swap(a1, a2);
}
if (a2 > a3) {
swap(a2, a3);
}
if (a1 > a2) {
swap(a1, a2);
}
return a3-a1;
}
int f(int H, int W) {
int r = 10000000;
int k = H / 3;
if (k != 0) {
r = min(r, m(k * W, (H - k)*(W / 2), (H - k)*(W - (W / 2))));
}
r = min(r, m((k + 1) * W, (H - k - 1)*(W / 2), (H - k - 1)*(W - (W / 2))));
return r;
}
int main(){
int H, W;
cin >> H >> W;
int res = H;
if (H % 3 == 0 || W % 3 == 0) {
res = 0;
cout << 0 << endl;
return 0;
}
res = min(H, W);
res = min(res, f(H, W));
res = min(res, f(W, H));
cout << res << endl;
return 0; | a.cc: In function 'int main()':
a.cc:38:12: error: expected '}' at end of input
38 | return 0;
| ^
a.cc:24:11: note: to match this '{'
24 | int main(){
| ^
|
s505405087 | p03711 | Java | import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = {3, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}
int x = sc.nextInt();
int y = sc.nextInt();
if (a[x] == a[y]) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | Main.java:9: error: ';' expected
int[] a = {3, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}
^
1 error
|
s717037798 | p03711 | C++ | #include <iostream>
using namespace std;
int main()
{
int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1};
// 配列の添字は 0 から始まるので,a [0] は 0 にしている.
int x , y ; cin >> x >> y ;
cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
return 0; | a.cc: In function 'int main()':
a.cc:12:18: error: expected '}' at end of input
12 | return 0;
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s464834571 | p03711 | C++ | int main () {
int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1};
// 配列の添字は 0 から始まるので,a [0] は 0 にしている.
int x , y ; cin >> x >> y ;
cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
} | a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope
4 | int x , y ; cin >> x >> y ;
| ^~~
a.cc:5:1: error: 'cout' was not declared in this scope
5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
| ^~~~
a.cc:5:53: error: 'endl' was not declared in this scope
5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
| ^~~~
|
s713014932 | p03711 | C++ | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
//(0)~12までの数字をグループ化
int t[] = {0, 1,3,1,2,1,2,1,1,2,1,2,1};
//()内にif文のようなものを入れる
System.out.println(t[x] == t[y] ? "Yes" : "No");
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s804522570 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
set<int> s = { 4,6,9,11 };
int a, b;
cin >> a >> b;
cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
} | a.cc:9:77: warning: missing terminating " character
9 | cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
| ^
a.cc:9:77: error: missing terminating " character
9 | cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
| ^~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:9:76: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
| ~ ^
| )
10 | }
| ~
a.cc:9:76: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
| ~ ^
| )
10 | }
| ~
|
s245709323 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
set<int> s = { 4,6,9,11 };
int a, b;
cin >> a >> b;
cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
} | a.cc:9:78: warning: missing terminating " character
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
| ^
a.cc:9:78: error: missing terminating " character
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
| ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:9:77: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
| ~ ^
| )
10 | }
| ~
a.cc:9:77: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
| ~ ^
| )
10 | }
| ~
a.cc:9:77: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
| ~ ^
| )
10 | }
| ~
|
s830624950 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
set<int> s = { 4,6,9,11 };
int a, b;
cin >> a >> b;
cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
} | a.cc:9:79: warning: missing terminating " character
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
| ^
a.cc:9:79: error: missing terminating " character
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
| ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:9:78: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
| ~ ^
| )
10 | }
| ~
a.cc:9:78: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
| ~ ^
| )
10 | }
| ~
|
s649739574 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
set<int> s = { 4,6,9,11 };
int a, b;
cin >> a >> b;
cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
} | a.cc:9:77: warning: missing terminating " character
9 | cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
| ^
a.cc:9:77: error: missing terminating " character
9 | cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
| ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
10 | }
| ^
a.cc:9:76: error: expected ')' before '}' token
9 | cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
| ~ ^
| )
10 | }
| ~
|
s658115451 | p03711 | C++ | #include <iostream>
#include <string>
char str[100][100];
using namespace std;
typedef unsigned long long int biginteger;
int main()
{
int h, w;
cin >> h >> w;
for (int i = 0; i < h; i++) {
cin >> str[i];
}
string hash;
for (int i = 0; i < w + 2; i++) {
hash += '#';
}
cout << hash << endl;
for (int i = 0; i < h; ++i) {
cout << '#' << str[i] << '#' << endl;
}
cout << hash << endl;
system("pause");
return 0; | a.cc: In function 'int main()':
a.cc:34:18: error: expected '}' at end of input
34 | return 0;
| ^
a.cc:11:1: note: to match this '{'
11 | {
| ^
|
s863226263 | p03711 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b>>c;
int a[13] = { 0,1,2,1,3,1,3,1,1,3,1,3,1 };
if (a[a] == a[b])cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:13: error: conflicting declaration 'int a [13]'
10 | int a[13] = { 0,1,2,1,3,1,3,1,1,3,1,3,1 };
| ^
a.cc:8:13: note: previous declaration as 'int a'
8 | int a, b, c;
| ^
a.cc:11:14: error: invalid types 'int[int]' for array subscript
11 | if (a[a] == a[b])cout << "Yes" << endl;
| ^
a.cc:11:22: error: invalid types 'int[int]' for array subscript
11 | if (a[a] == a[b])cout << "Yes" << endl;
| ^
|
s860954458 | p03711 | C++ | #include <stdio.h>
#include <iostream>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
lf(x==4||x==6||x==9||x==11){
if(y==4||y==6||y==9||y==11){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
if(x==1||x==3||x==5||x==7||x==8||x==10||x==12){
if(y==1||y==3||y==5||y==7||y==8||y==10||y==12){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
} | a.cc: In function 'int main()':
a.cc:8:1: error: 'lf' was not declared in this scope
8 | lf(x==4||x==6||x==9||x==11){
| ^~
|
s300731205 | p03711 | C++ | import numpy as np
#from scipy.interpolate import interpld
from matplotlib import pyplot as plt
%matplotlib inline
import sys
x, y = [int(i) for i in input().split()]
list = [1,3,5,7,8,10,12,4,6,9,11,2,0]
slice1 = list[0:7]
slice2 = list[7:11]
slice3 = list[11:12]
if x in slice1 and y in slice1:
print('Yes')
elif x in slice2 and y in slice2:
print ('Yes')
elif x in slice3 and y in slice3:
print ('Yes')
else:
print ('No') | a.cc:2:2: error: invalid preprocessing directive #from
2 | #from scipy.interpolate import interpld
| ^~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
13 | print('Yes')
| ^~~~~
a.cc:15:12: warning: multi-character character constant [-Wmultichar]
15 | print ('Yes')
| ^~~~~
a.cc:17:12: warning: multi-character character constant [-Wmultichar]
17 | print ('Yes')
| ^~~~~
a.cc:19:12: warning: multi-character character constant [-Wmultichar]
19 | print ('No')
| ^~~~
a.cc:1:1: error: 'import' does not name a type
1 | import numpy as np
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s407051619 | p03711 | C | #include <stdio.h>
int main(void){
int x,y;
scanf("%d %d".&x.&y);
if(x==4||x==6||x==9||x==11)x=1;
else if(x=2);
else x=3;
if(y==4||y==6||y==9||y==11)y=1;
else if(y=2);
else y=3;
if(x==y)printf("Yes");
else printf("No");
return 0;
} | main.c: In function 'main':
main.c:6:19: error: expected identifier before '&' token
6 | scanf("%d %d".&x.&y);
| ^
|
s986979576 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int x[13]={0,1,3,1,2,1,2,1,1,2,1,2,1}
int x,y;
cin>>x>>y;
if(x[x]==x[y])cout<<"Yes"<<endl;
else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:9: error: expected ',' or ';' before 'int'
6 | int x,y;
| ^~~
a.cc:7:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [13]')
7 | cin>>x>>y;
| ~~~^~~
| | |
| | int [13]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*'
7 | cin>>x>>y;
| ^
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'short int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(short int)((int*)(& x))' to 'short int&'
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(short unsigned int)((int*)(& x))' to 'short unsigned int&'
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(int)((int*)(& x))' to 'int&'
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'unsigned int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(unsigned int)((int*)(& x))' to 'unsigned int&'
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'long int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(long int)((int*)(& x))' to 'long int&'
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'long unsigned int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(long unsigned int)((int*)(& x))' to 'long unsigned int&'
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(long long int)((int*)(& x))' to 'long long int&'
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive]
7 | cin>>x>>y;
| ^
| |
| int*
a.cc:7:14: error: cannot bind rvalue '(long long unsigned int)((int*)(& x))' to 'long long unsigned int&'
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:14: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
7 | cin>>x>>y;
| ^
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'int [13]' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'int [13]' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'int [13]' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'int [13]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'int [13]' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/inclu |
s488154466 | p03711 | C++ | #include<iostream>
int main(){
int x[13]={0,1,3,1,2,1,2,1,1,2,1,2,1}
int x,y;
cin>>x>>y;
if(x[x]==x[y])cout<<"Yes"<<endl;
else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:9: error: expected ',' or ';' before 'int'
5 | int x,y;
| ^~~
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>x>>y;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:17: error: 'y' was not declared in this scope
6 | cin>>x>>y;
| ^
a.cc:7:13: error: invalid types 'int [13][int [13]]' for array subscript
7 | if(x[x]==x[y])cout<<"Yes"<<endl;
| ^
a.cc:7:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | if(x[x]==x[y])cout<<"Yes"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | if(x[x]==x[y])cout<<"Yes"<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<"No"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout<<"No"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s640538763 | p03711 | C++ | #include<iostream>
int main(){
int x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
int x,y;
cin>>x>>y;
if(x[x]==x[y])cout<<"Yes"<<endl;
else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:3:45: error: too many initializers for 'int [12]'
3 | int x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>x>>y;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:6:17: error: 'y' was not declared in this scope
6 | cin>>x>>y;
| ^
a.cc:7:13: error: invalid types 'int [12][int [12]]' for array subscript
7 | if(x[x]==x[y])cout<<"Yes"<<endl;
| ^
a.cc:7:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | if(x[x]==x[y])cout<<"Yes"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | if(x[x]==x[y])cout<<"Yes"<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<"No"<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout<<"No"<<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s066846934 | p03711 | C++ | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
String[] number = line.split(" ");
int x = Integer.parseInt(number[0]);
int y = Integer.parseInt(number[1]);
int[] groupB = new int[4];
groupB[0] = 4;
groupB[1] = 6;
groupB[2] = 9;
groupB[3] = 11;
boolean yorn = false;
boolean firstif = true;
if((x == 2) || (y == 2)) {
yorn = false;
} else {
for(int i = 0; i < 4; i++) {
if((groupB[i] == x) && firstif){
for(int j = i + 1; j < 4; j++) {
if(groupB[j] == y) {
yorn = yorn || true;
} else {
yorn = yorn || false;
}
firstif = false;
}
} else if(firstif) {
yorn = true;
for(int j = i + 1; j < 4; j++) {
if(groupB[j] == y) {
yorn = yorn && false;
firstif = false;
} else {
yorn = yorn && true;
}
}
}
}
}
if(yorn) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
4 | public class Main {
| ^~~~~~
|
s203617161 | p03711 | C++ | x,y = map(int,input().split())
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
if (x in a and y in a) or (x in b and y in b):
print('Yes')
else:
print('No') | a.cc:5:15: warning: multi-character character constant [-Wmultichar]
5 | print('Yes')
| ^~~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
7 | print('No')
| ^~~~
a.cc:1:1: error: 'x' does not name a type
1 | x,y = map(int,input().split())
| ^
|
s997717542 | p03711 | C++ | int main() {
int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; // 配列の添字は 0 から始まるので,a[0] は 0 にしている.
int x, y; cin >> x >> y;
cout << (a[x] == a[y] ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:3:11: error: 'cin' was not declared in this scope
3 | int x, y; cin >> x >> y;
| ^~~
a.cc:4:1: error: 'cout' was not declared in this scope
4 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
| ^~~~
a.cc:4:42: error: 'endl' was not declared in this scope
4 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
| ^~~~
|
s080063699 | p03711 | C++ | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
let solve a b = if g.(a) == g.(b) then "Yes" else "No"
let () = Printf.printf "%s\n" (Scanf.scanf "%d %d" solve) | a.cc:1:1: error: 'let' does not name a type
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^~~
a.cc:1:15: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:18: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:21: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:24: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:27: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:30: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:33: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:36: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:39: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:42: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:45: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
a.cc:1:48: error: expected unqualified-id before numeric constant
1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
| ^
|
s337974424 | p03711 | C++ | (define L (list 0 1 3 1 2 1 2 1 1 2 1 2 1))
(define x (read))
(define y (read))
(define (solve x y)
(cond
[(= (list-ref L x) (list-ref L y)) "Yes"]
[else "No"]))
(display (solve x y))
(newline) | a.cc:1:8: error: expected ')' before 'L'
1 | (define L (list 0 1 3 1 2 1 2 1 1 2 1 2 1))
| ~ ^~
| )
|
s746836126 | p03711 | Java | import java.util.*;
import java.lang.*;
public class Main {
int group(int x) {
switch (x) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 0;
case 4:
case 6:
case 9:
case 11:
return 1;
case 2:
return 2;
default:
return -1;
}
}
public int main (String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println((group(x) == group(y)?"Yes":"No"));
}
} | Main.java:34: error: missing return statement
}
^
1 error
|
s311089812 | p03711 | Java | import java.util.*;
import java.lang.*;
public class Main {
int group(int x) {
switch (x) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 0:
case 4:
case 6:
case 9:
case 11:
return 1:
case 2:
return 2:
default:
return -1:
}
}
public int main (String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
System.out.println((group(x) == group(y)?"Yes":"No"));
}
} | Main.java:15: error: ';' expected
return 0:
^
Main.java:20: error: ';' expected
return 1:
^
Main.java:22: error: ';' expected
return 2:
^
Main.java:24: error: ';' expected
return -1:
^
4 errors
|
s261041402 | p03711 | C++ | // AtCoderSolution.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int
main()
{
int x, y;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No";
}
else if (x == 4 || x == 6 || x == 9) {
if (y == 6 || y == 9 || y == 11) {
cout << "Yes";
}
else {
cout << "No";
}
}
else {
if (y == 6 || y == 9 || y == 11) {
cout << "Yes";
}
else {
cout << "No";
}
}
cin >> x;
return 0;
} | a.cc:3:10: fatal error: stdafx.h: No such file or directory
3 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s621775825 | p03711 | C++ | #include <iostream.h>
using namespace std;
int
main()
{
int x,y;
cin >> x >>y;
if(x==2||y==2){
cout << "No";
}else if(x==4||x==6||x==9){
if(y==6||y==9||y==11){
cout << true;
}else{
cout << false;
}
}else{
if(y==6||y==9||y==11){
cout << false;
}else{
cout << true;
}
}
} | a.cc:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s860881206 | p03711 | Java | public class atcoder {
int groupA[] = {1, 3, 5, 7, 8, 10, 12 };
int groupB[] ={4,6,9,11};
grouop = new int [0];
grpupC[0] = 2;
if(x == y){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
| Main.java:4: error: <identifier> expected
grouop = new int [0];
^
Main.java:5: error: ']' expected
grpupC[0] = 2;
^
Main.java:7: error: illegal start of type
if(x == y){
^
Main.java:7: error: <identifier> expected
if(x == y){
^
Main.java:7: error: <identifier> expected
if(x == y){
^
Main.java:9: error: illegal start of type
}else{
^
6 errors
|
s139610771 | p03711 | Java | import java.util.Scanner;
public class Main
{ public static void main(String[] args)4
{
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0};
if (a[x] == a[y]) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
| Main.java:3: error: ';' expected
{ public static void main(String[] args)4
^
1 error
|
s507480948 | p03711 | Java | import java.util.Scanner;
public class Algorism
{ public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0};
if (a[x] == a[y]) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
| Main.java:2: error: class Algorism is public, should be declared in a file named Algorism.java
public class Algorism
^
1 error
|
s251691850 | p03711 | Java | import java.util.Scanner;
public class Algorism
{ public static void main(String[] args)4
{
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0};
if (a[x] == a[y]) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
| Main.java:3: error: ';' expected
{ public static void main(String[] args)4
^
1 error
|
s132385693 | p03711 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class ContestMain {
public static void main(String[] args) {
int[] group = {0,1,3,1,2,1,2,1,1,2,1,2,1};
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try{
String s = new String(in.readLine());
String[] spStr = s.split(" ",0);
int x = Integer.parseInt(spStr[0]);
int y = Integer.parseInt(spStr[1]);
if(group[x] == group[y]){
System.out.println("Yes");
}else{
System.out.println("No");
}
System.out.println();
}catch(Exception e){}
}
} | Main.java:4: error: class ContestMain is public, should be declared in a file named ContestMain.java
public class ContestMain {
^
1 error
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.