submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s480972788 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int H,W;
cin >> H,W >> endl;
H += 2
for (int i = 0;i < H;i++) {
cout << "#" << endl;
}
cout << "#";
vector <string> A(N);
for (int i =0;i < N;i++) {
cin >> A.at(i) >> endl;
cout << A.at(i);
}
cout << "#" << endl;
cout << "#... | a.cc: In function 'int main()':
a.cc:6:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
6 | cin >> H,W >> endl;
| ~~^~~~~~~
a.cc:7:9: error: expected ';' before 'for'
7 | H += 2
| ^
| ;
8 |
9 |... |
s004473348 | p03711 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <stack>
#include <istream>
#include <map>
#include <set>
#include <queue>
#define rep0(i,n) for (int i = 0; i < (n); ++i) //0スタート
#define rep1(i,n) for (int i = 1; i < (n); ++i) ... | a.cc: In function 'int main()':
a.cc:29:18: error: expected ',' or ';' before '=' token
29 | vector<int>a(13) = {0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
a.cc:33:6: error: 'P' was not declared in this scope
33 | else P("No");
| ^
|
s281097923 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
vector<int> A(7);
vector<int> B(4)
A = {1, 3, 5, 7, 8, 10, 12};
B = {4, 6, 9,... | a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'A'
12 | A = {1, 3, 5, 7, 8, 10, 12};
| ^
|
s149318244 | p03711 | C++ | include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
vector<int> A, B, C;
A = {1, 3, 5, 7, 8, 10, 12};
B = {4, 6, 9, 11};
bool flag... | a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
9 | cin >> x >> y;
| ^~~
a.cc:10:5: error: 'vector' was not declared in this scope
10 | vector<int> A, B, C;
... |
s580850104 | p03711 | C++ | #include<stdio.h>
int main(void)
{
int x,y;
scanf("%d %d",&x,&y);
if(x==2||y==2) {
printf("No\n");
}
if(x==4||x==6||x==9||x==11) {
if(y==4||y==6||y==9||y==11) {
printf("Yes\n");
}
slse {
printf("No\n");
}
}
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|... | a.cc: In function 'int main()':
a.cc:13:17: error: 'slse' was not declared in this scope
13 | slse {
| ^~~~
a.cc:21:17: error: 'slse' was not declared in this scope
21 | slse {
| ^~~~
|
s699916855 | p03711 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#include<iomanip>
#include<stack>
#include<map>
#include<queue>
#include<set>
#define int long long
using namespace std;
const int INF = 1e10;
const int ZERO = 0;
signed main() {
int x,y;
cin >>... | a.cc: In function 'int main()':
a.cc:21:29: error: expected ',' or ';' before '=' token
21 | vector<int> vec(12) = {0,1,0,2,0,2,0,0,2,0,2,0};
| ^
|
s354872023 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) pu... | a.cc: In function 'int main()':
a.cc:163:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
163 | if(b!=2&&b!=4&&b!=6&&b!=9|&&b!=11)
| ~~~^~~~
a.cc:163:33: error: label 'b' used but not defined
163 | if(b!=2&&b!=4&&b!=6&&b!=9|&&b!=11)
|... |
s929945379 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int x,gx,gy;
int main(){
if(x==2){
gx=1;
}else if((x==4)||(x==6)||(x==9)||(x==11)){
gx=2;
}else{
gx=3;
}
if(y==2){
gy=1;
}else if((y==4)||(y==6)||(y==9)||(y==11)){
gy=2;
}else{
gy=3;
}
i... | a.cc: In function 'int main()':
a.cc:15:9: error: 'y' was not declared in this scope; did you mean 'yn'?
15 | if(y==2){
| ^
| yn
|
s195690597 | p03711 | C++ | #include<iostream>
#include<string>
#include<utility>
#include<cmath>
#include<map>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;
#define rep(i,n) for(int i=0;i<(int)n;i++)
int main(void) {
int a[] = { 0,1.3,1.2,1,2,1,1,2,1,2,1 };
int x, y; cin >>... | a.cc: In function 'int main()':
a.cc:15:23: error: narrowing conversion of '1.3e+0' from 'double' to 'int' [-Wnarrowing]
15 | int a[] = { 0,1.3,1.2,1,2,1,1,2,1,2,1 };
| ^~~
a.cc:15:27: error: narrowing conversion of '1.2e+0' from 'double' to 'int' [-Wnarrowing]
15 | int... |
s737885428 | p03711 | C++ | #include<iostream>
#include<string>
#include<utility>
#include<cmath>
#include<map>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;
#define rep(i,n) for(int i=0;i<(int)n;i++)
int main(void) {
int a[] = { 0,1.3,1.2,1,2,1,1,2,1,2,1 };
int x, y; cin >>... | a.cc: In function 'int main()':
a.cc:15:23: error: narrowing conversion of '1.3e+0' from 'double' to 'int' [-Wnarrowing]
15 | int a[] = { 0,1.3,1.2,1,2,1,1,2,1,2,1 };
| ^~~
a.cc:15:27: error: narrowing conversion of '1.2e+0' from 'double' to 'int' [-Wnarrowing]
15 | int... |
s937082414 | p03711 | C++ | #include<stdio.h>
int main(void)
{
int x,y;
scanf("%d",&x);
scanf("%d",&y);
if(x==1||x==3||x==5||x==7||x==8||x==10||x==12){
if(x==y||y==3||y==5||y==7||y==8||y==10||y==12){
printf("yes\n");
}
}
if(x==4||x==6||x==9||x==11||){
if(y==4||y==6||y==9||y==11||){
printf("Yes\n");
}
}
if(x==2){
if(y==2){
... | a.cc: In function 'int main()':
a.cc:12:37: error: expected primary-expression before ')' token
12 | if(x==4||x==6||x==9||x==11||){
| ^
a.cc:13:45: error: expected primary-expression before ')' token
13 | if(y==4||y==6||y==9||y==11||){
| ... |
s081131453 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
int x,y;
cin >> x >> y;
if(a.at(x) == a.at(y)) {
cout << "Yes" << endl;
}else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:4:16: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
4 | vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
| ^~
a.cc:4:16: note: remove parentheses to default-initialize a variable
4 | vector<int> a() = {1,3,1,2,1... |
s191458006 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,y,gx, gy
cin >> x >> y ;
if (x==2){
gx = 1
}else if{((x==4)|| (x=6) || (x==9) || (x==11))
gx=2
}else gx=3
if (y==2){
gy = 1
}else if {((y==4)|| (y=6) || (y==9) || (y==11))
gy=2
}else gy=3
if (gx==gy){
cout << "Yes" << endl;
else
cout << "No" << en... | a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
5 | cin >> x >> y ;
| ^~~
a.cc:7:15: error: expected ';' before '}' token
7 | gx = 1
| ^
| ;
8 | }else if{((x==4)|| (x=6) || (x==9) || (x==11))
| ~
a.c... |
s617358179 | p03711 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int[] array1 = {1,3,5,7,8,10,12};
int[] array2 = {4,6,9,11};
if((array1.contains(x)&&array1.contains(y))||(array2.contains(x... | Main.java:9: error: cannot find symbol
if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y)))
^
symbol: method contains(int)
location: variable array1 of type int[]
Main.java:9: error: cannot find symbol
if((array1.contains(x)&&array1.contains(y))||(arra... |
s710944033 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,y;
cin >> x >> y;
vector<int> v(12)={1,3,1,2,1,2,1,1,2,1,2,1};
if (v[x-1]==v[y-1]){
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:20: error: expected ',' or ';' before '=' token
7 | vector<int> v(12)={1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s245530978 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> a;
a={0,1,2,1,3,1,3,1,1,3,1,3,1};
int a,b;
cin >> x >> y;
if(a.at(x)==a.at(y)){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:7: error: conflicting declaration 'int a'
6 | int a,b;
| ^
a.cc:4:15: note: previous declaration as 'std::vector<int> a'
4 | vector<int> a;
| ^
a.cc:7:10: error: 'x' was not declared in this scope
7 | cin >> x >> y;
| ... |
s823927985 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin >> x >> y;
vector<int> a(13) {0,1,3,1,2,1,2,1,1,2,1,2,1}
if(a.at(x) ==a.at(y){
cout << "Yes" << endl;
}
else{
cout <<"No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:21: error: expected ',' or ';' before '{' token
8 | vector<int> a(13) {0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
a.cc:9:23: error: expected ')' before '{' token
9 | if(a.at(x) ==a.at(y){
| ~ ^
| )
a.c... |
s863918216 | p03711 | C++ | #[allow(unused_imports)]
use std::cmp::{max, min, Ordering};
#[allow(unused_imports)]
use std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, VecDeque};
#[allow(unused_imports)]
use std::io::{stderr, stdin, stdout, BufWriter, StdoutLock, Write};
#[allow(unused_imports)]
use std::iter::FromIterator;
#[a... | a.cc:1:2: error: invalid preprocessing directive #[
1 | #[allow(unused_imports)]
| ^
a.cc:3:2: error: invalid preprocessing directive #[
3 | #[allow(unused_imports)]
| ^
a.cc:5:2: error: invalid preprocessing directive #[
5 | #[allow(unused_imports)]
| ^
a.cc:7:2: error: invalid preproc... |
s754875557 | p03711 | C++ | #include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
using namespace std;
int main(){
int x, y; cin >> x, y;
map<int, int> m;
m[1] = 1;
m[2] = 3;
m[3] = 1;
m[4] = 2;
... | a.cc: In function 'int main()':
a.cc:16:3: error: 'map' was not declared in this scope
16 | map<int, int> m;
| ^~~
a.cc:11:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
10 | #include <sstream>
+++ |+#include <map>
11 | using namespace std;
a.c... |
s325115821 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a[] = {1,3,1,2,1,2,1,1,2,1,2,1};
int x,y;
cin >>x>>y;
string ans;
a[x-1]==a[y-1] ? ans="Yes" : ans="No"
cout <<ans<< endl;
}
| a.cc: In function 'int main()':
a.cc:10:40: error: expected ';' before 'cout'
10 | a[x-1]==a[y-1] ? ans="Yes" : ans="No"
| ^
| ;
11 | cout <<ans<< endl;
| ~~~~
|
s748309567 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[]={0,2,0,1,0,1,0,0,1,0,1,0};
intx,y;
cin>>x>>y;
if(a[x-1]==a[y-1]){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:5: error: 'intx' was not declared in this scope; did you mean 'int'?
6 | intx,y;
| ^~~~
| int
a.cc:6:10: error: 'y' was not declared in this scope
6 | intx,y;
| ^
a.cc:7:10: error: 'x' was not declared in this scope
7 | ci... |
s470686409 | p03711 | C++ | #include<bits/stdc++.h>
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;
cout << (a[x]==a[y]?"Yes":"No") << endl;1 3
}
| a.cc: In function 'int main()':
a.cc:6:44: error: expected ';' before numeric constant
6 | cout << (a[x]==a[y]?"Yes":"No") << endl;1 3
| ^~
| ;
|
s837806422 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
map<int,int> m;
m[1] = 1;
m[2] = 3;
m[3] = 1;
m[4] = 2;
m[5] = 1;
m[6] = 2;
m[7] = 1;
m[8] = 1;
m[9] = 2;
m[10] = 1;
m[11] = 2;
m[12] = 1;
int x, y;
cin >> x >> y;
if(map.at(x) == map.at(y))
cout << "Yes" << endl;
else
... | a.cc: In function 'int main()':
a.cc:20:9: error: expected unqualified-id before '.' token
20 | if(map.at(x) == map.at(y))
| ^
|
s861537594 | p03711 | Java |
import java.util.Scanner;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if (x == y && y == 2){
System.out.println("Yes");
}
if (x == 4 || x == 6 || x == 9 || x == 11){
if (y == 4 || y == ... | Main.java:16: error: illegal character: '\u3000'
if (x ==?4 || x == 6 || x == 9 || x == 11){
^
Main.java:16: error: not a statement
if (x ==?4 || x == 6 || x == 9 || x == 11){
^
Main.java:16: error: ';' expected
if (x ==?4 || x == 6 || x == 9 || x == 11){
... |
s035846483 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int group(int x){
if (x==2)
g=3;
else if (x==4 || x==6 || x==9 || x==11)
g=2;
else
g=1;
return g;
}
int main() {
int x{};
int y{};
cin >> x >> y;
if (group(x)==group(y))
cout << "Yes";
else
cout << "No";
... | a.cc: In function 'int group(int)':
a.cc:6:9: error: 'g' was not declared in this scope
6 | g=3;
| ^
a.cc:8:9: error: 'g' was not declared in this scope
8 | g=2;
| ^
a.cc:10:9: error: 'g' was not declared in this scope
10 | g=1;
| ^
a.cc:11:8:... |
s072385922 | p03711 | C++ | #include <iostream>
using namespace std;
int group(x)
{
int g;
if (x==2)
g=3;
else if (x==4 || x==6 || x==9 || x==11)
g=2;
else
g=1;
return g;
}
int main()
{
int x{};
int y{};
cin >> x >> y;
if (group(x)==group(y))
cout << "Yes";
else
cout... | a.cc:4:11: error: 'x' was not declared in this scope
4 | int group(x)
| ^
a.cc: In function 'int main()':
a.cc:20:14: error: 'group' cannot be used as a function
20 | if (group(x)==group(y))
| ~~~~~^~~
a.cc:20:24: error: 'group' cannot be used as a function
20 | if (group... |
s270603346 | p03711 | C++ | #include <iostream>
using namespace std;
int group(x)
{
int g;
if (x==2)
g=3;
else if (x==4 || x==6 || x==9 || x==11)
g=2;
else
g=1
return g;
}
int main()
{
int x{};
int y{};
cin >> x >> y;
if (group(x)==group(y))
cout << "Yes";
else
cout ... | a.cc:4:11: error: 'x' was not declared in this scope
4 | int group(x)
| ^
a.cc: In function 'int main()':
a.cc:20:14: error: 'group' cannot be used as a function
20 | if (group(x)==group(y))
| ~~~~~^~~
a.cc:20:24: error: 'group' cannot be used as a function
20 | if (group... |
s162902658 | p03711 | C | #include<stdio.h>
#include<string.h>
int check(int &x){
if(x==4 || x==6 || x==9 || x==11){
return 2;
}else if(x==2){
return 3;
}else{
return 1;
}
}
int main(void){
int x,y;
int gx,gy;
scanf("%d%d",&x,&y);
gx = check(x);
gy = check(y);
if(gx==gy){
printf("Yes\n");
}else{
pr... | main.c:4:15: error: expected ';', ',' or ')' before '&' token
4 | int check(int &x){
| ^
main.c: In function 'main':
main.c:20:8: error: implicit declaration of function 'check' [-Wimplicit-function-declaration]
20 | gx = check(x);
| ^~~~~
|
s655154627 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b;
vector<int> grp1 = {1,3,5,7,8,10,12};
vector<int> grp2 = {4,6,9,11};
vector <int> grp3 = {2};
cin >> a >> b;
if ((find(grp1.begin(), grp1.end(), a) == grp1.end()) && (find(grp1.begin(), grp1.end(), b) ... | a.cc: In function 'int main()':
a.cc:15:6: error: 'x' was not declared in this scope
15 | if ((x == 2) && (y == 2)){
| ^
a.cc:15:18: error: 'y' was not declared in this scope
15 | if ((x == 2) && (y == 2)){
| ^
a.cc:21:16: error: expected ';' before '}' token
21 | cout << "Yes... |
s925552567 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b;
vector<int> grp1 = {1,3,5,7,8,10,12};
vector<int> grp2 = {4,6,9,11};
vector <int> grp3 = {2};
cin >> a >> b;
if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == ... | a.cc: In function 'int main()':
a.cc:14:53: error: no match for 'operator&&' (operand types are 'bool' and '__gnu_cxx::__normal_iterator<int*, std::vector<int> >')
14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
s462479018 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b;
int grp1[] = {1,3,5,7,8,10,12};
int grp2[] = {4,6,9,11};
int grp3[] = {2};
cin >> a >> b;
if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
if (fi... | a.cc: In function 'int main()':
a.cc:13:15: error: request for member 'begin' in 'grp1', which is of non-class type 'int [7]'
13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
| ^~~~~
a.cc:13:29: error: request for member 'end' in 'grp1'... |
s215246825 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b;
int grp1[] = [1,3,5,7,8,10,12];
int grp2[] = [4,6,9,11];
int grp3[] = [2];
cin >> a >> b;
if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
if (fi... | a.cc: In function 'int main()':
a.cc:9:15: error: expected identifier before numeric constant
9 | int grp1[] = [1,3,5,7,8,10,12];
| ^
a.cc:9:16: error: expected ']' before ',' token
9 | int grp1[] = [1,3,5,7,8,10,12];
| ^
| ]
a.cc: In lambda function... |
s235227702 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b;
vector <int> grp1 = [1,3,5,7,8,10,12];
vector <int> grp2 = [4,6,9,11];
vector <int> grp3 = [2];
cin >> a >> b;
if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) =... | a.cc: In function 'int main()':
a.cc:9:22: error: expected identifier before numeric constant
9 | vector <int> grp1 = [1,3,5,7,8,10,12];
| ^
a.cc:9:23: error: expected ']' before ',' token
9 | vector <int> grp1 = [1,3,5,7,8,10,12];
| ^
| ... |
s806912251 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for(int i = 0;i < n;i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli,lli>>
int ... | a.cc: In function 'int main()':
a.cc:15:3: error: expected ',' or ';' before 'if'
15 | if(P[A]==P[B])Out("Yes");
| ^~
a.cc:16:3: error: 'else' without a previous 'if'
16 | else Out("No");
| ^~~~
|
s133216350 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for(int i = 0;i < n;i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli,lli>>
int ... | a.cc: In function 'int main()':
a.cc:16:3: error: expected ';' before '}' token
16 | }
| ^
a.cc:19:3: error: expected ';' before '}' token
19 | }
| ^
|
s748826635 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin>>a>>b;
if((a==1&&b==1)||(a==1&&b==3)||(a==1&&b==5)||(a==1&&b==7)||(a==1&&b==8)||(a==1&&b==10)||(a==1&&b==12)||(a==3&&b==1)||(a==3&&b==3)||(a==3&&b==5)||(a==3&&b==7)||(a==3&&b=8)||(a==3&&b==10)||(a==3&&b==12)||(a==5&&b==1)||(a==5&&b==3)||(a==5&&b==5... | a.cc: In function 'int main()':
a.cc:6:165: error: lvalue required as left operand of assignment
6 | if((a==1&&b==1)||(a==1&&b==3)||(a==1&&b==5)||(a==1&&b==7)||(a==1&&b==8)||(a==1&&b==10)||(a==1&&b==12)||(a==3&&b==1)||(a==3&&b==3)||(a==3&&b==5)||(a==3&&b==7)||(a==3&&b=8)||(a==3&&b==10)||(a==3&&b==12)||(a==5&&b==1)|... |
s471584768 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin>a>>b;
if((a==1&&b==1)||(a==1&&b==3)||(a==1&&b==5)||(a==1&&b==7)||(a==1&&b==8)||(a==1&&b==10)||(a==1&&b==12)||(a==3&&b==1)||(a==3&&b==3)||(a==3&&b==5)||(a==3&&b==7)||(a==3&&b=8)||(a==3&&b==10)||(a==3&&b==12)||(a==5&&b==1)||(a==5&&b==3)||(a==5&&b==5)... | a.cc: In function 'int main()':
a.cc:5:4: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
5 | cin>a>>b;
| ~~~^~~~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:5:4: note: candidate: 'operator>(int, int)' ... |
s363918376 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin >> a >> b;
if(a ==1,3,5,7,8,10,12){
a== 1;
}
else if(a=4,6,9,11){
a== 2;
}
if(b ==1,3,5,7,8,10,12){
b== 1;
}
else if(b=4,6,9,11){
b== 2;
}
if(a ==b){
cout << Yes <<endl;
}
else{
cout << No <<endl;... | a.cc: In function 'int main()':
a.cc:20:13: error: 'Yes' was not declared in this scope
20 | cout << Yes <<endl;
| ^~~
a.cc:23:13: error: 'No' was not declared in this scope
23 | cout << No <<endl;
| ^~
a.cc:24:4: error: expected '}' at end of input
24 | }
| ... |
s098971211 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a<=7&&a%2!=0||a>=8&&a%2==0&&a<=7&&a%2!=0||a>=8&&a%2==0)
cout << "Yes" <<endl;
else if(4<=a&&a<=6&&a%2||a>=9&&a%2!=0&&4<=b&&b<=6&&b%2||b>=9&&b%2!=0)
else cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before 'else'
9 | else cout<<"Yes"<<endl;
| ^~~~
|
s030413856 | p03711 | C++ |
#include<iostream>
#include<math.h>
#include<algorithm>
#include<vector>
#include<string>
//#include<windows.h>
using namespace std;
#define Int int64_t
#define dump(x) cout << (x) << endl
#define fi first
#define se second
Int mod = 1e9 + 7;
Int INF = 1e18;
double EPS = 0.00000001;
//Int mod = 1e6+3;
int mai... | a.cc: In function 'int main()':
a.cc:31:17: error: 'Cout' was not declared in this scope
31 | Cout << "Yes" << endl;
| ^~~~
|
s062076412 | p03711 | C++ | // template
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<long long, long long> LP;
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REP_AB(i, a, b) for (ll i = ll(a); i <= ll(b); ++i)
#define ALL(v) v.begin(), v... | a.cc: In function 'int main()':
a.cc:39:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
39 | if(g1[i] == y) yg = 1;
| ^~
| xg
a.cc:43:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
43 | if(g2[i] == y) ... |
s213940884 | p03711 | C++ | // template
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<long long, long long> LP;
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REP_AB(i, a, b) for (ll i = ll(a); i <= ll(b); ++i)
#define ALL(v) v.begin(), v... | a.cc: In function 'int main()':
a.cc:38:29: error: invalid conversion from 'const char*' to 'll' {aka 'long long int'} [-fpermissive]
38 | if(g1[i] == x) xg = "g1";
| ^~~~
| |
| const char*
a.cc:39:24: error... |
s101543846 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(int argc, char *argv[]) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int x,y;cin>>x>>y;
int a[]={1,3,5,7,8,10,12};
int b[]={4,6,9,11};
int t=0;
for(int i=0;i<n;i++){
if(a[i]==x||a[i]==y){
t++;... | a.cc: In function 'int main(int, char**)':
a.cc:16:17: error: 'n' was not declared in this scope
16 | for(int i=0;i<n;i++){
| ^
a.cc:23:17: error: 'n' was not declared in this scope
23 | for(int i=0;i<n;i++){
| ^
|
s324915429 | p03711 | C++ | #include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <math.h>
#include <stack>
#include <climits>
#include <bits... | a.cc: In function 'int main()':
a.cc:67:24: error: expected ';' before '}' token
67 | cout<<"Yes"<<endl
| ^
| ;
68 | }
| ~
|
s991556870 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int g[12] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
if (g[x - 1] == g[y - 1]) cout << "Yes" << endl;
else << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before '<<' token
10 | else << "No" << endl;
| ^~
|
s793379748 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
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; }
}
| a.cc: In function 'int main()':
a.cc:11:30: error: expected primary-expression before '>' token
11 | else { cout << "No" <> endl; }
| ^
|
s653202125 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int>vec(12)={0,1,0,2,0,2,0,0,2,0,2,0};
int X,Y;
cin >>X>>Y;
if(vec[X]==vec[Y]){
cout <<"Yes";
}
else{
cout <<"No";
}
}
| a.cc: In function 'int main()':
a.cc:5:19: error: expected ',' or ';' before '=' token
5 | vector<int>vec(12)={0,1,0,2,0,2,0,0,2,0,2,0};
| ^
|
s076752718 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
int X,Y;
cin >>X>>Y;
if(vec[X]==vec[Y]){
cout <<"Yes";
}
else{
cout <<"No";
}
}
| a.cc: In function 'int main()':
a.cc:5:21: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
| ^
a.cc:5:23: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
5 | vector<int>vec[12]={... |
s306496647 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
int X,Y;
cin >>X>>Y;
if(vec[X]==vec[Y]){
cout <<"Yes";
}
else{
cout <<"No";
}
}
| a.cc: In function 'int main()':
a.cc:5:1: error: 'vec' was not declared in this scope
5 | vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
| ^~~
|
s321103154 | p03711 | C++ | #include<iostream>
#include<vector>
using namespace std;
int main() {
int f1[] = { 1,3,5,7,8,10,12 };
int f2[] = {4,6,9,11};
int x, y; cin >> x >> y;
bool f = false;
if (x == 2 || y == 2) cout << "No" << endl;
auto search = [&](auto sf){
for (auto s1: sf) {
if (s1 == x) {
for (auto ss1 : sf) {
if ... | a.cc: In instantiation of 'main()::<lambda(auto:1)> [with auto:1 = int*]':
a.cc:20:8: required from here
20 | search(f1); search(f2);
| ~~~~~~^~~~
a.cc:12:17: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
12 | for (auto s1: sf) {
| ... |
s835641135 | p03711 | C++ | #include <bits/stdc++.h>
#include <ctype.h>
using namespace std;
using ll = long long;
#define ld long double
#define ull unsigned long long int
#define rep(i, n) for (int i = 0; i < (int)(n); i++) // (i, 10) i=0~i=9まで
#define repr(i, n) for (int i = n; i >= 0; i--) // (i, 10) i=10~i=0まで
#define FOR(i, m, n) for (... | a.cc: In function 'int main()':
a.cc:42:14: error: 'groug' was not declared in this scope; did you mean 'group'?
42 | cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;
| ^~~~~
| group
a.cc:42:51: error: invalid operands of types 'const char [3]' and '<unresolved overloa... |
s450806545 | p03711 | C++ | #include <bits/stdc++.h>
#include <ctype.h>
using namespace std;
using ll = long long;
#define ld long double
#define ull unsigned long long int
#define rep(i, n) for (int i = 0; i < (int)(n); i++) // (i, 10) i=0~i=9まで
#define repr(i, n) for (int i = n; i >= 0; i--) // (i, 10) i=10~i=0まで
#define FOR(i, m, n) for (... | a.cc: In function 'int main()':
a.cc:42:14: error: 'groug' was not declared in this scope; did you mean 'group'?
42 | cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;
| ^~~~~
| group
a.cc:42:51: error: invalid operands of types 'const char [3]' and '<unresolved overloa... |
s364796411 | p03711 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi... | a.cc: In function 'int main()':
a.cc:22:3: error: expected ',' or ';' before 'cout'
22 | cout << (a.at(x) == a.at(y) ? "Yes" : "No") << endl;
| ^~~~
|
s896434844 | p03711 | C++ | #include"bits/stdc++.h"
#define int long long
#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=(a);i<(b);++i)
#define rep(...) _overload3(__VA_ARGS__,repi,_rep,)(__VA_ARGS__)
#define itr(i,x) for(auto i=(x).begin();i!=(x).end();++i)
#define All(x) (x).begin(),(x).en... | /usr/bin/ld: /tmp/ccEBzGbO.o: in function `main':
a.cc:(.text+0x12e): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: a.cc:(.text+0x144): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: a.cc:(.text+0x15a): undefined reference to `UnionFind::connect(long long... |
s699800690 | p03711 | C++ | using System;
using System.Linq;
using System.Collections.Generic;
namespace program
{
class Program
{
static void Main()
{
int[] day = {0,2,0,1,0,1,0,0,1,0,1,0};
int[] S = Input.ScanIntArray();
Console.WriteLine((groug[S[0]-1] == group[S[1]-1]] ? "Yes" : "No");
... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Linq;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.Collections.Gene... |
s005155244 | p03711 | C++ | using System;
using System.Linq;
using System.Collections.Generic;
namespace program
{
class Program
{
static void Main()
{
int[] day = {0,2,0,1,0,1,0,0,1,0,1,0};
int[] S = Input.ScanIntArray();
Console.WriteLine((groug[S[0]-1] == group[S[1]-1]) ? "Yes" : "No");
... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Linq;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.Collections.Gene... |
s535751413 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y; cin >> x >> y;
set<int> s;
s = {4, 6, 9, 11);
if (x == 2 || y == 2) {
cout << "No" << endl;
}
else if (s.count(x) == 1 && s.count(y) == 1) {
cout << "Yes" << endl;
}
else if (s.count(x) == 0 && s.count(y) == 0) {
cout << "... | a.cc: In function 'int main()':
a.cc:7:19: error: expected '}' before ')' token
7 | s = {4, 6, 9, 11);
| ~ ^
a.cc:7:19: error: expected ';' before ')' token
7 | s = {4, 6, 9, 11);
| ^
| ;
|
s185530544 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> data(12)={0,2,0,1,0,1,0,0,1,0,1,0};
int a, b; cin >> a >> b;
int A=data[a], B=data[b];
if(A==B){
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:4:23: error: expected ',' or ';' before '=' token
4 | vector<int> data(12)={0,2,0,1,0,1,0,0,1,0,1,0};
| ^
|
s450590189 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x[]={1,3,1,2,1,2,1,1,2,1,2,1};
int a,b;
cin >>a>>b;
if (x.at(a-1)==x.at(b-1)) {
cout <<"Yes"<<endl;
}
else {
cout <<"No"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'at' in 'x', which is of non-class type 'int [12]'
7 | if (x.at(a-1)==x.at(b-1)) {
| ^~
a.cc:7:20: error: request for member 'at' in 'x', which is of non-class type 'int [12]'
7 | if (x.at(a-1)==x.at(b-1)) {
| ... |
s336500469 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
int x,y;
vector<int> a={0,1,2,1,3,1,3,1,1,3,1,3,1};
cin >> x >> y;
if(a.at(x)==a.at(y)) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
| a.cc: In function 'int main()':
a.cc:9:18: error: expected '}' at end of input
9 | return 0;
| ^
a.cc:3:15: note: to match this '{'
3 | int main(void){
| ^
|
s191912400 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> a = { 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0 };
if (a[x-1] == a[y-1]) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| a.cc:6:17: error: extended character is not valid in an identifier
6 | cin >> x >> y;
| ^
a.cc:8:3: error: extended character is not valid in an identifier
8 |
| ^
a.cc: In function 'int main()':
a.cc:6:17: error: '\U00003000' was not declared in this scope
6 | cin... |
s180288188 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y ;
cin >> x >> y ;
if ((x<y) && ((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)) ){
cout << "Yes" << endl;
}
else if((x<y) && ((x == 4 ||... | a.cc: In function 'int main()':
a.cc:11:106: error: expected ')' before '{' token
11 | else if((x<y) && ((x == 4 || x == 6 || x == 9 || x == 11 ) && (y == 4 || y == 6 || y == 9 || y == 11){
| ~ ^
| ... |
s390735016 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y ;
cin >> x >> y ;
if ((x<y) && ((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) ){
cout << "Yes" << endl;
}
else if((x<y) && ((x == 4 || ... | a.cc: In function 'int main()':
a.cc:8:162: error: expected ')' before '{' token
8 | if ((x<y) && ((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) ){
| ~ ... |
s148879693 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin >> x >> y;
int anko = {0,1,3,1,2,1,2,1,1,2,1,2,1};
if(a[x] == a[y]) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:7: error: scalar object 'anko' requires one element in initializer
7 | int anko = {0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^~~~
a.cc:8:6: error: 'a' was not declared in this scope
8 | if(a[x] == a[y]) cout << "Yes" << endl;
| ^
|
s146242101 | p03711 | C++ | #include <bits/stdc++.h>
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;
}
} | a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'int'
5 | int x,y;
| ^~~
a.cc:6:10: error: 'x' was not declared in this scope
6 | cin >> x >> y;
| ^
a.cc:6:15: error: 'y' was not declared in this scope
6 | cin >> x >> y;
| ^
|
s048218646 | p03711 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <bitset>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | a.cc:71:1: error: expected unqualified-id before 'return'
71 | return 0;}
| ^~~~~~
a.cc:71:10: error: expected declaration before '}' token
71 | return 0;}
| ^
|
s938758720 | p03711 | C++ | #include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
int a[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
int x,y;
cin >> x>> y;
string ans;
... | a.cc:13:3: error: extended character is not valid in an identifier
13 | int a[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
| ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000int' was not declared in this scope
13 | int a[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
| ^~~~~
a.cc:17:8: error: 'a' was no... |
s946579735 | p03711 | C++ | #include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
int a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
int x,y;
cin >> x>> y;
string ans;
... | a.cc:13:3: error: extended character is not valid in an identifier
13 | int a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
| ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000int' was not declared in this scope
13 | int a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
| ^~~~~
a.cc:17:8: error: 'a' was not ... |
s566942270 | p03711 | C++ | #include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}
int x,y;
cin >> x>> y;
string ans;
... | a.cc:13:3: error: extended character is not valid in an identifier
13 | int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}
| ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000int' was not declared in this scope
13 | int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}
| ^~~~~
a.cc:17:8: error: 'a' was not de... |
s233250921 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin>>x>>y;
int x, y;
vector<int> X={0,1,3,1,2,1,2,1,1,2,1,2,1,};
if (X[x]=X[y]){
cout<<"Yes"<<endl;
}
else{cout<<"No"<<endl;}
} | 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; did you mean 'yn'?
5 | cin>>x>>y;
| ^
| yn
|
s926768069 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x, y;
cin >> x >> y;
if(x==2){
cout << "No" << endl;
}
if(x==4||x==6||x==9||x==11){
if(y==4||y==6||y==9||y==11){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
else{
if(y==2||y==4||y==6||y=... | a.cc: In function 'int main()':
a.cc:19:3: error: expected '}' before 'else'
19 | else{
| ^~~~
a.cc:10:30: note: to match this '{'
10 | if(x==4||x==6||x==9||x==11){
| ^
|
s387856800 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==2||b==2){
cout<<No<<endl;
}
else if(b<8){
if(b-a==2){
cout<<Yes<<endl;
}
else{
cout<<No<<endl;
}
}
else{
if(b-a==2){
cout<<Yes<<endl;
}
else{
cout<<No<<endl;
}
}
}
| a.cc: In function 'int main()':
a.cc:8:11: error: 'No' was not declared in this scope
8 | cout<<No<<endl;
| ^~
a.cc:12:13: error: 'Yes' was not declared in this scope
12 | cout<<Yes<<endl;
| ^~~
a.cc:15:13: error: 'No' was not declared in this scope
15 | cout<... |
s306325659 | p03711 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==2||b==2){
cout<<No<<endl;
}
else if(b<8){
if(b-a==2){
cout<<Yes<<endl;
}
else{
cout<<No<<endl;
}
}
else{
if(b-a==2){
cout<<Yes<<endl;
}
else{
cout<<No<<endl;
}
}
}
| a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s059058090 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int a,b;
cin>>a>>b;,
vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
cout<<(s.at(a)==s.at(b)?"Yes":"No")<<endl;
} | a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ',' token
6 | cin>>a>>b;,
| ^
a.cc:7:15: error: expected primary-expression before 's'
7 | vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
| ^
a.cc:8:10: error: 's' was not declared in this ... |
s905463059 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int a,b;
cin>>a>>b;,
vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
cout<<s.at(a)==s.at(b)?"Yes":"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ',' token
6 | cin>>a>>b;,
| ^
a.cc:7:15: error: expected primary-expression before 's'
7 | vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
| ^
a.cc:8:9: error: 's' was not declared in this s... |
s532621126 | p03711 | C | #include <stdio.h>
int main() {
int group_name[12] = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
scanf("%d %d", &number_x, &number_y);
if(group_name[number_x-1] == group_name[number_y-1]) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| main.c: In function 'main':
main.c:5:19: error: 'number_x' undeclared (first use in this function)
5 | scanf("%d %d", &number_x, &number_y);
| ^~~~~~~~
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:30: error: 'number_y' undecla... |
s526473744 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
void main() {
unordered_set<int> set2;
set2.insert(4);
set2.insert(6);
set2.insert(9);
set2.insert(1);
int x, y;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
} else if (set2.count(x) && set2.count(y)) {
cout << "Yes" << endl;
} ... | a.cc:5:1: error: '::main' must return 'int'
5 | void main() {
| ^~~~
|
s551070541 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(void){
int a,b;
cin >> a >> b;
vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
if(abc[a - 1] == abc[b - 1])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
#include <iostream>
#include <vector>
using namespace... | a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before '=' token
8 | vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
| ^
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
20 | int main(void){
| ^~~~
a.cc:4:5: note: 'int main()' prev... |
s177897590 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(void){
int a,b;
cin >> a >> b;
vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
if(abc[a - 1] == abc[b - 1])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before '=' token
8 | vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s443652006 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(void){
int a,b;
cin >> a >> b;
vector<char>abc(12) = {'a','c','a','b','a','b','a','a','b','a','b','a'};
if(abc[a - 1] == abc[b - 1])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0; | a.cc: In function 'int main()':
a.cc:8:23: error: expected ',' or ';' before '=' token
8 | vector<char>abc(12) = {'a','c','a','b','a','b','a','a','b','a','b','a'};
| ^
a.cc:15:12: error: expected '}' at end of input
15 | return 0;
| ^
a.cc:4:15: note: to match thi... |
s639578871 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(void){
int a,b;
cin >> a >> b;
vector<char>abc(12);
abc = ['a','c','a','b','a','b','a','a','b','a','b','a'];
if(abc[a - 1] == abc[b - 1])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0; | a.cc: In function 'int main()':
a.cc:9:10: error: expected identifier before 'a'
9 | abc = ['a','c','a','b','a','b','a','a','b','a','b','a'];
| ^~~
a.cc:9:13: error: expected ']' before ',' token
9 | abc = ['a','c','a','b','a','b','a','a','b','a','b','a'];
| ^
| ... |
s277874045 | p03711 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(void){
int a,b;
cin >> a >> b;
vector<char>abc(12) = ['a','c','a','b','a','b','a','a','b','a','b','a'];
if(abc[a - 1] == abc[b - 1])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:23: error: expected ',' or ';' before '=' token
8 | vector<char>abc(12) = ['a','c','a','b','a','b','a','a','b','a','b','a'];
| ^
|
s351620803 | 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 ;
} | a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int x , y ; 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 istr... |
s922382554 | p03711 | C++ | #include<stdio.h>
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 ;
} | 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 decla... |
s971710112 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
int sum1=0;
int sum2=0;
for(int i=0;i<vec1.size() ;i++ ){
if(vec1.at(i)==x){
sum1++;
}
else if(vec1.at(i)==y){
sum1++;
}
}
... | a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
10 | int sum1=0;
| ^~~
a.cc:17:7: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
17 | sum1++;
| ^~~~
| sum2
a.cc:20:7: error: 'sum1' was not declared in this scope; did yo... |
s245561756 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11};
int sum1=0;
int sum2=0;
for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
if(vec1.at(i)==x&&vec.at(j)==y){
sum1++;
}
}
for(int... | a.cc: In function 'int main()':
a.cc:14:8: error: expected primary-expression before 'int'
14 | for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
| ^~~
a.cc:14:8: error: expected ')' before 'int'
14 | for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
| ~^~~... |
s061009858 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
int sum1=0;
int sum2=0;
for(int i=0;int j=0;i<vec1.size();j<vec1.size();i++;j++){
if(vec1.at(i)==x&&vec.at(j)==y){
sum1++;
}
}
for(int i=0;in... | a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
10 | int sum1=0;
| ^~~
a.cc:14:36: error: expected ')' before ';' token
14 | for(int i=0;int j=0;i<vec1.size();j<vec1.size();i++;j++){
| ~ ^
| ... |
s488951994 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
int sum1=0;
int sum2=0;
for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
if(vec1.at(i)==x&&vec.at(j)==y){
sum1++;
}
}
for(int i=0,in... | a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
10 | int sum1=0;
| ^~~
a.cc:14:15: error: expected unqualified-id before 'int'
14 | for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
| ^~~
a.cc:14:15: error: expected ';' before 'int'
14 ... |
s373003538 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
int sum1=0;
int sum2=0;
for(int i=0 int j=0;i<vec1.size() j<vec1.size();i++ j++){
if(vec1.at(i)==x&&vec.at(j)==y){
sum1++;
}
}
for(int i=0 in... | a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
10 | int sum1=0;
| ^~~
a.cc:14:14: error: expected ';' before 'int'
14 | for(int i=0 int j=0;i<vec1.size() j<vec1.size();i++ j++){
| ^~~~
| ;
a.cc:14:36: error: expected ')' before ... |
s168160730 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int arr[12] = {-1, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
cout << (arr[x] == arr[y] ? "Yes" : "No") << '\n';
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:58: error: too many initializers for 'int [12]'
8 | int arr[12] = {-1, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
| ^
|
s966637009 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll x,y;
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) cout<<"Yes"<<endl;
else if(x==4||x==6||x==9||x==11&&y==4||y==6||y==9||y=11) cout<<"Yes"<<endl;
else if(x==2&&y==2) cout<<"Yes"<<endl... | a.cc: In function 'int main()':
a.cc:8:52: error: lvalue required as left operand of assignment
8 | else if(x==4||x==6||x==9||x==11&&y==4||y==6||y==9||y=11) cout<<"Yes"<<endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
|
s893212343 | p03711 | C++ | #include <math.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <array>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int x,y;
int a[]={0,1,3... | a.cc:25:2: error: stray '#' in program
25 | }#include <math.h>
| ^
a.cc:25:3: error: 'include' does not name a type
25 | }#include <math.h>
| ^~~~~~~
a.cc:42:5: error: redefinition of 'int main()'
42 | int main() {
| ^~~~
a.cc:18:5: note: 'int main()' previously defined here
18 | in... |
s519830623 | p03711 | C++ | #include <stdio.h>
int main()
{
int a[13] = {0,1,2,1,3,1,3,1,1,3,1,3,1};
int x,y;
scanf("%d%d",&x,&y)){
printf(a[x] - a[y] ? "No" : "Yes");
printf("\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before ')' token
7 | scanf("%d%d",&x,&y)){
| ^
| ;
|
s853043821 | p03711 | C++ | 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;
}
}
| a.cc: In function 'int main()':
a.cc:3:12: error: 'cin' was not declared in this scope
3 | int x, y; cin >> x >> y;
| ^~~
a.cc:4:6: error: 'A' was not declared in this scope
4 | if(A[x]==A[y]){
| ^
a.cc:5:5: error: 'cout' was not declared in this scope
5 | cout<<"YES"<<end... |
s869698970 | 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:1: error: 'cout' was not declared in this scope
3 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
| ^~~~
a.cc:3:12: error: 'x' was not declared in this scope
3 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
| ^
a.cc:3:20: error: 'y' was not declar... |
s610510609 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
/* メモリ食い過ぎ注意 */
#define int long long
typedef long long ll;
ll gcd(ll a, ll b)
{
if (a < b)
gcd(b, a);
if (b == 0)
return a;
int r;
while ((r = a % b))
{
a = b;
b = r;
}
return b;
}
/* define const */
const ll ... | a.cc: In function 'int main()':
a.cc:36:9: error: 'a' was not declared in this scope
36 | if (a[x] == a[y])
| ^
|
s874771395 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
int x,y;
cin >> x >> y;
string ans;
if(a[x]==a[y]){
ans="YES";
}
else{
ans="NO";
}
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:4:20: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
4 | vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
a.cc:4:22: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
4 | vector<int> a[]={0... |
s148582895 | p03711 | C++ | #include<bits/stdc++>
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;
string ans;
if(a[x]==a[y]){
ans="YES";
}
else{
ans="NO";
}
cout << ans << endl;
} | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s488346624 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A==2 && B==2) cout<<"Yes";
else if(A==4||A==6||A==9||A==11){
if(B==4||B==6||B==9||B==11)cout<<"Yes";
else cout<<"No";
}
else if(A==1||A==3||A==5||A=7||A==8||A==10||A==12){
if(B==1||B==3||B==5||B==7|... | a.cc: In function 'int main()':
a.cc:12:29: error: lvalue required as left operand of assignment
12 | else if(A==1||A==3||A==5||A=7||A==8||A==10||A==12){
| ~~~~~~~~~~~~~~~~^~~
|
s062717771 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A==2 && B==2) cout<<"Yes";
else if(A==4||A==6||A==9||A==11){
if(B==4||B==6||B==9||B==11)cout<<"Yes";
else cout<<"No";
}
else if(A==1||A==3||A==5||A=7||A==8||A==10||A=12){
if(B==1||B==3||B==5||B==7||... | a.cc: In function 'int main()':
a.cc:12:47: error: lvalue required as left operand of assignment
12 | else if(A==1||A==3||A==5||A=7||A==8||A==10||A=12){
| ~~~~~~~~~~~~~~^~~
a.cc:13:45: error: lvalue required as left operand of assignment
13 | if(B==1||B==3||B==5||B=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.