submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s164632899 | p03711 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(void){
int a[2],group[2];
string ans;
cin >> a[0] >> a[1];
for (int 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)
group[i] = 0;
else if (a[i]==4||a[i]==6||a[i]==9||a[i]==11||)
group[i] = 1;
else
... | a.cc: In function 'int main()':
a.cc:10:51: error: expected primary-expression before ')' token
10 | else if (a[i]==4||a[i]==6||a[i]==9||a[i]==11||)
| ^
|
s693761747 | 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;
if(a[x-1] == b[y-1]){
cout >> "Yes" >> endl;
}else{
cout >> "No" >> endl;
}
} | a.cc: In function 'int main()':
a.cc:8:16: error: 'b' was not declared in this scope
8 | if(a[x-1] == b[y-1]){
| ^
a.cc:9:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | cout >> "Yes" >> endl;
| ... |
s396982951 | 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;
if(a[x-1] == b[y-1]){
cout >> "Yes" >> endl;
}else{
cout >> "No" >> endl;
}
} | a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before ';' token
6 | int x,y,;
| ^
a.cc:8:16: error: 'b' was not declared in this scope
8 | if(a[x-1] == b[y-1]){
| ^
a.cc:9:10: error: no match for 'operator>>' (operand types are 'std::ostream' {... |
s058325930 | p03711 | C++ | #include<bits/stdc++>
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;
if(a[x-1] == b[y-1]){
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.
|
s350344101 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,g[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
cin>>a>>b;
cout<<{"Yes","No"}[g[a]==g[b]];
} | a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '{' token
6 | cout<<{"Yes","No"}[g[a]==g[b]];
| ^
a.cc:6:23: error: expected ',' before '[' token
6 | cout<<{"Yes","No"}[g[a]==g[b]];
| ^
| ,
a.cc:6:23: e... |
s458438702 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,g[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
cin>>a>>b;
cout<<g[a]==g[b]?"Yes":"No";
} | a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
6 | cout<<g[a]==g[b]?"Yes":"No";
| ~~~~~~~~~~^~~~~~
| | |
| | int
| std::basic_ostream<char>
a.cc:6:13: note: candidate... |
s841464863 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1};
cin>>a>>b;
cout<<(g[a]==g[b]?"Yes":"No");
} | a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
4 | int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s044415880 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
cin>>a>>b;
cout<<(g[a]==g[b]?"Yes":"No");
} | a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
4 | int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
a.cc:5:3: error: expected ',' or ';' before 'cin'
5 | cin>>a>>b;
| ^~~
|
s208158892 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
cin>>a>>b;
cout<<g[a]==g[b]?"Yes":"No";
} | a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
4 | int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
a.cc:5:3: error: expected ',' or ';' before 'cin'
5 | cin>>a>>b;
| ^~~
|
s621655607 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
cin>>a>>b;
cout<<if g[a]==g[b]?"Yes":"No";
} | a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
4 | int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
a.cc:5:3: error: expected ',' or ';' before 'cin'
5 | cin>>a>>b;
| ^~~
a.cc:6:9: error: expected primary-expression before 'if'
6 ... |
s772167719 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b;
int g1[]={1,3,5,7,8,10,12},g2[]={4,6,9,11},g3[]={2};
cin>>a>>b;
if(g1.find(a)&&g1.find(b))cout<<"Yes";
if(g2.find(a)&&g2.find(b))cout<<"Yes";
if(g3.find(a)&&G3.find(b))cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'find' in 'g1', which is of non-class type 'int [7]'
7 | if(g1.find(a)&&g1.find(b))cout<<"Yes";
| ^~~~
a.cc:7:21: error: request for member 'find' in 'g1', which is of non-class type 'int [7]'
7 | if(g1.find(a)&&g1.find(b))cou... |
s166718345 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b;
int g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3={2};
cin>>a>>b;
if(g1.find(a)&&g1.find(b))cout<<"Yes";
if(g2.find(a)&&g2.find(b))cout<<"Yes";
if(g3.find(a)&&G3.find(b))cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:5:7: error: scalar object 'g1' requires one element in initializer
5 | int g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3={2};
| ^~
a.cc:5:28: error: scalar object 'g2' requires one element in initializer
5 | int g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3={2};
| ... |
s713465114 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int x,y;
cin >> x >> y;
vector<int> vec(13);
vec = {0,1,3,1,2,1,2,1,1,2,1,2,1}
if(vec.at(x) == vec.at(y)) {
cout << "Yes" << endl;
}else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:42: error: expected ';' before 'if'
9 | vec = {0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
| ;
10 |
11 | if(vec.at(x) == vec.at(y)) {
| ~~ ... |
s782755949 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
vector<int>A()={1,3,5,7,8,12};
vector<int>B()={4,6,9,10};
bool f=false;
for(int i=0;i<5;i++){
for(int j=i+1;j<6;j++){
if(A[i]==x&&A[i]==y)
f=true;
}
}
for(int i=0;i<3;i++){
for(int j=i+1;... | a.cc: In function 'int main()':
a.cc:7:15: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
7 | vector<int>A()={1,3,5,7,8,12};
| ^~
a.cc:7:15: note: remove parentheses to default-initialize a variable
7 | vector<int>A()={1,3,5,7,8,12};
| ... |
s773169914 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin<<x<<y;
vector<int>A()={1,3,5,7,8,12};
vector<int>B()={4,6,9,10};
bool f=false;
for(int i=0;i<5;i++){
for(int j=i+1;j<6;j++){
if(A[i]==x&&A[i]==y)
f=true;
}
}
for(int i=0;i<3;i++){
for(int j=i+1;... | a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin<<x<<y;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:6: note: candidate: 'operator<<(... |
s319030767 | p03711 | C++ | import qualified Data.ByteString.Char8 as BS
import Data.Maybe (fromJust)
import Control.Monad
import Data.List
getGroup :: Int -> Int
getGroup 2 = 2
getGroup x
| elem x [4, 6, 9, 11] = 1
| otherwise = 0
solve :: Int -> Int -> String
solve x y
| (getGroup x) == (getGroup y) = "Yes"
| otherwise = "No"
... | a.cc:1:1: error: 'import' does not name a type
1 | import qualified Data.ByteString.Char8 as BS
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s501716333 | p03711 | C++ | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if(x==2 || y==2) cout << "No";
else {
int a[13], b[13];
for(int i = 0;i<13;i++){
a[i] =0;
b[i] =0;
}
//冗長すぎるが...
a[1]=1; a[3]=1; a[5]=1; a[7]=1; a[8]=1;a[10]=1;a[12]=1;
b[4]=1;b[6]=1;b[9]=1;b[11]=1;
... | a.cc: In function 'int main()':
a.cc:23:58: error: expected ';' before ':' token
23 | else if(b[x]==1 && b[y]==1) cout << "Yes":
| ^
| ;
|
s262157554 | p03711 | C++ | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if(x==2 || y==2) cout << "No";
else if{
int a[13], b[13];
for(int i = 0;i<13;i++){
a[i] =0;
b[i] =0;
}
//冗長すぎるが...
a[1]=1; a[3]=1; a[5]=1; a[7]=1; a[8]=1;a[10]=1;a[12]=1;
b[4]=1;b[6]=1;b[9]=1;b[11]=1;
if(a[... | a.cc: In function 'int main()':
a.cc:10:16: error: expected '(' before '{' token
10 | else if{
| ^
| (
|
s229031539 | p03711 | C++ | #include<iostream>
using namespace std;
int sel(int i){
switch(i){
case(4):
case(6):
case(9):
case(11):i=2;break;
case(2):i=3;break;
default:i=1;break;
}
return i;
}
int main(){
int x,y;
cin>>x,y;
sel(x);sel(y);
cout<<(x=y?"Yes":"No")<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:21:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
21 | cout<<(x=y?"Yes":"No")<<endl;
| ~^~~~~~~~~~~
| |
| const char*
|
s905608744 | p03711 | C++ | #include<iostream>
using namespace std;
int sel(int i){
switch(i){
case(4):
case(6):
case(9):
case(11):i=2;break;
case(2):i=3;break;
default:i=1;break;
}
return i;
}
int main(){
int x,y;
cin>>x,y;
sel x;sel y;
cout<<(x=y?"Yes":"No")<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:20:6: error: expected ';' before 'x'
20 | sel x;sel y;
| ^~
| ;
a.cc:20:12: error: expected ';' before 'y'
20 | sel x;sel y;
| ^~
| ;
a.cc:21:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
... |
s487041459 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int x, y, mon = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
cin >> x >> y;
cout << (mon[x - 1] == mon[y - 1] ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:6:13: error: scalar object 'mon' requires one element in initializer
6 | int x, y, mon = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
| ^~~
|
s390524481 | 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}
string c,b;
cin>>c>>b;
if(a[c]==a[b]){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:2: error: expected ',' or ';' before 'string'
6 | string c,b;
| ^~~~~~
a.cc:7:8: error: 'c' was not declared in this scope
7 | cin>>c>>b;
| ^
a.cc:7:11: error: 'b' was not declared in this scope
7 | cin>>c>>b;
| ^
|
s408991416 | 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[] a = {0,2,0,1,0,1,0,0,1,0,1,0};
if(a[x-1]==b[y-1])
System.out.println("Yes");else System.out.println... | Main.java:8: error: cannot find symbol
if(a[x-1]==b[y-1])
^
symbol: variable b
location: class Main
1 error
|
s548911520 | p03711 | C++ | [x,y] = list(map(int, input().split()))
s1 = [1,3,5,7,8,10,12]
s2 = [4,6,9,11]
if x == 2:
print("No")
elif x in s1 and y in s1:
print("Yes")
elif x in s2 and y in s2:
print("Yes")
else:
print("No") | a.cc:1:1: error: expected unqualified-id before '[' token
1 | [x,y] = list(map(int, input().split()))
| ^
|
s733467865 | 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 b,c;
cin>>b>>c;
if(a[b]==a[c]){
cout<<“Yes”;
}
else{
cout<<“No”;
}
}
| a.cc:3:2: error: extended character is not valid in an identifier
3 |
| ^
a.cc:9:16: error: extended character “ is not valid in an identifier
9 | cout<<“Yes”;
| ^
a.cc:9:16: error: extended character ” is not valid in an identifier
a.cc:12:15: error: extended character... |
s994265537 | p03711 | C++ | 1. #include <bits/stdc++.h>
2. using namespace std;
3.
4. int main(){
5. int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
6. int cin>>b>>c;
7. if(a[b]==a[c]){
8. cout<<“Yes”;
9. }
10. else{
11. cout<<“No”;
12. }
13. }
| a.cc:1:4: error: stray '#' in program
1 | 1. #include <bits/stdc++.h>
| ^
a.cc:3:4: error: extended character is not valid in an identifier
3 | 3.
| ^
a.cc:8:18: error: extended character “ is not valid in an identifier
8 | 8. cout<<“Yes”;
| ^
a.cc:8:18: ... |
s364801236 | p03711 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
// fact(n)
int fact(int n){
if(n == 1) return 1;
else return (n * fact(n - 1));
}
// combination(n,r)
int combination(int n, int r){
if(r == 0 || r == n) return ... | main.c: In function 'main':
main.c:69:9: error: expected declaration or statement at end of input
69 | }
| ^
main.c: In function 'append':
main.c:43:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | realloc(array, sizeo... |
s021768722 | p03711 | C++ | #include <iostream>
#include <functional>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <climits>
using name... | a.cc: In function 'int main()':
a.cc:49:27: error: no match for 'operator&' (operand types are 'std::set<long long int>::iterator' {aka 'std::_Rb_tree<long long int, long long int, std::_Identity<long long int>, std::less<long long int>, std::allocator<long long int> >::const_iterator'} and 'std::set<long long int>::it... |
s699201394 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> x (2);
cin >> x[0] >> x[1] ;
for (int i = 0; i < 2; ++i)
{
switch(x[i]){
case 1, 3, 5, 7, 10, 12:
x[i] = 1;
break;
case 4, 6, 9, 11:
x[i] = 2;
break;
default:
x[i] = 3;
break;
}
}
if (x[0] == x[1])
{
cout... | a.cc: In function 'int main()':
a.cc:10:31: error: expected ':' before ',' token
10 | case 1, 3, 5, 7, 10, 12:
| ^
| :
a.cc:10:31: error: expected primary-expression before ',' token
a.cc:13:31: error: expected ':' before... |
s363699482 | p03711 | Java | import java.io.PrintWriter;
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
//String S = sc.next();
//int N = Integer.parseInt(sc.next());
//out.println();
// ArrayList<String> list = new Arr... | Main.java:12: error: illegal start of expression
int a[] = [1,3,5,7,8,10,12];
^
Main.java:13: error: illegal start of expression
int b[] = [4,6,9,11];
^
Main.java:14: error: illegal start of expression
int c[] = [2];
^
3 errors
|
s136120853 | p03711 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main()
int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
int a, b;
cin >> a >> b;
if(ans[a-1] == ans[b-1]) cout << "Yes" << endl;
else cout << "No" << endl;
}
| a.cc:9:3: error: expected initializer before 'int'
9 | int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
| ^~~
a.cc:11:3: error: 'cin' does not name a type
11 | cin >> a >> b;
| ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
12 | if(ans[a-1] == ans[b-1]) cout << "Yes" << endl;
| ... |
s255795557 | p03711 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main()
int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
int a, b;
cin >> a >> b;
if(ans[a] == ans[b]) cout << "Yes" << endl;
else cout << "No" << endl;
}
| a.cc:9:3: error: expected initializer before 'int'
9 | int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
| ^~~
a.cc:11:3: error: 'cin' does not name a type
11 | cin >> a >> b;
| ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
12 | if(ans[a] == ans[b]) cout << "Yes" << endl;
| ^~... |
s969152925 | p03711 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main()
int [] ans = {1,2,1,3,1,3,1,3,1,3,1,3,1};
int a, b;
cin >> a >> b;
if(ans[a] == ans[b]) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc:9:3: error: expected initializer before 'int'
9 | int [] ans = {1,2,1,3,1,3,1,3,1,3,1,3,1};
| ^~~
a.cc:11:3: error: 'cin' does not name a type
11 | cin >> a >> b;
| ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
12 | if(ans[a] == ans[b]) cout << "Yes" << endl;
| ^... |
s130893776 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x, y;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
}
else 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;... | a.cc: In function 'int main()':
a.cc:17:5: error: expected '}' before 'else'
17 | else {
| ^~~~
a.cc:10:51: note: to match this '{'
10 | else if (x == 4 || x == 6 || x == 9 || x == 11) {
| ^
a.cc:20:9: error: expected '}' before 'else'
20 ... |
s283493330 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a = {0, 1, 3, 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:5:9: error: scalar object 'a' requires one element in initializer
5 | int a = {0, 1, 3, 2, 1, 2, 1, 1, 2, 1, 2, 1};
| ^
|
s069460884 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int x,y;
cin >> x >> y;
int group1[]={1,3,5,7,8,10,12};
int group2[]={4,6,9,11};
int i;
int judge1 = 0;
int judge2 = 0;
if((x==2)||(y==2)){
cout << "No";
}else{
for(i=0;i<7;i++){
if(x==group[i]){
judge1++;
}
... | a.cc: In function 'int main()':
a.cc:17:13: error: 'group' was not declared in this scope; did you mean 'group2'?
17 | if(x==group[i]){
| ^~~~~
| group2
a.cc:20:13: error: 'group' was not declared in this scope; did you mean 'group2'?
20 | if(y==group[i]){
| ... |
s436191245 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int x,y;
cin >> x >> y;
int group1[]={1,3,5,7,8,10,12};
int group2[]={4,6,9,11};
int i;
int judge1 = 0;
int judge2 = 0;
if((x==2)||(y==2)){
cout << "No";
}else{
for(i=0;i<7;i++){
if(x==group[i]){
judge1++;
}
... | a.cc: In function 'int main()':
a.cc:17:13: error: 'group' was not declared in this scope; did you mean 'group2'?
17 | if(x==group[i]){
| ^~~~~
| group2
a.cc:20:13: error: 'group' was not declared in this scope; did you mean 'group2'?
20 | if(y==group[i]){
| ... |
s440650656 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int x,y;
cin >> x >> y;
int group1[]={1,3,5,7,8,10,12}
int group2[]={4,6,9,11}
int i;
int judge1 = 0;
int judge2 = 0;
if((x==2)||(y==2)){
cout << "No";
}else{
for(i=0;i<7;i++){
if(x==group[i]){
judge1++;
}
... | a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'int'
8 | int group2[]={4,6,9,11}
| ^~~
a.cc:17:13: error: 'group' was not declared in this scope; did you mean 'group1'?
17 | if(x==group[i]){
| ^~~~~
| group1
a.cc:20:13: error: 'grou... |
s983963685 | p03711 | C | #include<stdio.h>
int ha(int a){
switch(a){
case:1
case:3
case:5
case:7
case:8
case:10
case:12
return 0;
break;
case:4
case:6
case:9
return 1;
break;
default:
return 2;
break;
}
}
int main(){
int x,y... | main.c: In function 'ha':
main.c:4:11: error: expected expression before ':' token
4 | case:1
| ^
main.c:4:13: error: expected ';' before 'case'
4 | case:1
| ^
| ;
5 | case:3
| ~~~~
main.c:13:11: error: expected expression ... |
s849389666 | p03711 | C++ | #include <algorithm>
#include <chrono>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <tuple>
#include <utility>
#include <vector>
#define llong long long
using namespace std;
const int IINF = 2147483647;
const llong LLINF = 9223372036854775807;
// UnionFind
class... | a.cc: In function 'int main()':
a.cc:62:6: error: 'class UNF' has no member named 'connext'; did you mean 'connect'?
62 | uf.connext(9, 11);
| ^~~~~~~
| connect
|
s457794990 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
}
else {
boot xg ,yg;
if (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 ||
x == 10 || x == 12) {
xg = true;
}
else {
xg = false;
}
if (y == 1 ... | a.cc: In function 'int main()':
a.cc:5:10: error: 'x' was not declared in this scope
5 | cin >> x >> y;
| ^
a.cc:5:15: error: 'y' was not declared in this scope; did you mean 'yn'?
5 | cin >> x >> y;
| ^
| yn
a.cc:10:5: error: 'boot' was not declared in... |
s780705610 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W;
cin >> H >> W;
for (int i = 0 ;i < W + 2 ;i++) {
cout << "#";
}
cout << endl;
string str;
for (int j = 0 ;j < H ;j++) {
cout << "#";
for (int k = 0 ;k < W ;k++) {
char s
cin >> s;
cout << s;
}
cout ... | a.cc: In function 'int main()':
a.cc:16:7: error: expected initializer before 'cin'
16 | cin >> s;
| ^~~
a.cc:17:15: error: 's' was not declared in this scope
17 | cout << s;
| ^
|
s708274699 | p03711 | C++ | #include <iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
else if(x==4||x==6||x==9||x==11){
if(y==4||y==6||x==9||y==11){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
}
else{
if(y==1||y==3||y==5|... | a.cc: In function 'int main()':
a.cc:11:2: error: 'else' without a previous 'if'
11 | else if(x==4||x==6||x==9||x==11){
| ^~~~
|
s976418677 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
std::vector<int> a={1,3,5,7,8,10,12};
std::vector<int> b={4,6,9,11};
std::vector<int> c={2};
int x, y;
cin >> x >> y;
bool xx=false;
bool yy=false;
for (int i = 0; i < a.size(); i++) {
if(a.at(i)==x) xx=true;
if(a.at(i)==y) yy=true;
... | a.cc: In function 'int main()':
a.cc:22:8: error: redeclaration of 'bool xx'
22 | bool xx=false;
| ^~
a.cc:12:8: note: 'bool xx' previously declared here
12 | bool xx=false;
| ^~
a.cc:23:8: error: redeclaration of 'bool yy'
23 | bool yy=false;
| ^~
a.cc:13:8: note: ... |
s302955842 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;cin>>a>>b;
int c[]={1,3,5,7,8,10,12};
int d[]={4,6,9,11};
int e[]={2};
if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";} | a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
| ~^~~
a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if((a... |
s611395455 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
if(a == 2 || b == 2){
cout << "No" << endl;
} else {
if(a == 4 || a == 6 || a == 9 || a == 11){
if(b == 4 || b == 6 || b == 9 || b == 11){
cout << "Yes" << endl;
} else {
cout << "No" <<endl;
}
... | a.cc: In function 'int main()':
a.cc:25:4: error: expected '}' at end of input
25 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s444334224 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
char checkGroup(int a){
switch(a){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 'a';
break;
case 4:
case 6:
case 9:
case 11:
... | a.cc: In function 'int main()':
a.cc:29:34: error: 'b' was not declared in this scope
29 | if(checkGroup(x)==checkGroup(b)) cout << "Yes" << endl;
| ^
|
s710728116 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin >>x>>y;
if(x==2){
if(x==y)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
else 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==1||y==3||y==5||y==7||... | a.cc:25:1: error: expected declaration before '}' token
25 | }
| ^
|
s318871321 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,y;
cin>>x>>y;
string ans ="No";
seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
if(g1.count(x)&&g1.count(y))ans="Yes";
else if(g2.count(x)&&g2.count(y))ans="Yes";
else if(g3.count(x)&&g3.count(y))ans="Yes";
cout<<ans<<endl;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'seti' was not declared in this scope
8 | seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
| ^~~~
a.cc:8:34: error: expected primary-expression before ',' token
8 | seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
| ... |
s529117298 | p03711 | Java | #include<iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <list>
using namespace std;
typedef long long ll;
#define MOD 1000000007
#define p(x) cout << x << endl;
#define el cout << endl;
#define rep(i, ... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include <cstdio>
^
Main.java:3: error: illegal character: '#'
#include <cstdlib>
^
Main.java:4: error: illegal character: '#'
#include <cmath>
^
Main.java:5: error: illegal character: '#'
#include <string>
^
Main... |
s948494847 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std;
struct uf{
vector<int> t;
uf(int n):t(n,-1){}
int r(int x){
while(t[x] >= 0 && t[t[x]] >= 0){
t[x] = t[t[x]]
x = t[x];
}
return x;
}
int f(int x,int y){return r(x)==r(y);}
int u(int x,int y){x=r(x);y=r(... | a.cc: In member function 'int uf::r(int)':
a.cc:10:13: error: expected ';' before 'x'
10 | x = t[x];
| ^
a.cc: In member function 'int uf::u(int, int)':
a.cc:15:79: warning: no return statement in function returning non-void [-Wreturn-type]
15 | int u(int x,int y){x=r(x);y=r(y);i... |
s995591360 | p03711 | Java | import java.io.*;
import java.util.function.*;
import java.util.stream.*;
class Wandbox
{
/**
* ABC 062 B: Picture Frame
* (周囲1ピクセルを'#'で囲む)
*/
public static void main(String[] args) throws IOException
{
// 入力
BufferedReader br = new BufferedReader(
new In... | Main.java:17: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
item -> new Integer(item)).toArray();
^
1 warning
|
s497455513 | p03711 | C++ | #include <iostream>
#include <string>
#include <vector>
# define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
string solve(int x, int y) {
vector<int> a = {4, 6, 9, 11};
auto ax = find(a.begin(), a.end(), x);
auto ay = find(a.begin(), a.end(), y);
if (x == 2 and y == 2) {
... | a.cc: In function 'std::string solve(int, int)':
a.cc:11:19: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
11 | auto ax = find(a.begin(), a.end(), x);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/lo... |
s413714881 | p03711 | C++ | #include <bits/stdc++.h>
#define INF (1<<31) - 1 //INT_MAX/2
#define MOD 1000000007
#define PI acos(-1)
using ll = long long;
using ull = unsigned long long;
using P = std::pair<int, int>;
int main(int argc, char *argv[])
{
int x, y;
std::cin >> x >> y;
a[12] = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1};
... | a.cc: In function 'int main(int, char**)':
a.cc:16:5: error: 'a' was not declared in this scope
16 | a[12] = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1};
| ^
|
s864227977 | p03711 | C++ | #include<bits/stdc++.h>
using namespace std ;
int main () {
vector<int> line ;
line = {0,1,3,1,2,1,2,1,1,2,1,2,1}
int a , b ;
cin >> a >> b ;
if ( line.at(a) == line.at(b) ) {
cout << "Yes" << endl ;
} else {
cout << "No" << endl ;
}
}
| a.cc: In function 'int main()':
a.cc:6:37: error: expected ';' before 'int'
6 | line = {0,1,3,1,2,1,2,1,1,2,1,2,1}
| ^
| ;
7 |
8 | int a , b ;
| ~~~
a.cc:9:10: error: 'a' was not ... |
s668617871 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define __TRUE "yes"
#define __FALSE "no"
int main() {
int x,y;
cin >> x >> y;
int a[]={0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}
cout << (a[x] == a[y] ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'cout'
11 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
| ^~~~
|
s713303173 | p03711 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x==4||x==6||x==9||x==11 && y==4||y==6||y==9||y==11){
System.out.print("Yes");
}else if(y==1||y==3||y==5||y... | Main.java:17: error: reached end of file while parsing
}
^
1 error
|
s607381731 | p03711 | Java |
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x==4||x==6||x==9||x==11 && y==4||y==6||y==9||y==11){
System.out.print("Yes");
}else if(y==1||y==3||y==5||y==7||y==8||y==10||y=... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s239059908 | p03711 | Java |
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x==4||x==6||x==9||x==11 && y==4||y==6||y==9||y==11){
Syste.out.print("Yes");
}else if(y==1||y==3||y==5||y==7||y==8||y==10||y==... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:9: erro... |
s371301159 | p03711 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String s = acababaababa;
if(s.substring(x-1,x).equals(s.substring(y-1,y)))
}
} | Main.java:12: error: illegal start of statement
}
^
1 error
|
s387819823 | p03711 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String s = acababaababa;
if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
}
} | Main.java:10: error: '.class' expected
if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
^
Main.java:10: error: not a statement
if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
^
Main.java:10: error: ';' expected
if(s.... |
s952154945 | p03711 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x==2||y==2){
System.out.print("No");
}else if(x==4||x==6||x==9||x==11){
if(y==4||y==6||y==... | Main.java:17: error: illegal start of expression
if(y==1||y==3||y==5||y==7||==y8||y==10||y==12){
^
1 error
|
s230936120 | p03711 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x==2||y==2){
System.out.print("No");
}else if(x==4||x==6||x==9||x==11){
if(y==4||y==6||y==... | Main.java:17: error: illegal start of expression
if(y==1||y==3||y==5||y==7||=y=8||y==10||y==12){
^
1 error
|
s202953313 | p03711 | C++ | #include <iostream>
using namespace std;
int A[0,1,3,1,2,1,2,1,1,2,1,2,1],a,b;
int main(){
cin >> a >> b;
cout << (A[a]==A[b]? "Yes":"No") << endl;
} | a.cc:3:8: error: expected ']' before ',' token
3 | int A[0,1,3,1,2,1,2,1,1,2,1,2,1],a,b;
| ^
| ]
a.cc:3:9: error: expected unqualified-id before numeric constant
3 | int A[0,1,3,1,2,1,2,1,1,2,1,2,1],a,b;
| ^
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not de... |
s633300944 | p03711 | C++ | x,y=map(int,input().split())
a=[2,1,8,1,0,1,0,1,1,0,1,0,1]
if a[x]==a[y]:
print("Yes")
else:
print("No")
| a.cc:1:1: error: 'x' does not name a type
1 | x,y=map(int,input().split())
| ^
|
s084957059 | 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) && (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 ==... | a.cc:7:3: error: 'cin' does not name a type
7 | cin >> x >> y;
| ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
8 | 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))
| ^~
a.cc:12:3: e... |
s085258760 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A==2){
if(B==2){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
else if(A==4||A==6||A==9||A==11){
if(B==4||B==6||B==9||B==11){
cout<<"Yes"<<endl;
}
else{
if(A==1||A==3||A==5||A==... | a.cc: In function 'int main()':
a.cc:23:9: error: 'cou' was not declared in this scope
23 | cou<<"Yes"<<endl;
| ^~~
|
s910168731 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A==2&&B==2){
cout<<"Yes"<<endl;
}
else if(A==4&&A==6&&A==9&&A==11){
if(B==4&&B==6&&B==9&&B==11){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<enld;
}
}else{
cout<<"No"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:17:19: error: 'enld' was not declared in this scope
17 | cout<<"No"<<enld;
| ^~~~
|
s556088022 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B;
cin>>A>>B;
if(A==2&&B==2){
cout<<"Yes"<<endl;
}
else if(A==4&&A==6&&A==9&&A==11){
if(B==4&&B==6&&B==9&&B==11){
cput<<"Yes"<<endl;
}
else{
cout<<"No"<<enld;
}
}else{
cout<<"No"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:14:7: error: 'cput' was not declared in this scope
14 | cput<<"Yes"<<endl;
| ^~~~
a.cc:17:19: error: 'enld' was not declared in this scope
17 | cout<<"No"<<enld;
| ^~~~
|
s198119837 | p03711 | C++ | #include<bits/stdc++.h>
2.using namespace std;
3.typedef long long ll;
4.typedef unsigned long long ull;
5.const int N=10001;
6.char a[N][N];
7.int main()
8.{
9. int x,y,i,j;
10. cin>>x>>y;
11. for(i=1;i<=x;i++)
12. {
13. for(j=1;j<=y;j++)
14. {
15. cin>>a[i][j];
16. }
17. }
18. for(i=1;i<=y+2;i++)
19. ... | a.cc:2:1: error: expected unqualified-id before numeric constant
2 | 2.using namespace std;
| ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
3 | 3.typedef long long ll;
| ^~~~~~~~~
a.cc:4:1: error: expected unqualified-id before numeric constant
4 | 4.typedef unsigned l... |
s295837582 | p03711 | C++ | int main(){
int a,b;
cin>>a>>b;
if(a==2||b==2)
cout<<"No"<<endl;
else if(a==4||a==6||a==9||a==11){
if(b==4||b==6||b==9||b==11)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}else{
if(b==4||b==6||b==9||b==11)
cout<<"No"<<endl;
... | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
3 | cin>>a>>b;
| ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
6 | cout<<"No"<<endl;
| ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
6 | cout<<"No"<<e... |
s726305473 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> group(12) = {0,2,0,1,0,1,0,0,1,0,1,0}
if (group.at(x-1) == group.at(y-1)) cout << "Yes" < endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:7:25: error: expected ',' or ';' before '=' token
7 | vector<int> group(12) = {0,2,0,1,0,1,0,0,1,0,1,0}
| ^
a.cc:8:53: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
8... |
s378632799 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i, t) for(int i = 0; i < t; i++)
int main()
{
vector<int> group[2] = {
{1, 3, 5, 7, 8, 10, 12},
{4, 6, 9, 11}
};
string anss[2] = {"No", "Yes"};
int x, y, ans;
cin >> x >> y;
ans = (int)count_if(group[0].begin(), group[0]... | a.cc: In function 'int main()':
a.cc:15:14: error: no matching function for call to 'max(std::__iterator_traits<__gnu_cxx::__normal_iterator<int*, std::vector<int> >, void>::difference_type, int&)'
15 | ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
... |
s968423092 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> group[2] = {
{1, 3, 5, 7, 8, 10, 12},
{4, 6, 9, 11}
};
string anss[2] = {"No", "Yes"};
int x, y, ans;
cin >> x >> y;
ans = count_if(group[0].begin(), group[0].end(), [x, y](int i) { return i == x || i == y; }... | a.cc: In function 'int main()':
a.cc:14:14: error: no matching function for call to 'max(std::__iterator_traits<__gnu_cxx::__normal_iterator<int*, std::vector<int> >, void>::difference_type, int&)'
14 | ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
... |
s061070997 | p03711 | Java | import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in);) {
solve(sc);
}
}
public static void solve(Scanner sc) {
int a = sc.nextInt();
int b ... | Main.java:15: error: ';' expected
List<Integer> aa = Arrays.asList(new Int[]{a, b})
^
1 error
|
s624274151 | 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 decla... |
s257197249 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin >> x >> y;
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:4:1: error: extended character is not valid in an identifier
4 | int main(){
| ^
a.cc:4:1: error: ISO C++ forbids declaration of 'int\U00003000main' with no type [-fpermissive]
4 | int main(){
| ^~~~~~~~~
a.cc: In function 'int int\U00003000main()':
a.cc:10:1: warning: no return statement in ... |
s221555164 | p03711 | C++ | #include<stdio.h>
int main(){
int x,y;
scanf("%d%d",&x,&y);
switch(x){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12: int xi=1; break;
case 4:
case 6:
case 9:
case 11: int xi=2; break;
case 2: int xi=3; break;
}
switch(y){
case 1:
case ... | a.cc: In function 'int main()':
a.cc:15:10: error: jump to case label
15 | case 4:
| ^
a.cc:14:18: note: crosses initialization of 'int xi'
14 | case 12: int xi=1; break;
| ^~
a.cc:16:10: error: jump to case label
16 | case 6:
| ^
a.cc:14:18: n... |
s881669177 | p03711 | C++ | #include<bits/stdc++.h.
using namespace std;
int main(){
int n[12]={1,3,1,2,1,2,1,1,2,1,2,1};
int a,b;
cin>>a>>b;
if(n[a-1]==n[b-1])
cout<<"Yes";
else
cout<<"No";
} | a.cc:1:24: error: missing terminating > character
1 | #include<bits/stdc++.h.
| ^
a.cc:1:9: fatal error: bits/stdc++.h.: No such file or directory
1 | #include<bits/stdc++.h.
| ^
compilation terminated.
|
s443710697 | p03711 | C++ | #include<iostream>
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;
out<<(a[x]==a[y]?"Yes":"No")<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:3: error: 'out' was not declared in this scope
7 | out<<(a[x]==a[y]?"Yes":"No")<<endl;
| ^~~
|
s570065487 | p03711 | C++ | #include<iostream>
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;
out<<(a[x]==a[y]?"Yes":"No")<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:3: error: 'out' was not declared in this scope
7 | out<<(a[x]==a[y]?"Yes":"No")<<endl;
| ^~~
|
s883192330 | p03711 | C++ | #include <iostream>
using namespace std;
int main(){
int num[13] = {-1, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}
int a, b;
cin >> a >> b;
if ( num[a] == num[b] ) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
6 | int a, b;
| ^~~
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a >> b;
| ^
a.cc:7:15: error: 'b' was not declared in this scope
7 | cin >> a >> b;
| ^
|
s590088435 | p03711 | C | #include<stdio.h>
int main(){
int x, y, x_group, y_group;
scanf("%d %d", &x, &y);
if(x == 2){
x_group = 3;
} else if(x == 4 || x == 6 || x == 9 || x == 11){
x_group = 2;
} else {
x_group = 1;
}
if(y == 2){
y_group = 3;
} else if(y == 4 || y == 6 || y == 9 || y == 11){
y_group ... | main.c: In function 'main':
main.c:27:3: error: expected declaration or statement at end of input
27 | }
| ^
|
s585481023 | p03711 | C++ | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a[13] = {0, 1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1}
if (a[x] == a[y]) cout << "Yes";
else cout << "No";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
9 | if (a[x] == a[y]) cout << "Yes";
| ^~
a.cc:10:3: error: 'else' without a previous 'if'
10 | else cout << "No";
| ^~~~
|
s196999305 | p03711 | C | #include <stdio.h>
int main(){
int a,b,x=0;
scanf("%d %d",&a,&b);
int c[]={1,3,5,7,8,10,12};
int d[]={4,6,9,11};
if (a!=2||b!=2)
{
for (int i = 0; i < 7; ++i)
{
if (a==c[i])
{
for (int j = 0; j < ; ++j)
{
if (b==c[j])
{
x=1;
}
}
}
}
for (int k = 0; k < 4; ++k)
{... | main.c: In function 'main':
main.c:13:53: error: expected expression before ';' token
13 | for (int j = 0; j < ; ++j)
| ^
|
s449683689 | p03711 | C | #include <stdio.h>
int main(){
int a,b,x=0;
scanf("%d %d",&a,&b);
int c[]={1,3,5,7,8,10,12}
int d[]={4,6,9,11}
if (a!=2||b!=2)
{
for (int i = 0; i < 7; ++i)
{
if (a==c[i])
{
for (int j = 0; j < ; ++j)
{
if (b==c[j])
{
x=1;
}
}
}
}
for (int k = 0; k < 4; ++k)
{
... | main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
6 | int d[]={4,6,9,11}
| ^~~
main.c:13:53: error: expected expression before ';' token
13 | for (int j = 0; j < ; ++j)
| ... |
s269868050 | p03711 | C++ | #include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#define ALL(obj) (obj).begin(),(obj).end()
using vi = vector<int>;
using namespace std;
int main(){
int a,b;
vi c = {1,3,5,7,8,10,12};
vi d = {4,6,9,11};
vi e = {2};
cin >> a >> b;
bool flag = false;
if(find(ALL(c),a) != c.end() && f... | a.cc:6:12: error: 'vector' does not name a type
6 | using vi = vector<int>;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'vi' was not declared in this scope
10 | vi c = {1,3,5,7,8,10,12};
| ^~
a.cc:11:5: error: expected ';' before 'd'
11 | vi d = {4,6,9,11};
| ... |
s695768323 | p03711 | C++ | #include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#define ALL(obj) (obj).begin(),(obj).end()
using vi = vector<int>
using namespace std;
int main(){
int a,b;
vi c = {1,3,5,7,8,10,12};
vi d = {4,6,9,11};
vi e = {2};
cin >> a >> b;
bool flag = false;
if(find(ALL(c),a) != c.end() && fi... | a.cc:6:12: error: 'vector' does not name a type
6 | using vi = vector<int>
| ^~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'vi' was not declared in this scope
10 | vi c = {1,3,5,7,8,10,12};
| ^~
a.cc:11:5: error: expected ';' before 'd'
11 | vi d = {4,6,9,11};
| ... |
s075297256 | p03711 | C++ | #include<cstdio>
int main(){
int x,y;
scanf("%d %d",&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) printf("Yes\n");
else if(x == 4||x == 6|| x == 9 || x == 11&&y == 4||y ==6 ||y == 9|| y == 11)printf("Yes\n");
else printf("No\n");
... | a.cc:10:9: error: expected declaration before '}' token
10 | }
| ^
|
s832918513 | p03711 | C | #include <stdio.h>
int main(){
int a,b;
scaanf("%d %d",&a,&b);
if((a==4||a==6||a==9||a==11)&&(b==4||b==6||b==9||b==11))
puts("Yes");
if((a==7||a==5||a==3||a==1||a==8||a==10||a==12)&&(b==7||b==5||b==3||b==1||b==8||b==10||b==12))
puts("Yes");
else
puts("No");
return 0;
} | main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scaanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scaanf("%d %d",&a,&b);
| ^~~~~~
| scanf
|
s823966587 | p03711 | C | #include <stdio.h>
int main(){
int a,b;
scaanf("%d %d",&a,&b);
if(a==2&&b==2) puts("Yes");
else
if((a==4||a==6||a==9||a==11)&&(b==4||b==6||b==9||b==11))
puts("Yes");
if((a==7||a==5||a==3||a==1||a==8||a==10||a==12)&&(b==7||b==5||b==3||b==1||b==8||b==10||b==12))
puts("Yes");
else
puts("No");
return 0;
} | main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scaanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scaanf("%d %d",&a,&b);
| ^~~~~~
| scanf
|
s195641564 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,y
cin >> x >> y;
int n1=0,n2=0,n3=0;
int num1[7]={1,3,5,7,8,10,12};
int num2[4]={4,6,9,11};
for(int i=0;i<7;i++){
if(x==num1[i]) n1++;
if(y==num1[i]) n1++;
}
for(int i=0;i<4;i++){
if(x==num2[i]) n2+... | a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
6 | cin >> x >> y;
| ^~~
a.cc:12:12: error: 'y' was not declared in this scope
12 | if(y==num1[i]) n1++;
| ^
a.cc:16:12: error: 'y' was not declared in this scope
16 | if(y==num2[i... |
s770666106 | p03711 | C++ | #include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cstring>
using namespace std;
int main(int argc, char *argv[])
{
int x, y;
char aqua[] = {'0', 'a', 'c', 'a', 'b', 'a', 'b', 'a', 'a', 'b', 'a', 'b', 'a'}
cin >> x >> y;
if (aqua[x] == aqua[y])
cout << "Yes";
else
cout <... | a.cc: In function 'int main(int, char**)':
a.cc:12:9: error: expected ',' or ';' before 'cin'
12 | cin >> x >> y;
| ^~~
|
s645371007 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,y;
cin >> x >> y;
vector<int> a[4],b[7];
a[0]=4; a[1]=6; a[2]=9; a[3]=11;
b[0]=1; b[1]=3; b[2]=5; b[3]=7; b[4]=8; b[5]=10; b[6]=12;
int count=0;
int d=0;
for(int i=0;i<4;i++){
if(x==a[i]){count++;}
if(y==a[i]){count++;}
}
for... | a.cc: In function 'int main()':
a.cc:8:8: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
8 | a[0]=4; a[1]=6; a[2]=9; a[3]=11;
| ^
In file included from /usr/include/c++/14/vector:72,
from /usr/include/c++/14/functional:64,
from /usr/... |
s383118580 | p03711 | C | #include<stdio.h>
int main(){
int h,w,i,j;
char a[100][101];
scanf("%d%d",&h,&w);
for(i=0;i<h;i++)scanf("%s",a[i]);
for(i=-1;i<=h;i++){
if(i==-1||i==h){
for(j=0;j<n+2;j++)printf("#");
puts("");
}
else{
printf("#%s#",a[i]);
}
}
return 0;
} | main.c: In function 'main':
main.c:10:11: error: 'n' undeclared (first use in this function)
10 | for(j=0;j<n+2;j++)printf("#");
| ^
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
|
s832779812 | p03711 | C++ | #include<iostream>
using namespace std;
int main(){
int a[13]={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:6:3: error: expected ',' or ';' before 'int'
6 | int x,y;
| ^~~
a.cc:7:8: error: 'x' was not declared in this scope
7 | cin>>x>>y;
| ^
a.cc:7:11: error: 'y' was not declared in this scope
7 | cin>>x>>y;
| ^
|
s485956572 | 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){
if(y==1||y==3||y==5||y==7||y==8||y==10||y==12){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
if(x==4||x==6||x==9||x==11){
if(y==4||y==6||y==9... | a.cc: In function 'int main()':
a.cc:26:4: error: expected '}' at end of input
26 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s094038175 | p03711 | C++ | #include<iostream>
main(){std::string x,y;std::cin>>x,y;x+=y;puts(x[1]=='2'||x[2]=='2'?"No":"Yes"));} | a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){std::string x,y;std::cin>>x,y;x+=y;puts(x[1]=='2'||x[2]=='2'?"No":"Yes"));}
| ^~~~
a.cc: In function 'int main()':
a.cc:2:80: error: expected ';' before ')' token
2 | main(){std::string x,y;std::cin>>x,y;x+=y;... |
s143199712 | 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:20: error: expected ',' or ';' before '=' token
8 | vector<int>A(13) = {0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^
|
s341634741 | p03711 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
cin>>x>>y;
cout<<(a[x]==a[y]?"Yes":"No")<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:44: error: expected ',' or ';' before '\U0000ff1b'
5 | int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
| ^~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.