submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s425960793
p03711
C++
#include<iostream> #include<vector> #include<sstream> #include<string> #include<numeric> #include <algorithm> using namespace std; int input(){ int x; cin>>x; return x; } int abs(int x){ if(x>=0){ return x; }else{ return -x; } } int gcd(int x, int y){ if(x<y){ return gcd(y,x); } if(y==0){ ...
a.cc: In function 'int main()': a.cc:118:12: error: expected identifier before numeric constant 118 | int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1]; | ^ a.cc:118:13: error: expected ']' before ',' token 118 | int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1]; | ^ | ] a.cc: In lambda...
s026650174
p03711
C++
x,y = gets.chomp.split(" ").map(&:to_i); a = [1, 3, 5, 7, 8, 10, 12] b = [4, 6, 9, 11] c = [2] if (a.include?(x) && a.include?(y)) || (b.include?(x) && b.include?(y))||(c.include?(x) && c.include?(y)) puts 'Yes' else puts 'No' end
a.cc:7:10: warning: multi-character character constant [-Wmultichar] 7 | puts 'Yes' | ^~~~~ a.cc:9:10: warning: multi-character character constant [-Wmultichar] 9 | puts 'No' | ^~~~ a.cc:1:1: error: 'x' does not name a type 1 | x,y = gets.chomp.split(" ").map(&:to_i); ...
s363843921
p03711
C++
x,y = gets.chomp.split(" ").map(&:to_i); A = [1, 3, 5, 7, 8, 10, 12] B = [4,6,9,11] C = [2] if A.include?(x) then x = 'A' elsif B.include?(x) then x = 'B' else x = 'C' end if A.include?(y) then y = 'A' elsif B.include?(y) then y = 'B' else y ='C' end if x == y puts 'Yes' else puts 'No...
a.cc:23:10: warning: multi-character character constant [-Wmultichar] 23 | puts 'Yes' | ^~~~~ a.cc:25:10: warning: multi-character character constant [-Wmultichar] 25 | puts 'No' | ^~~~ a.cc:1:1: error: 'x' does not name a type 1 | x,y = gets.chomp.split(" ").map(&:to_i);...
s237700090
p03711
C
main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");} | ^~~~ main.c: In function 'main': main.c:1:1: error:...
s480477758
p03711
C
main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){scanf("%d%d",&a,&b};if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");} | ^~~~ main.c: In function 'main': main.c:1:1: error:...
s636134255
p03711
C++
#include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<map> #include<iostream> using namespace std; typedef long long ll; const int INF = 0x3f3f3f3f; int main() { int a, b; cin >> a >> b; map<int, int> mp1, mp2, mp3; mp1.clear();mp2.clear();mp3.clear(); mp1[1]=1;mp1[3]...
a.cc: In function 'int main()': a.cc:25:9: error: 'pritnf' was not declared in this scope; did you mean 'printf'? 25 | pritnf("Yes\n"); | ^~~~~~ | printf
s248681957
p03711
C++
#include "bits/stdc++.h" using namespace std; int main() { int x, y; cin >> x >> y; vector<int> group1 = {1, 3, 5, 7, 8, 10, 12}; vector<int> group2 = {4, 6, 9, 11}; int type_x=0, type_y=0; for(int i=0;i<7;i++) { if(group1(i) == x) type_x=1; if(group1(i) == y) type_y=1; } for(int i=0;i<4;i++) { if(gr...
a.cc: In function 'int main()': a.cc:14:26: error: no match for call to '(std::vector<int>) (int&)' 14 | if(group1(i) == x) type_x=1; | ~~~~~~^~~ a.cc:15:26: error: no match for call to '(std::vector<int>) (int&)' 15 | if(group1(i) == y) type_y=1; | ...
s764100364
p03711
C++
#include "bits/stdc++.h" using namespace std; int main() { int x, y; cin >> x >> y; vector<int> group1 = {1, 3, 5, 7, 8, 10, 12}, group2 = {4, 6, 9, 11}; int type_x=0, type_y=0; for(int i=0;i<7;i++) { if(group1(i) == x) type_x=1; if(group1(i) == y) type_y=1; } for(int i=0;i<4;i++) { if(group2(i) == x)...
a.cc: In function 'int main()': a.cc:13:26: error: no match for call to '(std::vector<int>) (int&)' 13 | if(group1(i) == x) type_x=1; | ~~~~~~^~~ a.cc:14:26: error: no match for call to '(std::vector<int>) (int&)' 14 | if(group1(i) == y) type_y=1; | ...
s492318252
p03711
Java
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); if(x==2||y==2){ System.out.println("No"); }else if((x==4||x==6||x==9||x==11)&&(y==4||y=...
Main.java:19: error: reached end of file while parsing } ^ 1 error
s674842699
p03711
C++
#include<iostream> int a[]={0,1,2,1,4,1,4,1,1,4,1,4,1},x,y;main{std::cin>>x>>y;puts(a[x]-a[y]?"No":"Yes");}
a.cc:2:41: error: 'main' does not name a type 2 | int a[]={0,1,2,1,4,1,4,1,1,4,1,4,1},x,y;main{std::cin>>x>>y;puts(a[x]-a[y]?"No":"Yes");} | ^~~~
s263719267
p03711
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; int s={0,1,3,1,2,1,2,1,1,2,1,2,1}; if(s[a]==s[b])cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:7:7: error: scalar object 's' requires one element in initializer 7 | int s={0,1,3,1,2,1,2,1,1,2,1,2,1}; | ^
s548924236
p03711
C++
#include<iostream> using namespace std; int main(){ int x,y; string p,q; cin >> x >> y; if (x == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12) { p = 57; } if (x == 4 || x == 6 || x == 9 || x == 11) { p = 58; } if (x == 2 ) { p = 59; } if (y == 1 || x==3 || x==5 || x == 7 || x == 8 || ...
a.cc: In function 'int main()': a.cc:21:8: error: no match for 'operator!' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 21 | if(p=!q) {cout << "No" << endl;}} | ^~ a.cc:21:8: note: candidate: 'operator!(bool)' (built-in) a.cc:21:8: note: no known conversion for argument 1...
s352132689
p03711
C++
#include<iostream> using namespace std; int main(){ int x,y; string p,q; cin >> x >> y; if (x == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12) { p = A; } if (x == 4 || x == 6 || x == 9 || x == 11) { p = B; } if (x == 2 ) { p = C; } if (y == 1 || x==3 || x==5 || x == 7 || x == 8 || x =...
a.cc: In function 'int main()': a.cc:8:9: error: 'A' was not declared in this scope 8 | { p = A; } | ^ a.cc:10:9: error: 'B' was not declared in this scope 10 | { p = B; } | ^ a.cc:12:9: error: 'C' was not declared in this scope 12 | { p = C; } | ^ a.cc:14:9: er...
s118486937
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,s; cin >> a >> s; int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1}; if(group[a]==group[s]) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:8:30: error: expected primary-expression before ',' token 8 | int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1}; | ^
s597562740
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,s; cin >> a >> s; int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1} if(group[a]==group[s]) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:8:30: error: expected primary-expression before ',' token 8 | int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1} | ^ a.cc:11:5: error: 'else' without a previous 'if' 11 | else | ^~~~
s012952190
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x, y; cin >> x >> y; if(x == 4 || x == 6 || x == 9 || x == 11) x = b; else if(x == 2) x = c; else x = a; if(y == 4 || y == 6 || y == 9 || y == 11) y = b; else if(y == 2) y = c; else y = a; if(x == y) cout << "Yes" << endl; else ...
a.cc: In function 'int main()': a.cc:8:49: error: 'b' was not declared in this scope 8 | if(x == 4 || x == 6 || x == 9 || x == 11) x = b; | ^ a.cc:9:23: error: 'c' was not declared in this scope 9 | else if(x == 2) x = c; | ^ ...
s258228990
p03711
C++
#include<iostream> using namespace std; int c[13]={ 0,1,3,1,2,1,2,1,2,1,2,1,2 } int main() { int a,b; cin>>a>>b; if(c[a]==c[b])cout<<"Yes"; else cout<<"No"; } /*code in 90 seconds*/
a.cc:9:1: error: expected ',' or ';' before 'int' 9 | int main() | ^~~
s023969811
p03711
C++
#include <iostream> using namespace std; int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}; cin>>x>>y; if(a[x]==a[y])cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:8: error: 'x' was not declared in this scope 5 | cin>>x>>y; | ^ a.cc:5:11: error: 'y' was not declared in this scope 5 | cin>>x>>y; | ^
s512601378
p03711
C++
#include <bits/stdc++.h> using namespace std; int a[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; int b,c; int main(){ cin>>b>>c; if(a[b] == a[c]){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }
a.cc:3:37: error: too many initializers for 'int [12]' 3 | int a[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; | ^
s208775048
p03711
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<map> #include<set> #include<utility> using namespace std; typedef long long ll; #define rep(i,a,n) for(int i=a;i<n;i++) #define rrep(i,a,n) for(int i=(a-1);i>=n;i--) ll gcd(ll a,ll b){ if(b==0)return a; return gcd(b,a%b); } ll lcm(ll ...
a.cc: In function 'int main()': a.cc:31:44: error: too many initializers for 'll [12]' {aka 'long long int [12]'} 31 | ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; | ^
s700066037
p03711
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<map> #include<set> #include<utility> using namespace std; typedef long long ll; #define rep(i,a,n) for(int i=a;i<n;i++) #define rrep(i,a,n) for(int i=(a-1);i>=n;i--) ll gcd(ll a,ll b){ if(b==0)return a; return gcd(b,a%b); } ll lcm(ll ...
a.cc: In function 'int main()': a.cc:31:44: error: too many initializers for 'll [12]' {aka 'long long int [12]'} 31 | ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1} | ^ a.cc:33:14: error: 'a' was not declared in this scope 33 | cin>>a>>b; | ...
s989811940
p03711
C++
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(), y = sc.nextInt(); int[] group1 = {1,3,5,7,8,10,12}; int[] group2 = {4,6,9,11}; if(checkSameGroup(x, y, group1)) { System.out.println("Yes"); }else if(checkSa...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s687633204
p03711
C++
#include <stdio.h> int main (){ int a,b; scanf("%d%d",&a,&b); if (a==1){ if (b==3||5||7||8||10||12)printf("Yes"); } printf("No"); else if(a==2){ printf("No"); } else if (a==3){ if (b==5||7||8||10||12){ printf("Yes"); }else printf("No"); else if (a==4){ if(b==6||9||11){ printf("Yes");} else printf("No"); else if (a==5)...
a.cc: In function 'int main()': a.cc:9:1: error: 'else' without a previous 'if' 9 | else if(a==2){ | ^~~~ a.cc:16:1: error: expected '}' before 'else' 16 | else if (a==4){ | ^~~~ a.cc:12:15: note: to match this '{' 12 | else if (a==3){ | ^ a.cc:20:1: error: expected '}' before ...
s969655874
p03711
C++
#include <stdio.h> int main (){ int a,b; scanf("%d%d",&a,&b); if (a==1){ if (b==3||5||7||8||10||12){ printf("Yes"); } else printf("No"); if(a==2){ printf("No"); } else printf("No"); else if (a==3){ if (b==5||7||8||10||12){ printf("Yes"); else printf("No"); else if (a==4){ if(b==6||9||11){ printf("Yes"); else printf("No...
a.cc: In function 'int main()': a.cc:14:1: error: expected '}' before 'else' 14 | else if (a==3){ | ^~~~ a.cc:5:10: note: to match this '{' 5 | if (a==1){ | ^ a.cc:17:1: error: expected '}' before 'else' 17 | else printf("No"); | ^~~~ a.cc:15:24: note: to match this '{' 15 | if (...
s489809093
p03711
C++
#include <stdio.h> int main (){ int a,b; scanf("%d%d",&a,&b); if (a==1){ if (b==3||5||7||8||10||12){ printf("Yes"); } else printf("No"); if(a==2){ printf("No"); } else printf("No"); else if (a==3){ if (b==5||7||8||10||12){ printf("Yes"); }else printf("No"); else if (a==4){ if(b==6||9||11){ printf("Yes"); }else printf("...
a.cc: In function 'int main()': a.cc:14:1: error: expected '}' before 'else' 14 | else if (a==3){ | ^~~~ a.cc:5:10: note: to match this '{' 5 | if (a==1){ | ^ a.cc:18:1: error: expected '}' before 'else' 18 | else if (a==4){ | ^~~~ a.cc:14:15: note: to match this '{' 14 | else if...
s815066312
p03711
C++
[x,y]=[int(i) for i in input().split()] a=[1,3,5,7,8,10,12] b=[4,6,9,11] c=[2] if (a.count(x)==1 and a.count(y)==1) or (b.count(x)==1 and b.count(y)==1): print("Yes") else: print("No")
a.cc:1:1: error: expected unqualified-id before '[' token 1 | [x,y]=[int(i) for i in input().split()] | ^
s116324430
p03711
C++
#include <iostream> #include <string> using namespace std; int main(void){ string n,m,e,t,i,j; string a,b,c; cin>>n>>e; if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){ if(e==1||e==3||e==5||e==7||e==8||e==10||e==12){ cout<<"Yes"<<endl; } }else if(n==2){ cout<<"No"<...
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 8 | if(n==1||n==3||n==5||n==7||n==8||n==10||n==12){ | ~^~~ | | | | | int | std::string {aka std::_...
s325896492
p03711
C
#include <iostream> #include <vector> int belong( std::vector<int> g, int a, int b ) { int cnt = 0; for( int i = 0; g[ i ] != 0; i++ ) { if( g[ i ] == a or g[ i ] == b ) { cnt += 1; } } return cnt; } int main() { std::vector<int> g[] = { { 1, 3, 5, 7, 8, 10, 12, 0 }, { 4, 6, 9, 11, 0 }, { 2, 0 }, }...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s032149146
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x,y; cin >> x >> y; if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl; else if((x==4||x==6||x==9||x==11)and(y==4||y==6||y==9||y==11))cout << "Yes" << endl; else cout << "No" << endl; ...
a.cc: In function 'int main()': a.cc:6:42: error: lvalue required as left operand of assignment 6 | if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ a.cc:6:88: error: lvalue required as left ope...
s248859048
p03711
C++
#include <bits/stdc++.h> #include <typeinfo> #include <cxxabi.h> #ifdef LOCAL #include "dbgtoki.hpp" #define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i) DbgTimer D_t; #define TSTART() D_t.start() #define TSTOP() D_t.stop() #else #define DUMP(i) #define TSTART() #define TS...
a.cc: In constructor 'UnionFindTree::UnionFindTree(int)': a.cc:40:16: error: 'n' was not declared in this scope; did you mean 'yn'? 40 | num.assign(n,1); | ^ | yn a.cc: In function 'int main()': a.cc:115:8: error: 'same' was not declared in this scope 115 | if(same...
s770262299
p03711
C++
#include <cstdio> using namespace std; int main(void){ int gr={0,1,2,1,3,1,3,1,1,3,1,3,1}; int x,y; cin >> x >> y; puts(gr[x]-gr[y]?"No":"Yes"); return 0; }
a.cc: In function 'int main()': a.cc:5:7: error: scalar object 'gr' requires one element in initializer 5 | int gr={0,1,2,1,3,1,3,1,1,3,1,3,1}; | ^~ a.cc:8:3: error: 'cin' was not declared in this scope 8 | cin >> x >> y; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'...
s039110306
p03711
C
#include <stdio.h> int main(){ int a=2; int b[4]; b[0]=4; b[1]=6; b[2]=9; b[3]=11; int x,y; scanf("%d%d",&x,&y); switch (x){ case 2 :x=13;break; case 4 :x=14;break; case 6 :x=14;break; case 9 :x=14;break; case 11:x=14;break; ...
main.c: In function 'main': main.c:40:9: error: expected declaration or statement at end of input 40 | puts("No"); | ^~~~
s178684994
p03711
C++
#include <stdio.h> int main(){ int a=2; int b[4]; b[0]=4; b[1]=6; b[2]=9; b[3]=11; int x,y; scanf("%d%d",&x,&y); switch (x){ case 2 :x=13;break; case 4 :x=14;break; case 6 :x=14;break; case 9 :x=14;break; case 11:x=14;break; ...
a.cc: In function 'int main()': a.cc:40:20: error: expected '}' at end of input 40 | puts("No"); | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s418254685
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x,y; int a(20)={0,1,3,1,2,1,2,1,1,2,1,2,1}; cin >> x >>y; if (a[x]==a[y])cout << "Yes" <<endl; else cout << "No" <<endl; }
a.cc: In function 'int main()': a.cc:6:18: error: expected ',' or ';' before '=' token 6 | int a(20)={0,1,3,1,2,1,2,1,1,2,1,2,1}; | ^ a.cc:8:14: error: invalid types 'int[int]' for array subscript 8 | if (a[x]==a[y])cout << "Yes" <<endl; | ^ a.cc:8:20: e...
s266846455
p03711
C++
include <iostream> using namespace std; int main() { int a[] = {0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}; int x, y; cin >> x >> y; if (a[x] == a[y]) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin >> x >> y; | ^~~ a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout << "Yes" << endl; | ^...
s771353722
p03711
C++
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cmath> #include <numeric> // container library #include <deque> #include <list> #include <map> #include <queue> #include <set> #include <...
a.cc: In function 'int main()': a.cc:127:3: error: expected ',' or ';' before 'int' 127 | int x, y; | ^~~ a.cc:128:10: error: 'x' was not declared in this scope 128 | cin >> x >> y; | ^ a.cc:128:15: error: 'y' was not declared in this scope 128 | cin >> x >> y; | ^...
s461295877
p03711
C++
#include <bits/stdc++.h> #define o(output) cout << output << endl using namespace std; string s; int a,b,c,d; int l[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; char A,B; priority_queue<int,vector<int>,greater<int> >small; int main(){ cin >> a >> b; if(l[a]==l[b])o("Yes"); else o("No"); }
a.cc:9:37: error: too many initializers for 'int [12]' 9 | int l[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}; | ^
s001563495
p03711
C++
#include <bits/stdc++.h> using namespace std; int main{ int a,b; cin>>a>>b; int x,y; if(a==2) x=1; else if(a==4||a==6||a==9||a==11) x=2; else x=3; if(b==2) y=1; else if(b==4||b==6||b==9||b==11) y=2; else y=3; if(x==y){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:3: error: expected primary-expression before 'int' 4 | int a,b; | ^~~ a.cc:4:3: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:3: error:...
s142591619
p03711
C++
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <functional> #include <queue> #include <set> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep1(i,n) for(int i=1;i<=(int)(n);i++) using namespace std; typedef long long int lli; int main(){ int x,y; cin>>x>>y; int gx=1,gy...
a.cc: In function 'int main()': a.cc:18:40: error: expected ';' before 'if' 18 | if(x==4||x==6||x==9||x==11)gx=2 | ^ | ; 19 | if(x==2) gx=3; | ~~ a.cc:20:40: error:...
s896707354
p03711
C++
use std::env; use std::io::*; use std::str::*; fn read<T: FromStr>() -> T { let stdin = stdin(); let s = stdin.bytes().map(|c| c.unwrap() as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect::<String>(); s.parse::<T>().ok().unwrap() } fn main() {...
a.cc:1:1: error: 'use' does not name a type 1 | use std::env; | ^~~ a.cc:2:1: error: 'use' does not name a type 2 | use std::io::*; | ^~~ a.cc:3:1: error: 'use' does not name a type 3 | use std::str::*; | ^~~ a.cc:5:1: error: 'fn' does not name a type 5 | fn read<T: FromStr>() -> T { ...
s695184790
p03711
C
#include <stdio.h> int main(){   int a[20];   a[2]=2;   a[4]=a[6]=a[9]=a[11]=3;   int x,y;   scanf("%d %d",&x,&y);      printf(a[x]==a[y]?"Yes":"No");   return 0; }
main.c: In function 'main': main.c:3:1: error: stray '\302' in program 3 | <U+00A0> int a[20]; | ^~~~~~~~ main.c:4:1: error: stray '\302' in program 4 | <U+00A0> a[2]=2; | ^~~~~~~~ main.c:5:1: error: stray '\302' in program 5 | <U+00A0> a[4]=a[6]=a[9]=a[11]=3; | ^~~~~~~~ main.c:6:1: error:...
s686308439
p03711
C
#include<stdio.h> int main(){ int a[20]; a[2]=2; a[4]=a[6]=a[9]=a[11]=3; int x,y; scanf("%d%d",&x,&y); printf(a[x]==a[y]?"Yes":"No"); return 0; }
main.c: In function 'main': main.c:10:2: error: '\U0000ff5d' undeclared (first use in this function) 10 | } | ^~ main.c:10:2: note: each undeclared identifier is reported only once for each function it appears in main.c:10:4: error: expected ';' at end of input 10 | } | ^ | ; main.c:10:...
s007936077
p03711
C
#include<stdio.h> int main(){ int a[20]; a[2]=2; a[4]=a[6]=a[9]=a[11]=3; int x,y; scanf("%d%d",&x,&y); printf(a[x]==a[y]?"Yes","No"); return 0; }
main.c: In function 'main': main.c:8:31: error: expected ':' before ')' token 8 | printf(a[x]==a[y]?"Yes","No"); | ^ | : main.c:10:2: error: '\U0000ff5d' undeclared (first use in this function) 10 | } | ^~ main.c:10:2: note: each u...
s869722440
p03711
C++
#include<iostream> #include<set> using namespace std; int main(){ int x,y; set<int> st{1,3,5,7,8,10,12} cin >> x >> y; if(x==2&&y==2) cout << "Yes\n"; else if(x==2||y==2) cout << "No\n"; else if(st.find(x)==st.end()&&st.find(y)==st.end()) cout << "Yes\n"; else if(st.find(x)!=st.end()&&s...
a.cc: In function 'int main()': a.cc:7:5: error: expected ',' or ';' before 'cin' 7 | cin >> x >> y; | ^~~
s926229202
p03711
C++
#include <iostream> #include <string> #include <algorithm> #include <math.h> using namespace std; int a[10] = { 1,3,5,7,8,10,12 }; int b[10] = { 4,6,9,11 }; int c[10] = { 2 }; int main() { int x, y; cin >> x >> y; bool one = false; bool two = false; for (int i = 0; i < 10; i++) { if (x == a[i])one = true; if...
a.cc: In function 'int main()': a.cc:24:14: error: redeclaration of 'bool one' 24 | bool one = false; | ^~~ a.cc:14:14: note: 'bool one' previously declared here 14 | bool one = false; | ^~~ a.cc:25:14: error: redeclaration of 'bool two' 25 | bool t...
s730969265
p03711
C++
#include <iostream> using namespace std; int main(){ int x[2],y[i],i; for(i=0;i<2;i++){ cin >> x[i]; if(x[i]==2) y[i]=0; if(x[i]==4||x[i]==6||x[i]==9||x[i]==11) y[i]=1; else y[i]=2; } if(y[0]==y[1]) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:5:20: error: 'i' was not declared in this scope 5 | int x[2],y[i],i; | ^ a.cc:8:29: error: 'y' was not declared in this scope 8 | if(x[i]==2) y[i]=0; | ^ a.cc:9:57: error: 'y' was not declared...
s260485071
p03711
C++
#include "bits/stdc++.h" using namespace std; typedef long long ll; #define INF (1<<30) #define INFLL (1ll<<60) typedef pair<int, int> P; typedef pair<ll, P> E; #define cost first #define from second.first #define to second.second #define MOD (1000000007ll) #define l_ength size void mul_mod(ll& a, ll b){ a *= b; a %...
a.cc: In function 'int main()': a.cc:22:30: error: expected ')' before ':' token 22 | cout << ((g[x]==g[y]):"Yes":"No") << endl; | ~ ^ | )
s534072285
p03711
C++
#include <iostream> #include <vector> using namespace std; int main(void){ int a, b; cin >> a >> b; int root[13] = {0, 1, 2, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 1}; if (root[a] == root[b]) cout << "Yes"; else cout << "No"; }
a.cc: In function 'int main()': a.cc:12:65: error: too many initializers for 'int [13]' 12 | int root[13] = {0, 1, 2, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 1}; | ^
s823739279
p03711
C++
#include<iostream> #include<vector> int main() { std::vector<std::vector<int>> vv{ {1,3,5,7,8,10,12},{4,6,9,11},{2} }; int x, y,count=0; bool flag=false; std::cin >> x >> y; for (int i = 0; i < 2; i++) { auto itr_x = std::find(vv[i].begin(), vv[i].end(), x); auto itr_y = std::find(vv[i].begin(), vv[i].end...
a.cc: In function 'int main()': a.cc:12:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)' 12 | auto itr_x = std::find(vv[i].begin(), vv[i].end(), x); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file in...
s681832211
p03711
C++
#include<iostream> #include<vector> int main() { std::vector<std::vector<int>> vv{ {1,3,5,7,8,10,12},{4,6,9,11},{2} }; int x, y,count=0; bool flag=false; std::cin >> x >> y; for (int i = 0; i < 2; i++) { auto itr_x = std::find(vv[i].begin(), vv[i].end(), x); auto itr_y = std::find(vv[i].begin(), vv[i].end...
a.cc: In function 'int main()': a.cc:12:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)' 12 | auto itr_x = std::find(vv[i].begin(), vv[i].end(), x); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file in...
s608512715
p03711
C++
#include <iostream> using namespace std; int main(){ int x,y; cin >> x >> y; if (x == 1 or 3 or 5 or 7 or 8 or 10 or 12 ){ if (y == 1 or 3 or 5 or 7 or 8 or 10 or 12){ cout << "G1-Yes" << endl; } }else{ if (x == 4 or 6 or 9 or 11){ if (y == 4 or 6 or 9 or 11){ cout << "G2-Yes" <...
a.cc:29:1: error: expected declaration before '}' token 29 | } | ^
s535995206
p03711
C++
#include<iostream> #include<math.h> #include<string> #include<algorithm> using namespace std; int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}; int x,y; cin>>x>>y; (a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:41: error: expected ':' before ';' token 11 | (a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl; | ^ | : a.cc:11:41: error: expected primary-expression before ';' token a.cc:...
s716331535
p03711
C++
#include<iostream> #include<math.h> #include<string> #include<algorithm> using namespace std; int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}; int x,y; cin>>x>>y; a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:39: error: expected ':' before ';' token 11 | a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl; | ^ | : a.cc:11:39: error: expected primary-expression before ';' token a.cc:11:41:...
s882733840
p03711
C++
#include<iostream> #include<math.h> #include<string> #include<algorithm> using namespace std; int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin>>x>>y; if(a[x]==a[y])cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: expected ',' or ';' before 'int' 9 | int x,y; | ^~~ a.cc:10:14: error: 'x' was not declared in this scope 10 | cin>>x>>y; | ^ a.cc:10:17: error: 'y' was not declared in this scope 10 | cin>>x>>y; | ...
s845551174
p03711
C++
#include<iostream> #include<math.h> #include<string> #include<algorithm> using namespace std; int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin>>x>>y; a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: expected ',' or ';' before 'int' 9 | int x,y; | ^~~ a.cc:10:14: error: 'x' was not declared in this scope 10 | cin>>x>>y; | ^ a.cc:10:17: error: 'y' was not declared in this scope 10 | cin>>x>>y; | ...
s494866926
p03711
C++
#include<iostream> #include<math.h> #include<string> #include<algorithm> using namespace std; int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin>>x>>y; a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:9: error: expected ',' or ';' before 'int' 9 | int x,y; | ^~~ a.cc:10:14: error: 'x' was not declared in this scope 10 | cin>>x>>y; | ^ a.cc:10:17: error: 'y' was not declared in this scope 10 | cin>>x>>y; | ...
s798452112
p03711
C++
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctime> #include <iostream> #include <sstream> #include <functional> #include <map> #include <string> #include <cstring> #include <vector> #include <queue> #include <stack> #include <deque> #include <set> #include <li...
a.cc: In function 'int main()': a.cc:43:3: error: expected ',' or ';' before 'int' 43 | int x, y; | ^~~ a.cc:44:8: error: 'x' was not declared in this scope 44 | cin>>x>>y; | ^ a.cc:44:11: error: 'y' was not declared in this scope 44 | cin>>x>>y; | ^
s391481436
p03711
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int a[2]; cin >> a[0] >> a[1]; for(i = 0; i < 2; i++) { if((a[i]==1)||(a[i]==3)||(a[i]==5)||(a[i]==7)||(a[i]==8)||(a[i]==10)||(a[i]==12)) { a[i] == 100; } else if((a[i]==4)||(a[i]...
a.cc: In function 'int main()': a.cc:12:9: error: 'i' was not declared in this scope 12 | for(i = 0; i < 2; i++) { | ^
s736200786
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a[7] = {1,3,5,7,8,10,12}; int b[4] = {4,6,9,11}; int c,x,y; cin >> x >> y; c=2; for (int i=0;i<=6;i++){ for(int j=0;j<=6;j++){ if((x==a[i]&&y==a[j])||(x==a[i]&&y==b[j])||(x==c&&y==c)){ cout << "Yes" << endl; return 0; }else{ cout <<...
a.cc:20:9: error: expected unqualified-id before 'return' 20 | return 0; | ^~~~~~ a.cc:21:1: error: expected declaration before '}' token 21 | } | ^
s261992787
p03711
C++
#include<iostream> using namespace std; int main(void) { vector<int> m(13); m[1] = m[3] = m[5] = m[7] = m[8] = m[10] = m[12] = 31; m[4] = m[6] = m[9] = m[11] = 30; m[2] = 28; int a, b; cin >> a >> b; if (m[a] == m[b]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:1: error: 'vector' was not declared in this scope 5 | vector<int> m(13); | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include<iostream> +++ |+#include <vector> 2 | using name...
s527040236
p03711
C++
#include <bits/stdc++.h> using namespace std; int main(){ int H,W,max,min,ans; cin >> N >> W; if(N*W%3==0)ans=0; cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'N' was not declared in this scope 6 | cin >> N >> W; | ^
s491145234
p03711
C++
#include <iostream>   using namespace std;     int main() { int month[12];   month[0] = 0, month[1] = 1, month[2] = 0, month[3] = 2, month[4] = 0, month[5] = 2, month[6] = 0, month[7] = 0, month[8] = 2, month[9] = 0, month[10] = 2, month[11] = 0;   int x, y; cin >> x >> y; if (month[x-1] == month[y-1]) cout << "Ye...
a.cc:2:1: error: extended character   is not valid in an identifier 2 |   | ^ a.cc:4:1: error: extended character   is not valid in an identifier 4 |   | ^ a.cc:5:1: error: extended character   is not valid in an identifier 5 |   | ^ a.cc:9:1: error: extended character   is not valid in an...
s854389574
p03711
C++
group = [0,1,3,1,2,1,2,1,1,2,1,2,1] x, y = map(int, input().split()) print("Yes" if group[x] == group[y] else "No")
a.cc:1:1: error: 'group' does not name a type 1 | group = [0,1,3,1,2,1,2,1,1,2,1,2,1] | ^~~~~
s259177252
p03711
C
#include <stdio.h> int main(){ int a[6]={1,3,5,7,8,10,12}; int b[4]={4,6,9,11}; int c=2; int x,y,flagx=0,flagy=0; scanf("%d %d",&x,&y); for("int i=0;i<6;i++){ if(a[i]==x)flagx=1; if(a[i]==y)flagy=1; } for("int i=0;i<4;i++){ if(b[i]==x)flagx=2; if(b[i]==y)flagy=2; } if(flagx==flagy){printf("Yes");} else{printf("No"); ...
main.c: In function 'main': main.c:4:24: warning: excess elements in array initializer 4 | int a[6]={1,3,5,7,8,10,12}; | ^~ main.c:4:24: note: (near initialization for 'a') main.c:9:5: warning: missing terminating " character 9 | for("int i=0;i<6;i++){ | ^ main.c:9:5: erro...
s296833548
p03711
C
#include <stdiio.h> int main(){ int a[6]={1,3,5,7,8,10,12}; int b[4]={4,6,9,11}; int c=2; int x,y,flagx=0,flagy=0; scanf("%d %d",&x,&y); for("int i=0;i<6;i++){ if(a[i]==x)flagx=1; if(a[i]==y)flagy=1; } for("int i=0;i<4;i++){ if(b[i]==x)flagx=2; if(b[i]==y)flagy=2; } if(flagx==flagy){printf("Yes");} else{printf("No"); ...
main.c:1:10: fatal error: stdiio.h: No such file or directory 1 | #include <stdiio.h> | ^~~~~~~~~~ compilation terminated.
s046075107
p03711
C++
#include<iostream> int main(){ int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};//先にデータ入れ int x,y; cin>>x>>y; cout<<(a[x]==a[y]?"Yes":"No")<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>x>>y; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to st...
s655955245
p03711
C++
#include <bits/stdc++.h>g++ using namespace std; int main(){ int x,y,a=0,b=0,c=0; scanf("%d %d",&x,&y); if(x==4 || x==6 || x==9 || x==11){ a = a + 1; } else if(x==2){ b = b + 1; } else{ c = c + 1; } if(a==2 || b==2 || c==2){ printf("Yes"); } else{ printf("No"); } }
a.cc:1:26: warning: extra tokens at end of #include directive 1 | #include <bits/stdc++.h>g++ | ^~ a.cc:1:10: fatal error: bits/stdc++.h>: No such file or directory 1 | #include <bits/stdc++.h>g++ | ^~~~~~~~~~~~~~~~ compilation terminated.
s603052826
p03711
C++
#include <iostream> #include <vector> using namespace std; int32_t main() { vector<uint32_t> group1{1,3,4,5,7,8,10,12}; vector<uint32_t> group2{4,6,9,11}; vector<uint32_t> group3{2}; uint32_t x, y; cin >> x >> y; uint32_t group_x, group_y; for(uint32_t i = 0; i < group1.size();i++){ if(x == group1...
a.cc: In function 'int32_t main()': a.cc:8:10: error: 'uint32_t' was not declared in this scope 8 | vector<uint32_t> group1{1,3,4,5,7,8,10,12}; | ^~~~~~~~ a.cc:3:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 2 | #include <vector> ...
s385796393
p03711
C++
#include <iostream> #include <vector> using namespace std; int32_t main() { vector<uint32_t> group1{1,3,4,5,7,8,10,12}; vecror<uint32_t> group2{4,6,9,11}; vector<uint32_t> group3{2}; uint32_t x, y; cin >> x >> y; uint32_t group_x, group_y; for(uint32_t i = 0; i < group1.size();i++){ if(x == group1...
a.cc:32:13: warning: multi-character character constant [-Wmultichar] 32 | cout << 'Yes' << endl; | ^~~~~ a.cc:34:13: warning: multi-character character constant [-Wmultichar] 34 | cout << 'No' << endl; | ^~~~ a.cc: In function 'int32_t main()': a.cc:8:10: error: 'uint3...
s139442421
p03711
C++
#include <bits/stdc++.h> using namespace std; int m(int a1, int a2, int a3) { if (a1 > a2) { swap(a1, a2); } if (a2 > a3) { swap(a2, a3); } if (a1 > a2) { swap(a1, a2); } return a3-a1; } int f(int H, int W) { int r = 10000000; int k = H / 3; if (k != 0) { r = min(r, m(k * W, (H - k)*(W / 2), (H - k)*(...
a.cc: In function 'int main()': a.cc:38:12: error: expected '}' at end of input 38 | return 0; | ^ a.cc:24:11: note: to match this '{' 24 | int main(){ | ^
s505405087
p03711
Java
import java.util.Scanner; import java.util.Random; import java.util.Arrays; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a = {3, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0} int x = sc.nextInt(); int y = sc.nextInt(); if (a[x] == a[y]) { System.out.pr...
Main.java:9: error: ';' expected int[] a = {3, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0} ^ 1 error
s717037798
p03711
C++
#include <iostream> using namespace std; int main() { int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1}; // 配列の添字は 0 から始まるので,a [0] は 0 にしている. int x , y ; cin >> x >> y ; cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ; return 0;
a.cc: In function 'int main()': a.cc:12:18: error: expected '}' at end of input 12 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s464834571
p03711
C++
int main () { int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1}; // 配列の添字は 0 から始まるので,a [0] は 0 にしている. int x , y ; cin >> x >> y ; cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ; }
a.cc: In function 'int main()': a.cc:4:13: error: 'cin' was not declared in this scope 4 | int x , y ; cin >> x >> y ; | ^~~ a.cc:5:1: error: 'cout' was not declared in this scope 5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ; | ^~~~ a.cc:5:53: error: 'endl' was not decla...
s713014932
p03711
C++
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); //(0)~12までの数字をグループ化 int t[] = {0, 1,3,1,2,1,2,1,1,2,1,2,1}; //()内にif文のようなものを入れる System.out.println(t[x] == t[y] ? "Yes" : "No"); } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s804522570
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> s = { 4,6,9,11 }; int a, b; cin >> a >> b; cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl; }
a.cc:9:77: warning: missing terminating " character 9 | cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl; | ^ a.cc:9:77: error: missing terminating " character 9 | cout << ((a == 2 |...
s245709323
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> s = { 4,6,9,11 }; int a, b; cin >> a >> b; cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl; }
a.cc:9:78: warning: missing terminating " character 9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl; | ^ a.cc:9:78: error: missing terminating " character 9 | cout << ((a == 2 ...
s830624950
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> s = { 4,6,9,11 }; int a, b; cin >> a >> b; cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl; }
a.cc:9:79: warning: missing terminating " character 9 | cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl; | ^ a.cc:9:79: error: missing terminating " character 9 | cout << ((a == ...
s649739574
p03711
C++
#include <bits/stdc++.h> using namespace std; int main() { set<int> s = { 4,6,9,11 }; int a, b; cin >> a >> b; cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl; }
a.cc:9:77: warning: missing terminating " character 9 | cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl; | ^ a.cc:9:77: error: missing terminating " character 9 | cout << ((a == 2 || ...
s658115451
p03711
C++
#include <iostream> #include <string> char str[100][100]; using namespace std; typedef unsigned long long int biginteger; int main() { int h, w; cin >> h >> w; for (int i = 0; i < h; i++) { cin >> str[i]; } string hash; for (int i = 0; i < w + 2; i++) { hash += '#'; } cout << hash << endl; for (in...
a.cc: In function 'int main()': a.cc:34:18: error: expected '}' at end of input 34 | return 0; | ^ a.cc:11:1: note: to match this '{' 11 | { | ^
s863226263
p03711
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { int a, b, c; cin >> a >> b>>c; int a[13] = { 0,1,2,1,3,1,3,1,1,3,1,3,1 }; if (a[a] == a[b])cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:10:13: error: conflicting declaration 'int a [13]' 10 | int a[13] = { 0,1,2,1,3,1,3,1,1,3,1,3,1 }; | ^ a.cc:8:13: note: previous declaration as 'int a' 8 | int a, b, c; | ^ a.cc:11:14: error: invalid types 'int[int]' for arr...
s860954458
p03711
C++
#include <stdio.h> #include <iostream> using namespace std; int main(){ int x,y; cin>>x>>y; lf(x==4||x==6||x==9||x==11){ if(y==4||y==6||y==9||y==11){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } } if(x==1||x==3||x==5||x==7||x==8||x==10||x==12){ if(y==1||y==3||y==5||y==7||y==8||y==10||y==12){ cout<<"Yes"<<endl; }el...
a.cc: In function 'int main()': a.cc:8:1: error: 'lf' was not declared in this scope 8 | lf(x==4||x==6||x==9||x==11){ | ^~
s300731205
p03711
C++
import numpy as np #from scipy.interpolate import interpld from matplotlib import pyplot as plt %matplotlib inline import sys x, y = [int(i) for i in input().split()] list = [1,3,5,7,8,10,12,4,6,9,11,2,0] slice1 = list[0:7] slice2 = list[7:11] slice3 = list[11:12] if x in slice1 and y in slice1: print('Yes') elif ...
a.cc:2:2: error: invalid preprocessing directive #from 2 | #from scipy.interpolate import interpld | ^~~~ a.cc:13:11: warning: multi-character character constant [-Wmultichar] 13 | print('Yes') | ^~~~~ a.cc:15:12: warning: multi-character character constant [-Wmultichar] 15 | pr...
s407051619
p03711
C
#include <stdio.h> int main(void){ int x,y; scanf("%d %d".&x.&y); if(x==4||x==6||x==9||x==11)x=1; else if(x=2); else x=3; if(y==4||y==6||y==9||y==11)y=1; else if(y=2); else y=3; if(x==y)printf("Yes"); else printf("No"); return 0; }
main.c: In function 'main': main.c:6:19: error: expected identifier before '&' token 6 | scanf("%d %d".&x.&y); | ^
s986979576
p03711
C++
#include<iostream> using namespace std; int main(){ int x[13]={0,1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin>>x>>y; if(x[x]==x[y])cout<<"Yes"<<endl; else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:6:9: error: expected ',' or ';' before 'int' 6 | int x,y; | ^~~ a.cc:7:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [13]') 7 | cin>>x>>y; | ~~~^~~ | ...
s488154466
p03711
C++
#include<iostream> int main(){ int x[13]={0,1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin>>x>>y; if(x[x]==x[y])cout<<"Yes"<<endl; else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:5:9: error: expected ',' or ';' before 'int' 5 | int x,y; | ^~~ a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>x>>y; | ^~~ | std::cin In file included from a.cc:1: /usr/includ...
s640538763
p03711
C++
#include<iostream> int main(){ int x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1} int x,y; cin>>x>>y; if(x[x]==x[y])cout<<"Yes"<<endl; else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:3:45: error: too many initializers for 'int [12]' 3 | int x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1} | ^ a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>x>>y; | ^~...
s066846934
p03711
C++
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); String[] number = line.split(" "); in...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.BufferedReader; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.io.InputStreamReader; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available wit...
s203617161
p03711
C++
x,y = map(int,input().split()) a = [1,3,5,7,8,10,12] b = [4,6,9,11] if (x in a and y in a) or (x in b and y in b): print('Yes') else: print('No')
a.cc:5:15: warning: multi-character character constant [-Wmultichar] 5 | print('Yes') | ^~~~~ a.cc:7:15: warning: multi-character character constant [-Wmultichar] 7 | print('No') | ^~~~ a.cc:1:1: error: 'x' does not name a type 1 | x,y = map(int,input(...
s997717542
p03711
C++
int main() { int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; // 配列の添字は 0 から始まるので,a[0] は 0 にしている. int x, y; cin >> x >> y; cout << (a[x] == a[y] ? "Yes" : "No") << endl; }
a.cc: In function 'int main()': a.cc:3:11: error: 'cin' was not declared in this scope 3 | int x, y; cin >> x >> y; | ^~~ a.cc:4:1: error: 'cout' was not declared in this scope 4 | cout << (a[x] == a[y] ? "Yes" : "No") << endl; | ^~~~ a.cc:4:42: error: 'endl' was not declared in this scope...
s080063699
p03711
C++
let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |] let solve a b = if g.(a) == g.(b) then "Yes" else "No" let () = Printf.printf "%s\n" (Scanf.scanf "%d %d" solve)
a.cc:1:1: error: 'let' does not name a type 1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |] | ^~~ a.cc:1:15: error: expected unqualified-id before numeric constant 1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |] | ^ a.cc:1:18: error: expected unqualified-id before numer...
s337974424
p03711
C++
(define L (list 0 1 3 1 2 1 2 1 1 2 1 2 1)) (define x (read)) (define y (read)) (define (solve x y) (cond [(= (list-ref L x) (list-ref L y)) "Yes"] [else "No"])) (display (solve x y)) (newline)
a.cc:1:8: error: expected ')' before 'L' 1 | (define L (list 0 1 3 1 2 1 2 1 1 2 1 2 1)) | ~ ^~ | )
s746836126
p03711
Java
import java.util.*; import java.lang.*; public class Main { int group(int x) { switch (x) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 0; case 4: case 6: case 9: case 11: return 1; case 2: return 2; default: return -1; } } public int...
Main.java:34: error: missing return statement } ^ 1 error
s311089812
p03711
Java
import java.util.*; import java.lang.*; public class Main { int group(int x) { switch (x) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 0: case 4: case 6: case 9: case 11: return 1: case 2: return 2: default: return -1: } } public int...
Main.java:15: error: ';' expected return 0: ^ Main.java:20: error: ';' expected return 1: ^ Main.java:22: error: ';' expected return 2: ^ Main.java:24: error: ';' expected return -1: ^ 4 errors
s261041402
p03711
C++
// AtCoderSolution.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (x == 2 || y == 2) { cout << "No"; } else if (x == 4 || x == 6 || x == 9) { if (y == 6 || y == 9 || y == 11) { cout << "Yes"; } else { c...
a.cc:3:10: fatal error: stdafx.h: No such file or directory 3 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s621775825
p03711
C++
#include <iostream.h> using namespace std; int main() { int x,y; cin >> x >>y; if(x==2||y==2){ cout << "No"; }else if(x==4||x==6||x==9){ if(y==6||y==9||y==11){ cout << true; }else{ cout << false; } }else{ if(y==6||y==9||y==11){ ...
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s860881206
p03711
Java
public class atcoder { int groupA[] = {1, 3, 5, 7, 8, 10, 12 }; int groupB[] ={4,6,9,11}; grouop = new int [0]; grpupC[0] = 2; if(x == y){ System.out.println("Yes"); }else{ System.out.println("No"); } }
Main.java:4: error: <identifier> expected grouop = new int [0]; ^ Main.java:5: error: ']' expected grpupC[0] = 2; ^ Main.java:7: error: illegal start of type if(x == y){ ^ Main.java:7: error: <identifier> expected if(x == y){ ^ Main.java:7: error: <identifier> expected if(x == y){ ...
s139610771
p03711
Java
import java.util.Scanner; public class Main { public static void main(String[] args)4 { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0}; if (a[x] == a[y]) { System.out.pri...
Main.java:3: error: ';' expected { public static void main(String[] args)4 ^ 1 error
s507480948
p03711
Java
import java.util.Scanner; public class Algorism { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0}; if (a[x] == a[y]) { System.out....
Main.java:2: error: class Algorism is public, should be declared in a file named Algorism.java public class Algorism ^ 1 error
s251691850
p03711
Java
import java.util.Scanner; public class Algorism { public static void main(String[] args)4 { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0}; if (a[x] == a[y]) { System.out...
Main.java:3: error: ';' expected { public static void main(String[] args)4 ^ 1 error
s132385693
p03711
Java
import java.io.BufferedReader; import java.io.InputStreamReader; public class ContestMain { public static void main(String[] args) { int[] group = {0,1,3,1,2,1,2,1,1,2,1,2,1}; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try{ String s = new String(in.readLine()); String[] spS...
Main.java:4: error: class ContestMain is public, should be declared in a file named ContestMain.java public class ContestMain { ^ 1 error