submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s611636256
p03711
C++
#include <iostream> using namespace std; int main() { int gp[3][7] = { {1,3,5,7,8,10,12}, {4,6,9,11}, {2}, }; int x, y; cin >> x >> y; int xg= 0, yg = 0; for (int i = 0; i < 3; i++) { for (int j = 0; j < sizeof(gp[i]/sizeof(int)); j++) { if (gp[i][j] == x) { xg = i; } ...
a.cc: In function 'int main()': a.cc:14:37: error: invalid operands of types 'int [7]' and 'long unsigned int' to binary 'operator/' 14 | for (int j = 0; j < sizeof(gp[i]/sizeof(int)); j++) { | ~~~~~^~~~~~~~~~~~ | | | | ...
s910713542
p03711
C++
#include <iostream> using namespace std; int main() { int gp[3][] = { {1,3,5,7,8,10,12}, {4,6,9,11}, {2}, }; int x, y; cin >> x >> y; int xg= 0, yg = 0; for (int i = 0; i < 3; i++) { for (int j = 0; j < sizeof(gp[i]/sizeof(int)); j++) { if (gp[i][j] == x) { xg = i; } ...
a.cc: In function 'int main()': a.cc:5:7: error: declaration of 'gp' as multidimensional array must have bounds for all dimensions except the first 5 | int gp[3][] = { | ^~ a.cc:14:32: error: 'gp' was not declared in this scope 14 | for (int j = 0; j < sizeof(gp[i]/sizeof(int)); j++) { | ...
s314577846
p03711
C++
#include <iostream> #include <algorithm> #include <cmath> #include <string> using namespace std; int main() { int x, y; cin >> x >> y; if (x == 2 || y == 2 || x == 11 || y == 4) cout << "No" << "\n"; else if (x == 4 || x == 6 || x == 9) { if (y == 6 || y == 9 || y == 11) cout << "Yes" << "\n"; else cout...
a.cc: In function 'int main()': a.cc:22:10: error: expected '}' at end of input 22 | } | ^ a.cc:6:12: note: to match this '{' 6 | int main() { | ^
s609913084
p03711
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ vector<ll> num[13]; num[4] = 1; num[6] = 1; num[9] = 1; num[11] = 1; num[2] = 2; int a, b; cin >> a >> b; if(num[a] == num[b]) cout << "Yes"; else cout << "No"; }
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator=' (operand types are 'std::vector<long long int>' and 'int') 6 | num[4] = 1; | ^ In file included from /usr/include/c++/14/vector:72, from /usr/include/c++/14/functional:64, from /usr/includ...
s101388304
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; vector<int> A = {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:7:3: error: expected ',' or ';' before 'if' 7 | if (A.at(x) == A.at(y)) {cout << "Yes" << endl;} | ^~ a.cc:8:3: error: 'else' without a previous 'if' 8 | else {cout << "No" << endl;} | ^~~~
s005195223
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x, y; vector<int> A = {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:6:3: error: expected ',' or ';' before 'if' 6 | if (A.at(x) == A.at(y)) {cout << "Yes" << endl;} | ^~ a.cc:7:3: error: 'else' without a previous 'if' 7 | else {cout << "No" << endl;} | ^~~~
s948112784
p03711
C++
#include <iostream> #include <algorithm> #include <string> #include <set> #include <regex> #include <locale> using namespace std; #define _overload3(_1,_2,_3,name,...) name #define _rep(i,n) repi(i,0,n) #define repi(i,a,b) for(int i=int(a);i<int(b);++i) #define rep(...) _overload3(__VA_ARGS__,repi,_rep,)(__VA_ARGS__) ...
a.cc: In function 'int main()': a.cc:24:3: error: expected ',' or ';' before 'if' 24 | if (a == 2) { | ^~ a.cc:28:5: error: 'else' without a previous 'if' 28 | } else if (b == 2) { | ^~~~
s572756613
p03711
C++
#include <iostream> #include<String> 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"; } else if(x==4||x==6||x==9||x==11&&y==4||y==6||y==9||y==11) { cout<<"yes"; } else if(x==2&&y==2) { cout<<"y...
a.cc:2:9: fatal error: String: No such file or directory 2 | #include<String> | ^~~~~~~~ compilation terminated.
s366370343
p03711
C++
#include <iostream> #include <vector> using namespace std; int main(){ int a,b; cin >> a >> b; if(a==2||b==2)cout << "No"; else if(a==4||a==6||a==9||a==11){ if(b==4||b==6||b==9||a==11){ cout << "Yes"; } else cout << "Yes"; } else{ if(b==4||b==6||b==9||a==11){ cout << "No"; }...
a.cc: In function 'int main()': a.cc:19:23: error: expected ';' before '}' token 19 | else cout << "Yes" | ^ | ; 20 | } | ~
s588261413
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; if(n<m){ if(n==2&&n!=m) cout<<"No"; else if(n==4||n==6||n==9||n==11)&&(m==4||m==6||m==9||m==11)) cout<<"yes"; } else if(n==1||n==3||n==5||n==7||n==8||n==12||n==10)&&(m==1||m==3||m==5||m==7||m==...
a.cc: In function 'int main()': a.cc:10:39: error: expected identifier before '(' token 10 | else if(n==4||n==6||n==9||n==11)&&(m==4||m==6||m==9||m==11)) | ^ a.cc:13:58: error: expected identifier before '(' token 13 | else if(n==1||n==3||n==5||n==7||n==8||n==12...
s156080273
p03711
C++
int main(){ int n,m; cin>>n>>m; if(n==2 &&m==2) cout<<"Yes"; else if(n==2&&n!=m) cout<<"No"; else if(n==4||n==6||n==9||n==11){ if(m==4||m==6||m==9||m==11) cout<<"yes"; } else if(n==1||n==3||n==5||n==7||n==8||n==12||n==10){ if(m==1||m==3||m==5||m==7...
a.cc: In function 'int main()': a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin>>n>>m; | ^~~ a.cc:5:9: error: 'cout' was not declared in this scope 5 | cout<<"Yes"; | ^~~~ a.cc:7:9: error: 'cout' was not declared in this scope 7 | cout<<"No"; |...
s107769316
p03711
Java
2 4
Main.java:1: error: class, interface, enum, or record expected 2 4 ^ 1 error
s980164182
p03711
C++
#include <bits/stdc++.h> #define rep(i, n) for(int i= 0; i < (n); i++) using ll= long long int; using namespace std; template <class T> inline bool chmax(T &a, T b) {if(a < b) {a= b;return 1;}return 0;} template <class T> inline bool chmin(T &a, T b) {if(a > b) {a= b;return 1;}return 0;} ll mod= 1e9 + 7; int main(){...
a.cc: In function 'int main()': a.cc:14:22: error: expected primary-expression before ',' token 14 | int d[13]={0,1,3,1,,2,1,2,1,1,2,1,2,1}; | ^
s430193420
p03711
C++
//組の練習? #include <bits/stdc++.h> #define rep(i,N) for (int i = 0; i < (N); ++i) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<int, int>; int main(void){ int a, b; cin >> a >> b; vector <int> vec = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2}; if (vec.at(x) == vec.at...
a.cc: In function 'int main()': a.cc:14:14: error: 'x' was not declared in this scope 14 | if (vec.at(x) == vec.at(y)) cout << "Yes" << endl; | ^ a.cc:14:27: error: 'y' was not declared in this scope 14 | if (vec.at(x) == vec.at(y)) cout << "Yes" << endl; | ^...
s643410933
p03711
C++
#include <bits/stdc++.h> using namespace std; #define ll long long template <typename T> bool PN(T x){ if (x <= 1) return false; if (x == 2) return true; for (int i = 2; i < sqrt(x) + 1; i++) if (x % i == 0) return false; return true;} const ll MOD = 1e9+7; void solve(){ int x, y; cin >> x >> y; int check[13] =...
a.cc: In function 'void solve()': a.cc:12:18: error: 'checl' was not declared in this scope; did you mean 'check'? 12 | if(check[x] == checl[y]) cout << "Yes" << endl; | ^~~~~ | check
s765474754
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==5||y==3||y==7||y==10||y==12){ cout<<"YES"; } 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; ...
a.cc: In function 'int main()': a.cc:9:39: error: lvalue required as left operand of assignment 9 | if(x==1||x==3||x==5||x==7||x==8||x==10||x=12) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
s050433526
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> S; S.insert(1); S.insert(3); S.insert(5); S.insert(7); S.insert(8); S.insert(10); S.insert(12); set<int> B; B.insert(4); B.insert(6); B.insert(9); B.insert(11); set<int> C; C.insert(2); int a, b ; cin >>...
a.cc: In function 'int main()': a.cc:30:25: error: 'N' was not declared in this scope 30 | (B.count(a)&&N.count(b))|| | ^
s867680009
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> S; S.insert(1); S.insert(3); S.insert(5); S.insert(7); S.insert(8); S.insert(10); S.insert(12); set<int> B; B.insert(4); B.insert(6); B.insert(9); B.insert(11); set<int> C; C.insert(2); int a, b ; cin >>...
a.cc: In function 'int main()': a.cc:30:25: error: 'N' was not declared in this scope 30 | (B.count(a)&&N.count(b))|| | ^ a.cc:34:13: error: expected '}' at end of input 34 | << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { |...
s325781457
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> S; S.insert(1); S.insert(3); S.insert(5); S.insert(7); S.insert(8); S.insert(10); S.insert(12); set<int> B; B.insert(4); B.insert(6); B.insert(9); B.insert(11); set<int> C; C.insert(2); int a, b ; cin a ...
a.cc: In function 'int main()': a.cc:27:6: error: expected ';' before 'a' 27 | cin a >> b ; | ^~ | ; a.cc:30:25: error: 'N' was not declared in this scope 30 | (B.count(a)&&N.count(b))|| | ^ a.cc:33:13: error: expected '}' at end of input 33 | ...
s284140345
p03711
C
#include<stdio.h> #include<bits/stdc++.h> using namespace std; int main() { int x,y,z; cin>>x>>y; if(x==2 || y==2) cout<<"No"<<endl; else if(x==4 || x==6 || x==9 || x==12) if(y==4 || y==6 || y==9 || y==12) cout<<"Yes"<<endl; else cout<<"No"<<endl; else...
main.c:2:9: fatal error: bits/stdc++.h: No such file or directory 2 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s831257541
p03711
C
int main() { int x,y,z; cin>>x>>y; if(x==2 || y==2) cout<<"No"<<endl; else if(x==4 || x==6 || x==9 || x==12) if(y==4 || y==6 || y==9 || y==12) cout<<"Yes"<<endl; else cout<<"No"<<endl; else if(x== 3 || x==1 || x==5 || x==7 || x==8 || x==10 || x==12) ...
main.c: In function 'main': main.c:4:5: error: 'cin' undeclared (first use in this function) 4 | cin>>x>>y; | ^~~ main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in main.c:6:9: error: 'cout' undeclared (first use in this function) 6 | cout<<"...
s071609436
p03711
C++
int main() { int x,y,z; cin>>x>>y; if(x==2 || y==2) cout<<"No"<<endl; else if(x==4 || x==6 || x==9 || x==12) if(y==4 || y==6 || y==9 || y==12) cout<<"Yes"<<endl; else cout<<"No"<<endl; else if(x== 3 || x==1 || x==5 || x==7 || x==8 || x==10 || x==12) ...
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope 4 | cin>>x>>y; | ^~~ 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...
s652819179
p03711
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define INF 1e12 #define PB push_back #define PF push_front #define fi first #define se second #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vpi vector<pii> #define vll vector<ll> #define vp...
a.cc: In function 'int f(int)': a.cc:86:15: error: expected ';' before '}' token 86 | return 3 | ^ | ; 87 | } | ~ a.cc:88:1: warning: control reaches end of non-void function [-Wreturn-type] 88 | } | ^
s302051725
p03711
C++
#include<bits/stdc++.h> using namespace std; #define debug(n) cerr << #n << ':' << n << endl; #define dline cerr << __LINE__ << endl; using ll = long long; using ull = unsigned long long; template<class T, class U> using P = pair<T,U>; template<class T> using Heap = priority_queue<T>; template<class T> using heaP...
a.cc: In function 'int main()': a.cc:76:24: error: 'v' was not declared in this scope 76 | cout << (uft.same(a, v) ? "Yes" : "No") << endl; | ^
s437263433
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++) int main() { vector<int> A, B; A = {1, 3, 5, 7, 8, 10, 12}; B = {4, 6, 9, 11}; int C = 12; int X, Y; cin >> A >> B; int Xa = 0; int Xb = 0; int ...
a.cc: In function 'int main()': a.cc:11:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>') 11 | cin >> A >> B; | ~~~ ^~ ~ | | | | | std::vector<int> | std::istream {aka std::basic_istream<char>} In...
s187082045
p03711
C++
#define _GIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<int, int>; int main(void) { int x, y; cin >> x >> y; vector<vector<int>> v = {{1, 3, 5, 7, 8, 10 , 12},...
a.cc:31:2: error: 'b' does not name a type 31 | }b | ^
s824853603
p03711
C
#include <stdio.h> int main(void) { int a[7]={1,3,5,7,8,10,12};b[4]={4,6,9,11},c=2; int s1=0,s2=0,x,y,i; scanf("%d%d",&x,&y); for(i=0;i<7;i++) if(x==a[i] || y==a[i])s1++; for(i=0;i<4;i++) if(x==b[i] || y==b[i])s2++; if(s1==2 || s2==2 || x=...
main.c: In function 'main': main.c:5:36: error: 'b' undeclared (first use in this function) 5 | int a[7]={1,3,5,7,8,10,12};b[4]={4,6,9,11},c=2; | ^ main.c:5:36: note: each undeclared identifier is reported only once for each function it appears in main.c:5:41: error:...
s036227272
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int group1 = 0. group2 = 0, group3 = 0; if (x == 2) { group3++; } else if (x == 4 || x == 6 || x == 9 || x == 11) { group2++; } else { group1++; } if (y == 2) { group3++; } else if (y == 4 || y ...
a.cc: In function 'int main()': a.cc:7:19: error: expected ',' or ';' before 'group2' 7 | int group1 = 0. group2 = 0, group3 = 0; | ^~~~~~ a.cc:11:5: error: 'group3' was not declared in this scope; did you mean 'group1'? 11 | group3++; | ^~~~~~ | group1 a.cc:13:5...
s399574276
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; int a[] = {1, 3, 5, 7, 8, 10, 12}; int b[] = {4, 6, 9, 11}; int c = 2; if (x == y) { cout << "Yes" << endl; return 0; } int x_ = 0; int y_ = 0; for (int i=0; i<(int)a.length();i++){ if (a[i] == x) x_ = 1; if (a[...
a.cc: In function 'int main()': a.cc:17:26: error: request for member 'length' in 'a', which is of non-class type 'int [7]' 17 | for (int i=0; i<(int)a.length();i++){ | ^~~~~~ a.cc:21:26: error: request for member 'length' in 'b', which is of non-class type 'int [4]' 21 | for (i...
s653821456
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; int a[] = {1, 3, 5, 7, 8, 10, 12}; int b[] = {4, 6, 9, 11}; int c = 2; if (x == y) { cout << "Yes" << endl; return 0; } int x_ = 0; int y_ = 0; for (int i=0; i<(int)a.size();i++){ if (a[i] == x) x_ = 1; if (a[i]...
a.cc: In function 'int main()': a.cc:17:26: error: request for member 'size' in 'a', which is of non-class type 'int [7]' 17 | for (int i=0; i<(int)a.size();i++){ | ^~~~ a.cc:21:26: error: request for member 'size' in 'b', which is of non-class type 'int [4]' 21 | for (int i=0; ...
s662352279
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; int a[] = {1, 3, 5, 7, 8, 10, 12}; int b[] = {4, 6, 9, 11} int c = 2; if (x == y) { cout << "Yes" << endl; return 0; } int x_ = 0; int y_ = 0; for (int i=0; i<(int)a.size();i++){ if (a[i] == x) x_ = 1; if (a[i] ...
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'int' 8 | int c = 2; | ^~~ a.cc:17:26: error: request for member 'size' in 'a', which is of non-class type 'int [7]' 17 | for (int i=0; i<(int)a.size();i++){ | ^~~~ a.cc:21:26: error: request fo...
s126125716
p03711
C++
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define ll long long #define rep(i,n) for(ll i=0;i<(n);i++) #define pll pair<ll,ll> #define pq priority_queue #define pb push_back #define eb emplace_back #define fi first #define se second #define ios ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); #define lb(c,...
a.cc: In function 'int main()': a.cc:28:8: error: scalar object 'a' requires one element in initializer 28 | ll a={1,3,5,7,8,10,12}; | ^ a.cc:29:8: error: scalar object 'b' requires one element in initializer 29 | ll b={4,6,9,11}; | ^
s346344922
p03711
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int x, y; cin >> x >> y; if((x==2 and y==2)cout << "Yes"; else if(x==2 or y==2) cout << "No"; else if(((x<8 and x%2) or (x>7 and x%2==0)) and ((y<8 and y%2) or (y>7 and y%2==0))) cout << "Yes"; else if((x==4 or x==6...
a.cc: In function 'int main()': a.cc:9:23: error: expected ';' before 'cout' 9 | if((x==2 and y==2)cout << "Yes"; | ^~~~ | ; a.cc:10:5: error: expected primary-expression before 'else' 10 | else if(x==2 or y==2) cout << "No"; | ^~~~ a.cc:9...
s726575641
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; vector<int> c={ 0,1,3,1,2,1,2,1,1,2,1,2,1 } if( c.at(a) == c.at(b) ){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:10:3: error: expected ',' or ';' before 'if' 10 | if( c.at(a) == c.at(b) ){ | ^~ a.cc:16:3: error: 'else' without a previous 'if' 16 | else{ | ^~~~
s135500735
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(); 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){ System.o...
Main.java:9: error: cannot find symbol System.out.println(Yes); ^ symbol: variable Yes location: class Main Main.java:11: error: cannot find symbol System.out.println(No); ^ symbol: variable No location: class ...
s204793980
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(); 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){ Sy...
Main.java:7: error: bad operand types for binary operator '||' if(x=1 || x=3 || x=5 || x=7 || x=8 || x=10 || x=12){ ^ first type: int second type: int Main.java:7: error: bad operand types for binary operator '||' if(x=1 || x=3 || x=5 || x=7 || x=8 || x=10 || x=12){ ...
s302667472
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(); if(x>=1 && x<=12 && y>=1 && y<=12){ 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=...
Main.java:28: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
s093510701
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int X[] = {0,1,3,1,2,1,2,1,1,2,1,2,1} int A,B; cin >> A >> B; if(X[A] == X[B]){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc: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; | ^
s484291537
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int X[] = {0,1,3,1,2,1,2,1,1,2,1,2,1} int A,B; cin >> A >> B; if(X[A] == X[B]){ cout << "YES" << endl; } else{ cout << "YES" << 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; | ^
s633173447
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ bool A=false; bool B=false; bool C=true; int a,b; cin >> a >> b; vector<int>N(7); N.at(0)=1; N.at(1)=3; N.at(2)=5; N.at(3)=7; N.at(4)=8; N.at(5)=10; N.at(6)=12; vector<int>M(4); M.at(0)=4; M.at(1)=6; M.at(2)=9; M.at(3)=11; ...
a.cc: In function 'int main()': a.cc:33:18: error: lvalue required as left operand of assignment 33 | for(int i=0;i<4&&C=true;i++){ | ~~~^~~
s543893731
p03711
C
#incude <stdio.h> #define GROUP_1_MAX 7 #define GROUP_2_MAX 4 #define GROUP_3_MAX 1 typedef struct { int group[GROUP_1_MAX]; } GROUP_t; int checkNum( GROUP_t *a_pstGroup, int x, int y, int groupNum ); int main(){ int x,y,ret; GROUP_t stGroup1 = { 1, 3, 5, 7, 8, 10, 12 }; GROUP_t stGroup2 = { 4, 6, 9, 11 }; ...
main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include? 1 | #incude <stdio.h> | ^~~~~~ | include main.c: In function 'main': main.c:19:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 19 | scanf( "%d", x ); | ^~~~~ main.c:1:1:...
s279613819
p03711
C++
#include <bits/stdc++.h> #include <math.h> #define _GLIBCXX_DEBUG 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;
a.cc: In function 'int main()': a.cc:9:47: error: expected '}' at end of input 9 | cout << (a[x] == a[y] ? "Yes" : "No") << endl; | ^ a.cc:5:12: note: to match this '{' 5 | int main() { | ^
s923071629
p03711
C++
#include <bits/stdc++.h> #include <math.h> #define _GLIBCXX_DEBUG using namespace std; int main() { 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:8:12: error: 'x' was not declared in this scope 8 | cout << (a[x] == a[y] ? "Yes" : "No") << endl; | ^ a.cc:8:20: error: 'y' was not declared in this scope 8 | cout << (a[x] == a[y] ? "Yes" : "No") << endl; | ^ a.cc:8:47: error: expe...
s608454053
p03711
C++
#include <iostream> using namespace std; using Int = long long int; using UInt = unsigned long long int; int main(void) { int x, y; cin >> x >> y; int g_num[13] = {0,1,3,1,2,1,2,1,1,2,1,2,1} if (g_num[x] == g_num[y]) { cout << "Yes" << endl; } else { cout << "No" << endl; } ...
a.cc: In function 'int main()': a.cc:12:5: error: expected ',' or ';' before 'if' 12 | if (g_num[x] == g_num[y]) { | ^~ a.cc:14:7: error: 'else' without a previous 'if' 14 | } else { | ^~~~
s334201868
p03711
C++
#include "bits/stdc++.h" using namespace std; int main() { vector<int> g1 {1, 3, 5, 7, 8, 10, 12}; vector<int> g2 {4, 6, 9, 11}; int x, y; cin >> x >> y; if (find(g1.begin(), g1.end(), x) != g1.end() && find(g1.begin(), g1.end(), y) != g1.end()) { cout << "Yes" << endl; } else if (fin...
a.cc: In function 'int main()': a.cc:18:29: error: expected ';' before '}' token 18 | cout << "No" << endl | ^ | ; 19 | } | ~
s311315655
p03711
C++
#include<iostream> using namespace std; int main(){ int c[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; int a,b; cin>>a>>b; if(c[a]==c[b]) cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:4:39: error: too many initializers for 'int [12]' 4 | int c[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; | ^
s381212552
p03711
C++
#include <bits/stdc=+.h> using namespace std; int main() { int g[]={-1,0,2,0,1,0,1,0,0,1,0,1,0}; int a,b; cin >> a >> b; cout << ( g[a]==g[b] ? "Yes" : "no" ) << '\n'; return 0; }
a.cc:1:10: fatal error: bits/stdc=+.h: No such file or directory 1 | #include <bits/stdc=+.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s441876703
p03711
C++
#include <bits/stdc++.h> #define INF 2e9 #define MOD 1000000007 #define MOD9 998244353 #define intMAX 51000; #define PI 3.14159265359 using namespace std; typedef long long llong; // typedef long double ldouble; using Graph = vector<vector<int>>; // int ctoi(const char c){ // if('0' <= c && c <= '9') return (c-'0')...
a.cc: In function 'int main()': a.cc:39:20: error: expected ',' or ';' before '=' token 39 | vector<int> A(7) = {1, 3, 5, 7, 8, 10, 12}; | ^ a.cc:40:20: error: expected ',' or ';' before '=' token 40 | vector<int> B(4) = {4, 6, 9, 11}; | ^
s856310568
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,10,12}; vector<int> b={4,6,9,11}; bool flag1=false; bool flag2=false; if(x==2&&y==2) cout << "Yes" << endl; else{ for(int i=0;i<7;i++){ if(a.at(i)==x) flag...
a.cc:12:28: error: extended character   is not valid in an identifier 12 | if(x==2&&y==2) cout << "Yes" << endl; | ^ a.cc: In function 'int main()': a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' argumen...
s117741786
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,10,12}; vector<int> b={4,6,9,11}; bool flag1=false; bool flag2=false; if(x==2&&y==2) cout << "Yes" << endl; else{ for(int i=0;i<7;i++){ if(a.at(i)==x) flag...
a.cc:12:28: error: extended character   is not valid in an identifier 12 | if(x==2&&y==2) cout << "Yes" << endl; | ^ a.cc: In function 'int main()': a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' argumen...
s740149698
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,10,12}; vector<int> b={4,6,9,11}; bool flag1=false; bool flag2=false; if(x==2&&y==2) cout << "Yes" << endl; else{ for(int i=0;i<7;i++){ if(a.at(i)==x) flag...
a.cc:12:28: error: extended character   is not valid in an identifier 12 | if(x==2&&y==2) cout << "Yes" << endl; | ^ a.cc: In function 'int main()': a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' argumen...
s616691655
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,10,12}; vector<int> b=[4,6,9,11]; bool flag1=false; bool flag2=false; if(x==2&&y==2) cout << "Yes" << endl; else{ for(int i=0;i<7;i++){ if(a.at(i)==x) flag...
a.cc:12:28: error: extended character   is not valid in an identifier 12 | if(x==2&&y==2) cout << "Yes" << endl; | ^ a.cc: In function 'int main()': a.cc:9:20: error: expected identifier before numeric constant 9 | vector<int> b=[4,6,9,11]; | ^ a....
s505274087
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; }
a.cc: In function 'int main()': a.cc:6:3: error: expected ',' or ';' before 'int' 6 | int x, y; | ^~~ a.cc:7:10: error: 'x' was not declared in this scope 7 | cin >> x >> y; | ^ a.cc:7:15: error: 'y' was not declared in this scope 7 | cin >> x >> y; | ^
s426122365
p03711
C++
#include <bits/stdc++.h> using namespace std; const int64_t INF=999999999; int main() { int x,y; cin>>x>>y; vector<int>t={1,3,5,7,8,12}; vector<int>k={4,6,9,11}; int h=2; if(x==2&&y==2){cout<<"Yes"<<endl;return 0;} bool xx=false;bool yy=false; for(int a:t){ if(x==a){xx=true;} if(y=...
a.cc: In function 'int main()': a.cc:22:13: error: 'a' was not declared in this scope 22 | if(x==a){xx=true;} | ^ a.cc:23:13: error: 'a' was not declared in this scope 23 | if(y==a){yy=true;} | ^
s401524537
p03711
Java
import java.util.*; public Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int[] group = new int[12]; group[0] = 0; group[1] = 2; group[2] = 0; group[3] = 1; group[4] = 0; group[5] = 1; group[6] = 0; group[7] = 0; group[8] = 1; group...
Main.java:3: error: class, interface, enum, or record expected public Main { ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]) { ^ (use --enable-preview to enable unnamed classes) Main.java:29: error: class, interfa...
s047713232
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> A = {1,3,5,7,8,10,12}; set<int> B = {4,6,9,11}; set<int> C = {2}; int x,y; cin >> x >> y; if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){ cout << "Yes"; }else{ cout << "No...
a.cc: In function 'int main()': a.cc:10:90: error: expected ';' before '{' token 10 | if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){ | ^ | ...
s227007303
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> A = {1,3,5,7,8,10,12}; set<int> B = {4,6,9,11}; set<int> C = {2}; int x,y; cin >> x >> y; if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){ cout << "Yes"; }else{ cout <<...
a.cc:13:17: warning: missing terminating " character 13 | cout << "No; | ^ a.cc:13:17: error: missing terminating " character 13 | cout << "No; | ^~~~ a.cc: In function 'int main()': a.cc:10:90: error: expected ';' before '{' token 10 | if((A.coun...
s394789247
p03711
C++
//#pragma GCC optimize("O3") //#pragma GCC target("avx") #include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <optional> #include <set> #include <string> #include <tuple> #include <...
a.cc:48:49: error: 'function' in namespace 'std' does not name a template type 48 | template <typename _Signature> using fun = std::function<_Signature>; | ^~~~~~~~ a.cc:23:1: note: 'std::function' is defined in header '<functional>'; this is probably fixable by ...
s060348691
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; if(a.at(x)==a.at(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:10: error: 'x' was not declared in this scope 7 | cin >> x >> y; | ^ a.cc:7:15: error: 'y' was not declared in this scope 7 | cin >> x >> y; | ^
s031917048
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1]; int a,b; cin>>a>>b; if(group[a-1]==group[b-1]){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:5:18: error: expected identifier before numeric constant 5 | int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1]; | ^ a.cc:5:19: error: expected ']' before ',' token 5 | int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1]; | ^ | ...
s924733668
p03711
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int a[] = {1, 3, 5, 7, 8, 10, 12}; int b[] = {4, 6, 9, 11}; int c[] = {2}; int x, y; cin >> x >> y; char xg, yg; for(int i=0; i<7; i++){ if(x==a[i]) xg='a'; if(y==a[i]) yg='a'; } for(int i=0; i<4.size(); i++){ ...
a.cc: In function 'int main()': a.cc:17:18: error: unable to find numeric literal operator 'operator""size' 17 | for(int i=0; i<4.size(); i++){ | ^~~~~~
s542781798
p03711
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int a[] = {1, 3, 5, 7, 8, 10, 12}; int b[] = {4, 6, 9, 11}; int c[] = {2}; int x, y; cin >> x >> y; char xg, yg; for(int i=0; i<a.size(); i++){ if(x==a[i]) xg='a'; if(y==a[i]) yg='a'; } for(int i=0; i<b.size(); ...
a.cc: In function 'int main()': a.cc:13:20: error: request for member 'size' in 'a', which is of non-class type 'int [7]' 13 | for(int i=0; i<a.size(); i++){ | ^~~~ a.cc:17:20: error: request for member 'size' in 'b', which is of non-class type 'int [4]' 17 | for(int i=0; i<b.size(); ...
s458430713
p03711
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int a[] = {1, 3, 5, 7, 8, 10, 12}; int b[] = {4, 6, 9. 11}; int c[] = {2}; int x, y; cin >> x >> y; char xg, yg; for(int i=0; i<a.size(); i++){ if(x==a[i]) xg='a'; if(y==a[i]) yg='a'; } for(int i=0; i<b.size(); ...
a.cc: In function 'int main()': a.cc:8:23: error: expected '}' before numeric constant 8 | int b[] = {4, 6, 9. 11}; | ~ ^~ a.cc:8:20: error: narrowing conversion of '9.0e+0' from 'double' to 'int' [-Wnarrowing] 8 | int b[] = {4, 6, 9. 11}; | ^~ a.cc: At glo...
s964382135
p03711
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}; int b,c; cin>>b>>c; if(a[b-1]==c[c-1]) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: invalid types 'int[int]' for array subscript 7 | if(a[b-1]==c[c-1]) { | ^
s899264606
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int table[] = {0,1,3,1,2,1,2,1,1,2,1,2,1}; int a,b; cin >> a >> b; if (table.at(a) == table.at(b)) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:7:13: error: request for member 'at' in 'table', which is of non-class type 'int [13]' 7 | if (table.at(a) == table.at(b)) { | ^~ a.cc:7:28: error: request for member 'at' in 'table', which is of non-class type 'int [13]' 7 | if (table.at(a) == table.at...
s682912553
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; int S = {1, 3, 5, 7, 8, 10, 12} int T = {4, 6, 9, 11} if (A == S && B == S) { cout << "Yes" << endl; } else if (A == T && B == T) { cout << "Yes" << endl; } else if (A == S && B == T) { cout << "No" << e...
a.cc: In function 'int main()': a.cc:8:7: error: scalar object 'S' requires one element in initializer 8 | int S = {1, 3, 5, 7, 8, 10, 12} | ^ a.cc:9:3: error: expected ',' or ';' before 'int' 9 | int T = {4, 6, 9, 11} | ^~~ a.cc:13:19: error: 'T' was not declared in this scope 13 | ...
s731932387
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x,y; cin >> x >> y; vector<int> group={0,1,3,1,2,1,2,1,1,2,1,2,1}; if(group.at(x)==group.at(y){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:32: error: expected ')' before '{' token 8 | if(group.at(x)==group.at(y){ | ~ ^ | ) a.cc:13:1: error: expected primary-expression before '}' token 13 | } | ^
s515542648
p03711
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { vector<int> a(12); a = {1,3,1,2,1,2,1,1,2,1,2,1} int x, y; cin >> x >> y; if(a[x-1] == a[y-1]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:32: error: expected ';' before 'int' 9 | a = {1,3,1,2,1,2,1,1,2,1,2,1} | ^ | ; 10 | int x, y; | ~~~ a.cc:11:10: error: 'x' was not declared in this scope 11 |...
s549890276
p03711
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { int x, y; cin >> x >> y; if (x == 2 || y == 2) cout << "No" << endl; else if (abs(a-b) == 2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:16: error: 'a' was not declared in this scope 11 | else if (abs(a-b) == 2) cout << "Yes" << endl; | ^ a.cc:11:18: error: 'b' was not declared in this scope 11 | else if (abs(a-b) == 2) cout << "Yes" << endl; | ^
s270793260
p03711
C++
#include<stdio.h> #include<math.h> #include<string.h> void main() { int i,x,y; int a[1],b[7],c[4]; a[1]='2'; b[7]={1,3,5,7,8,10,12}; c[4]={4,6,9,11}; scanf("%d %d",&x,&y); for(i=0;i<4;i++) { if(x==c[i]) { for(i=0;i<4;i++) { if(y==c[i]) printf("yes"); exit(0); } } } for(i=0;i<7;i+...
a.cc:4:1: error: '::main' must return 'int' 4 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:9:22: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 9 | b[7]={1,3,5,7,8,10,12}; | ^ a.cc:10:15: error: cannot convert '<brace-enclosed initi...
s709031800
p03711
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define PI 3.14159265358979323846 constexpr int INF = numeric_limits<int>::max() / 2; constexpr long long INFL = numeric_limits<long long>::max() / 2; constexpr int MOD = 1000000007; using Graph = vector<vector<int>>; ...
a.cc: In function 'int main()': a.cc:23:24: error: expected ';' before '}' token 23 | if(y==a[i]) q=1 | ^ | ; 24 | } | ~
s929651679
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,10,12}; vector<int> B={4,6,9,11}; if(x==2 || y==2){ cout << "No" <<endl; return 0; } if(count(A.begin(), A.end(), x)==find(A.begin(), A.end(), y)){ cout << "Yes" << endl; } el...
a.cc: In function 'int main()': a.cc:16:34: error: no match for 'operator==' (operand types are 'std::__iterator_traits<__gnu_cxx::__normal_iterator<int*, std::vector<int> >, void>::difference_type' {aka 'long int'} and '__gnu_cxx::__normal_iterator<int*, std::vector<int> >') 16 | if(count(A.begin(), A.end(), x)==...
s436268344
p03711
C++
#include<bits/stdc++.h> using namespace std; int main () { array<int, 12> 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"; cout << "No"; }
a.cc: In function 'int main()': a.cc:7:21: error: 'b' was not declared in this scope 7 | if (a[x + 1] == b[y + 1]) cout << "Yes"; | ^
s214775497
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; cin >> x >> y; int ans = 0; vector<int>vec = {1,3,5,7,8,10,12}; vector<int>usi = {4,6,9,11}; if(x == 2 || y == 2)cout << "No" << endl; else if(x == y) cout << "Yes" <<endl; for(int i = 0; i < 7; i++){ for(int j = 0; j <...
a.cc: In function 'int main()': a.cc:26:4: error: 'else' without a previous 'if' 26 | else if(ans >= 1){ | ^~~~
s246978606
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; int s[12]={1,2,1,3,1,3,1,1,3,1,3,1} if(s[a-1]==s[b-1]){ cout << "Yes"; }else{ cout << "No"; } }
a.cc: In function 'int main()': a.cc:7:3: error: expected ',' or ';' before 'if' 7 | if(s[a-1]==s[b-1]){ | ^~ a.cc:9:4: error: 'else' without a previous 'if' 9 | }else{ | ^~~~
s381462207
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; int s[12]={1,2,1,3,1,3,,1,1,3,1,3,1} if(s[a-1]==s.[b-1]){ cout << "Yes"; }else{ cout << "No"; } }
a.cc: In function 'int main()': a.cc:6:26: error: expected primary-expression before ',' token 6 | int s[12]={1,2,1,3,1,3,,1,1,3,1,3,1} | ^ a.cc:9:4: error: 'else' without a previous 'if' 9 | }else{ | ^~~~
s779184178
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x>>y; if(x==2&&y==2) cout<<"Yes"<<ebdl; else if(x==4||x==6||x==9||x==11){ if(y==4||y==6||y==9||y==11) cout<<"Yes"<<endl; } else 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:8:18: error: 'ebdl' was not declared in this scope 8 | cout<<"Yes"<<ebdl; | ^~~~
s246637676
p03711
C
#include<stdio.h> int main(void){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}; int x,y; scanf("%d %d",&x,&y); char ans[5]=(a[x]==a[y] ? "Yes" : "No"); printf("%s",ans); return 0; }
main.c: In function 'main': main.c:6:15: error: invalid initializer 6 | char ans[5]=(a[x]==a[y] ? "Yes" : "No"); | ^
s803334326
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 ; } #include<stdio.h> int main(void){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}; int x,y; scanf("%d %d",&x,&y); char ...
main.c: In function 'main': main.c:4:13: error: 'cin' undeclared (first use in this function) 4 | int x , y ; cin >> x >> y ; | ^~~ main.c:4:13: note: each undeclared identifier is reported only once for each function it appears in main.c:5:1: error: 'cout' undeclared (first use in this function) ...
s004078718
p03711
C++
#include<bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; vector<int> s = {4, 6, 9, 11}; bool j1 = false; for(int i = 0; i < 4; i++) { if(s[i] == x) z++; if(s[i] == y) z++; } if(z % 2 == 0) j1 = true; cout << (((x != 2 && y != 2) && j1) ? "Yes" : "No") << endl; }
a.cc: In function 'int main()': a.cc:7:19: error: 'z' was not declared in this scope 7 | if(s[i] == x) z++; | ^ a.cc:8:19: error: 'z' was not declared in this scope 8 | if(s[i] == y) z++; | ^ a.cc:9:8: error: 'z' was not declared in this scope 9 | } ...
s396916188
p03711
C++
#include<bits/stdc++.h> using namespace std; int main() { string x, y; cin >> x >> y; vector<int> s = {4, 6, 9, 11}; bool j1 = false; for(int i = 0; i < 4; i++) { if(s[i] == x) z++; if(s[i] == y) z++; } if(z % 2 == 0) j1 = true; cout << (((x != 2 && y != 2) && j1) ? "Yes" : "No") << endl; }
a.cc: In function 'int main()': a.cc:7:13: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if(s[i] == x) z++; In file included from /usr/include/c++/14/regex:68, ...
s991393614
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; cin >> x >> y; vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} if(vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } }
a.cc: In function 'int main()': a.cc:10:3: error: expected ',' or ';' before 'if' 10 | if(vec.at(x-1) == vec.at(y-1)) { | ^~ a.cc:14:3: error: 'else' without a previous 'if' 14 | else { | ^~~~
s901559786
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; cin >> x >> y; vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} if (vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:3: error: expected ',' or ';' before 'if' 10 | if (vec.at(x-1) == vec.at(y-1)) { | ^~ a.cc:14:3: error: 'else' without a previous 'if' 14 | else { | ^~~~
s479754105
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int x,y; cin >> x >> y; vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} if(vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:3: error: expected ',' or ';' before 'if' 10 | if(vec.at(x-1) == vec.at(y-1)) { | ^~ a.cc:14:3: error: 'else' without a previous 'if' 14 | else { | ^~~~
s512272194
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} long long x,y; cin >> x >> y; if(vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'long' 8 | long long x,y; | ^~~~ a.cc:9:10: error: 'x' was not declared in this scope 9 | cin >> x >> y; | ^ a.cc:9:15: error: 'y' was not declared in this scope; did you mean 'yn'? 9 | cin >> x >> y; ...
s833601032
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} int A,B; cin >> A >> B; if(vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'int' 8 | int A,B; | ^~~ a.cc:9:10: error: 'A' was not declared in this scope 9 | cin >> A >> B; | ^ a.cc:9:15: error: 'B' was not declared in this scope 9 | cin >> A >> B; | ^ a.cc:1...
s721216714
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin >> x >> y; if(vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'int' 8 | int x,y; | ^~~ a.cc:9:10: error: 'x' was not declared in this scope 9 | cin >> x >> y; | ^ a.cc:9:15: error: 'y' was not declared in this scope; did you mean 'yn'? 9 | cin >> x >> y; | ...
s908306590
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec = {1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin >> x >> y; if(vec.at(x-1) == vec.at(y-1)) { cout << "Yes" <<endl; } else { cout << "No" <<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'int' 8 | int x,y; | ^~~ a.cc:9:10: error: 'x' was not declared in this scope 9 | cin >> x >> y; | ^ a.cc:9:15: error: 'y' was not declared in this scope; did you mean 'yn'? 9 | cin >> x >> y; | ...
s373249024
p03711
C++
x, y = gets.chomp.split.map(&:to_i) g1 = [1, 3, 5, 7, 8 ,10, 12] g2 = [4, 6, 9, 11] if (g1.include?(x) && g1.include?(y)) || (g2.include?(x) && g2.include?(y)) puts 'Yes' else puts 'No' end
a.cc:6:8: warning: multi-character character constant [-Wmultichar] 6 | puts 'Yes' | ^~~~~ a.cc:8:8: warning: multi-character character constant [-Wmultichar] 8 | puts 'No' | ^~~~ a.cc:1:1: error: 'x' does not name a type 1 | x, y = gets.chomp.split.map(&:to_i) | ^
s982538122
p03711
C
#include <stdio.h> int main (void) { int a[12],x=0,y=0; a[12]={"0,2,0,1,0,1,0,0,1,0,1,0"}; scanf("%d%d",&x,&y); if(a[x]=a[y]) printf("Yes\n"); else printf("No\n"); return 0 ; }
main.c: In function 'main': main.c:5:11: error: expected expression before '{' token 5 | a[12]={"0,2,0,1,0,1,0,0,1,0,1,0"}; | ^
s651913140
p03711
C
#include <stdio.h> int main (void) { int a[12],x=0,y=0; a[12]={0,2,0,1,0,1,0,0,1,0,1,0}; scanf("%d%d",&x,&y); if(a[x]=a[y]) printf("Yes\n"); else printf("No\n"); return 0 ; }
main.c: In function 'main': main.c:5:11: error: expected expression before '{' token 5 | a[12]={0,2,0,1,0,1,0,0,1,0,1,0}; | ^
s847914195
p03711
C
#include <stdio.h> int main (void) { int a[12]={0,2,0,1,0,1,0,0,1,0,1,0},x=0,y=0; scanf"%d%d",&x,&y); if(a[x]=a[y]) printf("Yes\n"); else printf("No\n"); return 0 ; }
main.c: In function 'main': main.c:5:10: error: expected ';' before string constant 5 | scanf"%d%d",&x,&y); | ^~~~~~ | ; main.c:5:22: error: expected statement before ')' token 5 | scanf"%d%d",&x,&y); | ^
s035168038
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; int a[12]={1,3,1,2,1,2,1,1,2,1,2,1} if(a[x-1]==a[y-1]){ cout<<"Yes"<<endl; } else{ COUT<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:7:3: error: expected ',' or ';' before 'if' 7 | if(a[x-1]==a[y-1]){ | ^~ a.cc:10:3: error: 'else' without a previous 'if' 10 | else{ | ^~~~ a.cc:12:3: error: 'COUT' was not declared in this scope 12 | COUT<<"No"<<endl; | ^~~~
s531892403
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; vector<int> a; a={1,3,5,7,8,10,12}; vector<int> b; b={4,6,9,11}; vector<int> c; c={2}; for(int i=0;i<7;i++){ if(x==a.at(i)&&y==a.at(i)){ cout<<"Yes"<<endl; break; } } for(int j=0;j<4;j++){ if(x==b.at(j)...
a.cc: In function 'int main()': a.cc:26:2: error: 'else' without a previous 'if' 26 | else{ | ^~~~
s825629889
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ string x,y; cin>>x>>y; vector<char> a; a={1,3,5,7,8,10,12}; vector<char> b; b={4,6,9,11}; vector<char> c; c={2}; for(int i=0;i<7;i++){ if(x==a.at(i)&&y==a.at(i)){ cout<<"Yes"<<endl; } } for(int j=0;j<4;j++){ if(x==b.at(j)&&y==b.at...
a.cc: In function 'int main()': a.cc:14:7: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 14 | if(x==a.at(i)&&y==a.at(i)){ | ~^~~~~~~~~ | | | ...
s084329570
p03711
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int x,y; cin >>x>>y; if (x == 2 || y == 2) cout << "No" <<endl; else if (y <= 7 || x >= 8) { if (x + y % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; else { if (x + y % 2...
a.cc: In function 'int main()': a.cc:12:3: error: expected '}' before 'else' 12 | else { | ^~~~ a.cc:9:30: note: to match this '{' 9 | else if (y <= 7 || x >= 8) { | ^ a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:5:12: note: to match this...
s538667905
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int H,W; cin >>H>>W; vector<string> vec(i) for (int i = 0;i < H;i++) { cin >> vec(i) } for (int i = 0;i < W+1;i++) cout <<"#"; cout<<endl; for (int i = 0;i < H;i++) cout <<"#"<<vec(i)<<"#"<<endl; for(int i = 0;i < H;i++) { cin >> vec(...
a.cc: In function 'int main()': a.cc:7:22: error: 'i' was not declared in this scope 7 | vector<string> vec(i) | ^ a.cc:8:3: error: expected ',' or ';' before 'for' 8 | for (int i = 0;i < H;i++) { | ^~~ a.cc:13:44: error: no match for call to '(std::vector<std::__cxx11::ba...
s210293113
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,a[13]={0,1,3,1,2,1,2,1,1,2,1,2,1} cin >> x >> y; if(a[x]==a[y])cout<<"Yes"; else cout << "No"; }
a.cc: In function 'int main()': a.cc:5:3: error: expected ',' or ';' before 'cin' 5 | cin >> x >> y; | ^~~
s466153256
p03711
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x,a[13]={0,1,3,1,2,1,2,1,1,2,1,2,1} cin >> x >> y; if(a[x]==a[y])cout<<"Yes"; else cout << "No"; }
a.cc: In function 'int main()': a.cc:5:3: error: expected ',' or ';' before 'cin' 5 | cin >> x >> y; | ^~~ a.cc:6:14: error: 'y' was not declared in this scope 6 | if(a[x]==a[y])cout<<"Yes"; | ^
s100076333
p03711
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < (n); ++i) #define fin(ans) cout << (ans) << endl; #define blank(ans) cout << (ans) << " "; #define mp(p, q) make_pair(p, q) #define pb(n) push_back(n) #define all(a) a.begin(), a.end() typedef long long ll; typedef long long lli; type...
a.cc: In function 'void Main()': a.cc:42:3: error: expected ',' or ';' before 'if' 42 | if(ans[a] == ans[b]) fin("Yes") | ^~ a.cc:43:3: error: 'else' without a previous 'if' 43 | else fin("No") | ^~~~