submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s077201869
p04043
C
#include<stdio.h> int srx,sry; int main() { int i; for(i=1;i<=3;i++) {int t; scanf("%d",&t); if(t==5) srx++; else if(t==7) sry++;} if(srx==2&&ry==1) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:13:16: error: 'ry' undeclared (first use in this function); did you mean 'sry'? 13 | if(srx==2&&ry==1) | ^~ | sry main.c:13:16: note: each undeclared identifier is reported only once for each function it appears in
s691451609
p04043
Java
import com.sun.deploy.util.ArrayUtil; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> arr = new Ar...
Main.java:1: error: package com.sun.deploy.util does not exist import com.sun.deploy.util.ArrayUtil; ^ 1 error
s837234765
p04043
C++
#include<iostream> using namespace std; int main(){ int a[3],n5=2,n7=1; cin>>a[0]>>a[1]>>a[2]; for(int i=0;i<n;i++){ if(a[i]==5){ n5--; }else if(a[i]==7){ n7--; } } if(n5==0&&n7==0){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:6:23: error: 'n' was not declared in this scope 6 | for(int i=0;i<n;i++){ | ^
s161210953
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a=sc.nextInt() int b=sc.nextInt(); String c[] =new String[a]; for(int i=0;i<b;i++){ c[i]=sc.next(); } Arrays.sort(c); for(int i=0;i<b;i++){ System.out.print(c[i]); } } }
Main.java:5: error: ';' expected int a=sc.nextInt() ^ 1 error
s484461495
p04043
Java
import java.util.*; public class Main { static void bubbleSort(int[] arr) { int n = arr.length; int temp = 0; a for(int i=0; i < n; i++){ for(int j=1; j < (n-i); j++){ if(arr[j-1] > arr[j]){ //swap ele...
Main.java:6: error: not a statement int temp = 0; a ^ Main.java:6: error: ';' expected int temp = 0; a ^ 2 errors
s099811919
p04043
C++
#include<cstdio> using namespace std; int a,b,c; int t[8]; int main() { scanf("%d %d %d",&a,&b,&c); t[a]++; t[b]++; t[c]++; if(t[5]==2&&t[7]==1) puts("YES"); else puts("NO") }
a.cc: In function 'int main()': a.cc:14:14: error: expected ';' before '}' token 14 | puts("NO") | ^ | ; 15 | } | ~
s491511309
p04043
C++
#include<cstdio> using namespace std; int a,b,c; int t[8]; int main() { scanf("%d %d %d",&a,&b,&c); t[a]++; t[b]++; t[c]++; if(t[5]==2&&t[7]==1) puts('YES'); else puts('NO') }
a.cc:12:9: warning: multi-character character constant [-Wmultichar] 12 | puts('YES'); | ^~~~~ a.cc:14:9: warning: multi-character character constant [-Wmultichar] 14 | puts('NO') | ^~~~ a.cc: In function 'int main()': a.cc:12:9: error: invalid conversion from 'int' to 'const cha...
s907202822
p04043
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if((a == 5 && b == 5 && c == 7)||(a == 5 && b == 7 && c == 5)||(a == 7 && b == 5 && c == 5){ System.out.println("OK"); }e...
Main.java:8: error: ')' expected if((a == 5 && b == 5 && c == 7)||(a == 5 && b == 7 && c == 5)||(a == 7 && b == 5 && c == 5){ ^ 1 error
s729230494
p04043
C++
#include<bits/stdc++.h> using namespace std; int a,b,c,t; int main(){ cin>>a>>b>>c; if(a==7) t++; if(b==7) t++; if(c==7) t++; if(t7==1) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:9:8: error: 't7' was not declared in this scope; did you mean 'tm'? 9 | if(t7==1) cout<<"YES"; | ^~ | tm
s242036917
p04043
C++
function main(input){ const args = input.split(" "); if(args.indexOf("5")!==-1&&args.indexOf("7")!==-1&&args.indexOf("5")!==args.lastIndexOf("5")){ console.log("YES");}else{console.log("NO")} }
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'? 1 | function main(input){ | ^~~~~~~~ | union
s214870273
p04043
C++
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Sc...
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.IOException; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fm...
s496255146
p04043
C++
#include <iostream> #include <vector> using namespace std; int main(void){ // Your code here! vector<int> v(3); cin>>v[0]>>v[1]>>v[2]; sort(v.begin(),v.end()); if((v[2]==7&&v[0]==5)&&v[1]==5)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'? 8 | sort(v.begin(),v.end()); | ^~~~ | short
s783293149
p04043
C++
#include <iostream> using namespace std; int main(void) { int a[3], c5 = 0, c7 = 0; cin >> a[0] >> a[1] >> a[2]; for (int i : a) { if (i == 5) c5++; if (c == 7) c7++; } cout << (c5 == 2 && c7 == 1 ? "YES" : "NO") <<endl; }
a.cc: In function 'int main()': a.cc:10:9: error: 'c' was not declared in this scope 10 | if (c == 7) | ^
s777113881
p04043
C++
#include<bits/stdc++.h> using namespace std; string a[5]; int main(void) { cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+2,a+3); if(a[1]+a[3]+a[2]=="575")cout<<"YES";else cout<<"NO"; puts(""); return 0; }
In file included from /usr/include/c++/14/bits/stl_algobase.h:71, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::_...
s610950446
p04043
C++
#include<iostream> using namespace std; int a,b,c,sum5=0,sum7==0; int main() { cin>>a>>b>>c; if(a==5)sum5++; if(b==5)sum5++; if(c==5)sum5++; if(a==7)sum7++; if(b==7)sum7++; if(c==7)sum7++; if(sum5==2&&sum7==1)cout<<"YES"; else cout<<"NO"; }
a.cc:3:22: error: expected initializer before '==' token 3 | int a,b,c,sum5=0,sum7==0; | ^~ a.cc: In function 'int main()': a.cc:10:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'? 10 | if(a==7)sum7++; | ^~~~ | sum5 a.cc:11:...
s202117198
p04043
C++
#include<iostream> #include<iomanip> #include<cstdio> #include<cmath> using namespace std; int main(){ int a,b,c,ans1=0,ans2=0; cin>>a>>b>>c; if(a==5||b==5||c==5)ans1++; if(a==7||b==7||c==7)ans2++; if(ans1=2&&ans2=1)cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:11:14: error: lvalue required as left operand of assignment 11 | if(ans1=2&&ans2=1)cout<<"YES"; | ~^~~~~~
s443394475
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t7=0; scanf("%d%d%d",&a,&b,&c); if(a==7) t7++; if(b==7) t7++; if(c==7) t7++; if(t7==1) printf("YES"); else printf("NO"); }
a.cc:1:25: warning: extra tokens at end of #include directive 1 | #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t7=0; scanf("%d%d%d",&a,&b,&c); if(a==7) t7++; if(b==7) t7++; if(c==7) t7++; if(t7==1) printf("YES"); else printf("NO"); } | ^~~~~ /usr/bin/ld: /usr/lib/...
s836262316
p04043
C++
#include<iostream> #include<cstdio> using namespace std; int s1,s2,t; int main() { for(int i=1;i<=3;i++) { cin>>t if(t==5) { s1++; } else if(t==7) { s2++; } } if(s1==2&&s2==1) { cout<<"YES"; } else { cout<<"...
a.cc: In function 'int main()': a.cc:9:15: error: expected ';' before 'if' 9 | cin>>t | ^ | ; 10 | if(t==5) | ~~ a.cc:14:9: error: 'else' without a previous 'if' 14 | else if(t==7) | ^~~~
s189267896
p04043
C++
#include<iostream> int s1,s2,t; int main() { for(int i=1;i<=3;i++) { cin>>t if(t==5) { s1++; } else if(t==7) { s2++; } } if(s1==2&&s2==1) { cout<<"YES"; } else { cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin>>t | ^~~ | 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; ///...
s316067556
p04043
C++
#include<iostream> #include<string> #include<algorithm> #include<cstdlib> using namespace std; int main() { int a,b,c; cin >> a >> b <<c; if (a == 5 && b == 5) { if (c == 7) cout << "YES" << endl; else cout << "NO" << endl; } else if (a == 5 && b == 7) { if (c == 5)cout << ...
a.cc: In function 'int main()': a.cc:10:19: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 10 | cin >> a >> b <<c; | ~~~~~~~~~~~~~ ^~~ | | | | | int | ...
s289658556
p04043
C++
// Iroha and Haiku #include <iostream> using namespace std; int main(){ int p[3]; cin >> p[0] >> p[1] >> p[2]; sort(p, p+3); if (p[0] == 5 && p[1] == 5 && p[2] == 7) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'sort' was not declared in this scope; did you mean 'short'? 11 | sort(p, p+3); | ^~~~ | short
s780053333
p04043
C++
if (A == 5) { if (B == 5) { if (C == 7) { cout << "YES" << endl; return 0; } } }
a.cc:1:1: error: expected unqualified-id before 'if' 1 | if (A == 5) { | ^~
s060068296
p04043
Java
import java.util.Scanner; public class MainA { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int haikuarray[] = new int[3]; for(int i = 0; haikuarray.length > i; i++) { haikuarray[i] = sc.nextInt(); } sc.close(); boolean j = retHaiku(haikuarray); if(j == true) { S...
Main.java:3: error: class MainA is public, should be declared in a file named MainA.java public class MainA { ^ 1 error
s416712168
p04043
Java
public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int[] ret = new int[2]; for(int i = 0; i < 3; i++) { int tmp = sc.nextInt(); if(tmp == 5) ret[0]++; if(tmp == 7) ret[1]++; } System.out.println(ret[0] == 2 && ret[1] == 1 ? "YES" ...
Main.java:2: error: cannot find symbol private static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol private static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner locati...
s145265620
p04043
C
#include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include <iomanip> #include <algorithm> #include <string> #include <map> #include <queue> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a==5&&b==5&&c==7) { cout<<"YES"<<endl; } else if (a==5&&c==5&&b==7) { co...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s450782485
p04043
C++
#include <bits/stdc++.h> using namespace std; int a[2]; int i; int main(){ for(i=0;i<3;++i){ cin>>a[i]; } sort(a,a+3); if(a[0] == 5 && a[1] == 7 && a[2] = 7){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:11:29: error: lvalue required as left operand of assignment 11 | if(a[0] == 5 && a[1] == 7 && a[2] = 7){ | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
s440412826
p04043
Java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayDeque; import java.util.Deque; import java.util.Collection; import java.util.LinkedList; import java.util.Queue; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...
Main.java:25: error: variable f might not have been initialized if (f) { ^ 1 error
s889654130
p04043
Java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayDeque; import java.util.Deque; import java.util.Collection; import java.util.LinkedList; import java.util.Queue; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...
Main.java:19: error: cannot find symbol f = true; ^ symbol: variable f location: class Main Main.java:22: error: cannot find symbol f = true; ^ symbol: variable f location: class Main Main.java:24: error:...
s796609667
p04043
Java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayDeque; import java.util.Deque; import java.util.Collection; import java.util.LinkedList; import java.util.Queue; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...
Main.java:24: error: cannot find symbol if (f) { ^ symbol: variable f location: class Main 1 error
s038607040
p04043
C++
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayDeque; import java.util.Deque; import java.util.Collection; import java.util.LinkedList; import java.util.Queue; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...
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:2:1: error: 'import' does not name a type 2 | import java.util.Arrays; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-t...
s916968338
p04043
C++
str = gets ary = [] ary.push(str[0]) ary << str[2] ary << str[4] a = ["5", "5", "7"] b = ["5", "7", "5"] c = ["7", "5", "5"] if ary == a || ary == b || ary == c puts "Yes" else puts "No" end
a.cc:1:1: error: 'str' does not name a type 1 | str = gets | ^~~
s754243648
p04043
C++
include<iostream> #include<iomanip> #include<cstdio> #include<cmath> #include<string> #include<cstring> using namespace std; int main() { int a,b,d; cin>>a>>b>>d; if(1<=a,b,d&&a,b,d<=10) { if(a==5&&b==5&&d==7)cout<<"YES"<<endl; else if(a==5&&b==7&&d==5)cout<<"YES"<<endl; else if(a==7&&b==5&&d==5)cout<<"...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/iomanip:41, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | ...
s475522369
p04043
C++
include<iostream> #include<iomanip> #include<cstdio> #include<cmath> #include<string> #include<cstring> using namespace std; int main() { int a,b,d; cin>>a>>b>>d; if(1<=a,b,d&&a,b,d<=10) { if(a==5&&b==5&&d==7)cout<<"YES"<<endl; if(a==5&&b==7&&d==5)cout<<"YES"<<endl; if(a==7&&b==5&&d==5)cout<<"YES"<<endl...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/iomanip:41, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | ...
s664850307
p04043
C++
include<iostream> #include<iomanip> #include<cstdio> #include<cmath> #include<string> #include<cstring> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(1<=a,b,c&&a,b,c<=10) { if(a==5&&b==5&&c==7)cout<<"YES"<<endl; if(a==5&&b==7&&c==5)cout<<"YES"<<endl; if(a==7&&b==5&&c==5)cout<<"YES"<<endl...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/iomanip:41, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | ...
s719970937
p04043
C++
include<iostream> #include<iomanip> #include<cstdio> #include<cmath> #include<string> #include<cstring> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(1<=a,b,c&&a,b,c<=10) { if(a==5&&b==5&&c==7)cout<<"YES"<<endl; if(a==5&&b==7&&c==5)cout<<"YES"<<endl; if(a==7&&b==5&&c==7)cout<<"YES"<<endl...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/iomanip:41, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | ...
s213857249
p04043
C++
include<iostream> #include<iomanip> #include<cstdio> #include<cmath> #include<string> #include<cstring> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(1<=a,b,c&&a,b,c<=10) { if(a==5&&b==5&&c==7)cout<<"YES"<<endl; else if(a==5&&b==7&&c==5)cout<<"YES"<<endl; else if(a==7&&b==5&&c==7)cout<<"YES"<<...
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/iomanip:41, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68 | ...
s217770769
p04043
C++
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>y; if(a==5&&b==5&&y==7) cout<<"YES"<<endl; else if(a==5&&b==7&&y==5) cout<<"YES"<<endl; else if(a==7&&b==5&&y==5) cout<<"YES"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:20: error: 'y' was not declared in this scope 9 | cin>>a>>b>>y; | ^
s917228735
p04043
C++
#include <iostream> using namespace std; int main(){ int n5=0, n7=0; for (int i=0; i<3 ; ++i){ cin >> d; if(d==5) ++n5; if(d==7) ++n7; } if(n5==2 and n7==1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: 'd' was not declared in this scope 6 | cin >> d; | ^
s310987236
p04043
C++
#include <iostream> int main(){ int n5=0, n7=0; for (int i=0; i<3 ; ++i){ cin >> d; if(d==5) ++n5; if(d==7) ++n7; } if(n5==2 and n7==1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> d; | ^~~ | 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 ...
s117715261
p04043
C++
#include<bits/stdc++.h> int main() { int a[3]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[0]==5&&a[1]==5&&a[2]==7) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a[0]>>a[1]>>a[2]; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream...
s589977484
p04043
C++
#include <iostream> int main(){ int a,b,c; cin >> a >> b >> c; bool flag = false; if(a==5 && b==5 && c==7) flag = true; if(a==5 && b==7 && c==5) flag = true; if(a==7 && b==5 && c==5) flag = true; if(flag) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >> b >> c; | ^~~ | 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; ///< Lin...
s541887901
p04043
C++
#include<iostream> #include<algorithm> #include<vector> #include<string> using namespace std; typedef long long lng; #define UP(i,a,b) for(int i=(a); i<=(b); ++i) #define DOWN(i,b,a) for(int i=(b); i>=(a); --i) #define REP(i,n) UP(i,0,n-1) #define ALL(a) (a).begin(), (a).end() #define UNIQUE(a) a.erase(unique(ALL(a)), ...
a.cc: In function 'int main()': a.cc:28:8: error: 'a' was not declared in this scope 28 | if(a*b*c==175) cout << "Yes" << endl; | ^ a.cc:28:10: error: 'b' was not declared in this scope 28 | if(a*b*c==175) cout << "Yes" << endl; | ^ a.cc:28:12: error: 'c' was not declared in th...
s718150596
p04043
C++
#include <iostream> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if(A==5 && B=5 && C==7 || A==5 && B=7 && C==5 || A==7 && B=5 && C==5){ cout << "YES" << endl;} else{ cout << "NO" << endl;} }
a.cc: In function 'int main()': a.cc:7:49: error: lvalue required as left operand of assignment 7 | if(A==5 && B=5 && C==7 || A==5 && B=7 && C==5 || A==7 && B=5 && C==5){ | ~~~~~~~~~~^~~~~~~~~~~~
s425019309
p04043
C++
#include <iostream> #include <vector> using namespace std; int main() { vector<int> A(3); for(int i = 0; i < 3; i++) cin >> A[i]; sort(A.begin(), A.end()); if (A[0] == 5 && A[1] == 5 && A[2] == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'? 9 | sort(A.begin(), A.end()); | ^~~~ | short
s183946351
p04043
C++
#include <iostream> using namespace std; int main() { vector<int> A(3); for(int i = 0; i < 3; i++) cin >> A[i]; sort(A.begin(), A.end()); if (A[0] == 5 && A[1] == 5 && A[2] == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'vector' was not declared in this scope 6 | vector<int> A(3); | ^~~~~~ 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 | a.cc:...
s560877604
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a[3],b[3],c; b[0]=5; b[1]=5; b[2]=5; for(int i=0;i<3;i++){ cin>>a[1]: for(int j=0;j<3;j++){ if(a[i]==b[j]){ a[i]=0; b[j]=0; c++; } } } if(c==3) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:9:26: error: expected ';' before ':' token 9 | cin>>a[1]: | ^ | ; a.cc:10:29: error: 'j' was not declared in this scope 10 | for(int j=0;j<3;j++){ | ...
s864723535
p04043
C++
#include <string> #include <algorithm> #include <cmath> using namespace std; int main(){ int s[3]; for(int i=0;i<3;i++)cin>>s[i]; sort(s,s+3); if(s[0]==5&&s[1]==5&&s[2]==7)cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:29: error: 'cin' was not declared in this scope 7 | for(int i=0;i<3;i++)cin>>s[i]; | ^~~ a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 3 | #include <cmath> ...
s119080577
p04043
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==5&&b==7&&c==5){cout<<"Yes"<<endl;} else if(a==5&&b==5&&c==7){cout<<"Yes"<<endl;} else if(a==7&&b==5&&c==5){cout<<"Yes"<<endl;} else(cout<<"No"<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: expected ')' before ';' token 9 | else(cout<<"No"<<endl;} | ~ ^ | ) a.cc: At global scope: a.cc:10:1: error: expected unqualified-id before 'return' 10 | return 0; | ^~~~~~ a.cc:11:1: error: expected decla...
s066424948
p04043
C
#include<iostream> #include<algorithm> #include<vector> #include<stack> #include<queue> #include<string> using namespace std; int main(void) { int i; vector<int>n(3); for (i = 0; i < 3; i++) { cin >> n[i]; } sort(n.begin(), n.end()); if (n[0] == 5 && n[1] == 5 && n[2] == 7) { cout << "YES\n"; } else { ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s327163013
p04043
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class ARC058A { int a, b, c; public static void main(String args[]) { new ARC058A().run(); } void run() { FastReader sc = new FastReader(); a =...
Main.java:6: error: class ARC058A is public, should be declared in a file named ARC058A.java public class ARC058A { ^ 1 error
s961612313
p04043
C++
import System.IO quick [] = [] quick (x:xs)= let sma_eq = [a | a <- xs,a <= x] lar = [a | a <- xs,a > x] in quick sma_eq ++ [x] ++ quick lar main = do ss <- (map read . words) <$> getLine if (sum ss == 17) && (minimum ss == 5) && (maximum ss ==7) then putStrLn "YES" else ...
a.cc:1:1: error: 'import' does not name a type 1 | import System.IO | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s538066584
p04043
C++
#include <bits/stdc++.h> #include <iostream> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <complex> #include <vector> #include <list> #include <set> #include <queue> #include <stack> #include <map> #include <string> #include <algorithm> #if __cplusplus >= 201103 #include <numeric> #...
a.cc: In function 'int main()': a.cc:24:5: error: 'haiku' was not declared in this scope 24 | haiku = 0; | ^~~~~
s905316980
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[3]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[0]==5&&a[1]==5&&a[2]==7){ cout<<"YES"<<endl; else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:9:9: error: expected '}' before 'else' 9 | else{ | ^~~~ a.cc:7:38: note: to match this '{' 7 | if(a[0]==5&&a[1]==5&&a[2]==7){ | ^
s497407556
p04043
C++
p = list(map(int, input().split())) if sorted(p) == [5,5,7]: print("YES") else: print("NO")
a.cc:1:1: error: 'p' does not name a type 1 | p = list(map(int, input().split())) | ^
s483491060
p04043
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ int a,b,c; cin << a << b << c; if(a+b+c == 17) cout >> "YES" >> endl; else cout >> "NO" >> endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:9: note...
s498095811
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl; else cout << "NO" <<endl; }
a.cc: In function 'int main()': a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl; | ~^~~~~ a.cc:7:25: error: ISO C++ forbids compa...
s114071742
p04043
C++
a = sorted(map(int, input().split())) if a == [5, 5, 7]:
a.cc:1:1: error: 'a' does not name a type 1 | a = sorted(map(int, input().split())) | ^
s858307084
p04043
C++
count_5 st' = [ c | c <- st',c `elem` [ 5 ]] count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]] is_ok :: String -> Bool -- Implement code below is_ok s = ( 2 == length ( count_5 s ) ) && ( 1 == length ( count_7 s ) ) -- This is related to IO , you don ’ t have to completed it XD main = do s <- getLine putStrLn $ if is_ok s...
a.cc:1:11: warning: multi-character literal with 16 characters exceeds 'int' size of 4 bytes 1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]] | ^~~~~~~~~~~~~~~~~~ a.cc:1:32: error: stray '`' in program 1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]] | ^ a.cc...
s725442730
p04043
C++
#include<iostream> #include<vector> using namespace std; int main(){ int N,L; cin >> N >> L; vector<string> v; string ret; string s; for(int i = 0;i < N;i++){ cin >> s; v.push_back(s); } sort(v.begin(),v.end()); for(vector<string>::iterator it = v.begin() ;it != v.end();it++){...
a.cc: In function 'int main()': a.cc:23:5: error: 'sort' was not declared in this scope; did you mean 'short'? 23 | sort(v.begin(),v.end()); | ^~~~ | short
s394521382
p04043
C++
//問題URL // //解き方メモ // #include<iostream> using namespace std; int main(){ int abc[3]; int five_cnt=0; int seven_cnt=0; cin >> abc[0] >> abc[1] >> abc[2]; for(int i=0;i<3;i++){ if(a[i] == 5){ five_cnt++; } else if(a[i] == 7){ seven_cnt++; } } if(five_cnt == 2 && seven_...
a.cc: In function 'int main()': a.cc:18:8: error: 'a' was not declared in this scope 18 | if(a[i] == 5){ | ^
s819541838
p04043
Java
public class Main{ public static void main(String [] args){ int A = 5; int B = 7; int C = 5;
Main.java:5: error: reached end of file while parsing int C = 5; ^ 1 error
s766112429
p04043
C++
#include <iostream> int main() { int A, B, C; std::cin >> A >> B >> C; int N = count (A, B, 5); int n = count (C, 5); int M = count (A, B, 7); int m = count (C, 7); if (N + n == 2 && M + m == 1) { std::cout << "Yes" <<std::endl; } else { std::cout << "No" <<std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:17: error: 'count' was not declared in this scope 5 | int N = count (A, B, 5); | ^~~~~
s104852924
p04043
C++
#include <iostream> int main() { int A, B, C; std::cin >> A >> B >> C; int N = std::count (A, B, 5); int n = std::count (C, 5); int M = std::count (A, B, 7); int m = std::count (C, 7); if (N + n == 2 && M + m == 1) { std::cout << "Yes" <<std::endl; } else { std::cout << "No" <<std::endl; } ...
a.cc: In function 'int main()': a.cc:5:22: error: 'count' is not a member of 'std'; did you mean 'cout'? 5 | int N = std::count (A, B, 5); | ^~~~~ | cout a.cc:6:22: error: 'count' is not a member of 'std'; did you mean 'cout'? 6 | int n = std...
s265256518
p04043
C++
#include <iostream> int main() { int A, B, C; std::cin >> A >> B >> C; int N = std::count (A, B, C, 1); int M = std::count (A, B, C, 7); if (N == 2 && M == 1) { std::cout << "Yes" <<std::endl; } else { std::cout << "No" <<std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:22: error: 'count' is not a member of 'std'; did you mean 'cout'? 5 | int N = std::count (A, B, C, 1); | ^~~~~ | cout a.cc:6:22: error: 'count' is not a member of 'std'; did you mean 'cout'? 6 | int M = ...
s117291782
p04043
C++
#include <iostream> int main() { int A, B, C; std::cin >> A >> B >> C; if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) { std::cout << "Yes" <<std::endl; } else { std::cout << "No" <<std::endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:18: error: 'count' is not a member of 'std'; did you mean 'cout'? 5 | if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) { | ^~~~~ | cout a.cc:5:50: error: 'count' is not a member of 'std'; did you mean 'cout...
s660336673
p04043
C++
#include <bits/stdc++.h> using namespace std; //#define MD 100010 int main(){ vector<int> v(3); int cnt_go=0,cnt_na=0; for(int i=0;i<3;i++){ cin>>v[i]; if(v[i]==5){ cnt_go+++; }else if(v[i]==7){ cnt_na++; } } if(cnt_go==2 &&...
a.cc: In function 'int main()': a.cc:13:22: error: expected primary-expression before ';' token 13 | cnt_go+++; | ^
s916872032
p04043
C++
#include "bits\stdc++.h" #define REP(i,m,n) for(long long i=m;i<n;++i) #define INF 10000000000000000 #define MOD 1000000007 #define ll long long #define mp make_pair #define all(v) v.begin(),v.end() using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b+c==17&&(a==5||a==7)&&(b==5||b==7)&&(c==5||c==7)){ ...
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include "bits\stdc++.h" | ^~~~~~~~~~~~~~~ compilation terminated.
s933827766
p04043
C++
#inlcude <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b+c==17&&a*b*c==245){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header...
s817298829
p04043
C++
#include <iostream> using namespace std; int main(void) { string a, b, c; cin >> a >> b >> c; if ((a+b+c) == 17 ) if ((a==b&&c==7)||(a==c&&b==7)||(c==b&&a==7)) cout << "NO" << endl; return 0; cout << "YES" << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: no match for 'operator==' (operand types are 'std::__cxx11::basic_string<char>' and 'int') 6 | if ((a+b+c) == 17 ) | ~~~~~~~ ^~ ~~ | | | | | int | std::__cxx11::basic_string<char> In file includ...
s733374135
p04043
C++
#include <stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a==b==5,c==7){ printf("YES\n"); } else if(a==c==5,b==7){ printf("YES\n"); } else if(b==c==5,a==7){ printf(YES\n); } else{ printf("NO\n"); } return 0; }
a.cc:13:15: error: stray '\' in program 13 | printf(YES\n); | ^ a.cc: In function 'int main()': a.cc:13:12: error: 'YES' was not declared in this scope 13 | printf(YES\n); | ^~~
s857863923
p04043
C++
package main import ( "bufio" "fmt" "os" "sort" "strconv" "strings" ) var sc = bufio.NewScanner(os.Stdin) func nextLine() string { sc.Scan() return sc.Text() } func main() { abc := strings.Split(nextLine(), " ") var slc []int for _, s := range abc { tmp, _ := strconv.Atoi(s) slc = append(slc, tmp) }...
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~ a.cc:19:1: error: 'func' does not name a type 19 | func main() { | ^~~~
s368076446
p04043
C++
#include <iostream> #include <string> #include <string.h> #include <map> #include <set> #include <vector> #include <stdio.h> #include <math.h> #include <algorithm> #include <queue> #include <cmath> #include <cstdio> using namespace std; int main(){ int c=0,b=0; int a[2]; for(int i=0;i<=2;i++) cin>>a[i];; for(int i=0;i<...
a.cc: In function 'int main()': a.cc:19:15: error: 'n' was not declared in this scope 19 | for(int i=0;i<n;i++){ | ^
s948596777
p04043
Java
import java.util.Scanner; public class Main{ public static void main(String[] args) throws IOException{ int count_5=0,count_7=0; Scanner scan =new Scanner(System.in); for(int i=0;i<3;i++) { int num=scan.nextInt(); if(num==5) count_5++; if(num==7) count_7++; } if(count_5==2 && count_7==1) Syst...
Main.java:4: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class Main 1 error
s905326925
p04043
Java
import java.util.Scanner; public class main{ public static void main(String[] args) throws IOException{ int count_5=0,count_7=0; Scanner scan =new Scanner(System.in); for(int i=0;i<3;i++) { int num=scan.nextInt(); if(num==5) count_5++; if(num==7) count_7++; } if(count_5==2 && count_7==1) Syst...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ Main.java:4: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class main 2 er...
s441042147
p04043
Java
import java.util.Scanner; public class Main{ public static void main(String[] args) throws IOException{ int count_5=0,count_7=0; Scanner scan =new Scanner(System.in); for(int i=0;i<3;i++) { int num=scan.nextInt(); if(num==5) count_5++; if(num==7) count_7++; } if(count_5==2 && count_7==1) Syst...
Main.java:4: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class Main 1 error
s163581058
p04043
Java
import java.util.Scanner; public class Iroha{ public static void main(String[] args) throws IOException{ int count_5=0,count_7=0; Scanner scan =new Scanner(System.in); for(int i=0;i<3;i++) { int num=scan.nextInt(); if(num==5) count_5++; if(num==7) count_7++; } if(count_5==2 && count_7==1) Sys...
Main.java:3: error: class Iroha is public, should be declared in a file named Iroha.java public class Iroha{ ^ Main.java:4: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class Iroha ...
s751554471
p04043
C++
#include <iostream> using namespace std; int main(){ //数値入力 int a,b,c; cin>>a>>b>>c; //判定yes if(a==7&& b==5&& c==5) cout<<"YES"<<endl; else if(a==5&& b==7&& c==5) cout<<"YES"<<endl; else if(a==5&& b==5&& c==7) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0 }
a.cc: In function 'int main()': a.cc:18:11: error: expected ';' before '}' token 18 | return 0 | ^ | ; 19 | } | ~
s127262194
p04043
Java
import java.io.*; import java.util.*; class main { public static void main (String args[]) { Scanner sc=new Scanner(System.in); int a[]=new int[3]; a[0]=5; a[1]=7; a[2]=5; int b[]=new int[3]; for(int i=0;i<3;i++) {b[i]=sc.nextInt();} int count=0; for(int i=0;i<3;i++) { ...
Main.java:28: error: incompatible types: int cannot be converted to boolean if(count=3) ^ 1 error
s065465318
p04043
C++
#include<iostream> #include<algorithm> using namespace std; int main() { int ar[3] = { a,b,c }; cin >> a >> b >> c ; sort(ar, ar + 3); if ((ar[0] == ar[1]) && (ar[1] == 5) && (ar[2] == 7)) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:23: error: 'a' was not declared in this scope; did you mean 'ar'? 6 | int ar[3] = { a,b,c }; | ^ | ar a.cc:6:25: error: 'b' was not declared in this scope 6 | int ar[3] = { a,b,c }; | ...
s294446450
p04043
C++
#include<iostream> int main(){ int a, b, c; std::cin >> a << b << c; if (((a * b * c) == 175) and ((a + b + c) == 17)) std::cout << "YES"; else std::cout << "NO"; return 0: }
a.cc: In function 'int main()': a.cc:6:19: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 6 | std::cin >> a << b << c; | ~~~~~~~~~~~~~ ^~ ~ | | | | | int ...
s105313728
p04043
Java
public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(in.readLine()); int fiveCount = 0; int sevenCount = 0; for (int i = 0; i < 3; i++) { int x...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in));...
s832960647
p04043
Java
import java.io.*; import java.util.*; public class ACBeg42 { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(in.readLine()); int fiveCount = 0; int sevenCount = 0; ...
Main.java:4: error: class ACBeg42 is public, should be declared in a file named ACBeg42.java public class ACBeg42 { ^ 1 error
s336437252
p04043
Java
import java.io.*; import java.util.*; public class ACBeg42 { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(in.readLine()); int fiveCount = 0; int sevenCount = 0; f...
Main.java:4: error: class ACBeg42 is public, should be declared in a file named ACBeg42.java public class ACBeg42 { ^ Main.java:11: error: cannot find symbol for (int i = 0; i < N; i++) { ^ symbol: variable N location: class ACBeg42 2 errors
s707884035
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==5&&b==5&&c==7) printf("YES\n"); else if(a==5&&b==7&&c==5) printf("NO\n"); else if(a==7&&b=5&&c==5) printf("YES\n"); else printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:15:17: error: lvalue required as left operand of assignment 15 | else if(a==7&&b=5&&c==5) | ~~~~^~~
s773268355
p04043
C++
#include<iostraeam> #include<string> #include<cstring> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==7&&b==5&&c==5){cout<<"YES";return 0;} if(a==5&&b==7&&c==5){cout<<"YES";return 0;} if(a==5&&b==5&&c==7){cout<<"YES";return 0;} cout<<"NO"; return 0; }
a.cc:1:9: fatal error: iostraeam: No such file or directory 1 | #include<iostraeam> | ^~~~~~~~~~~ compilation terminated.
s905881594
p04043
C++
a,b,c=gets.split(" ").map(&:to_i) count5=0 count7=0 count5 +=1 if a == 5 count7 +=1 if a == 7 count5 +=1 if b == 5 count7 +=1 if b == 7 count5 +=1 if c == 5 count7 +=1 if c == 7 print count5 == 2 && count7==1 ? "YES\n" : "NO\n"
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=gets.split(" ").map(&:to_i) | ^
s854801518
p04043
C++
#include <stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==5&&c==5){ printf("Yes"); }else if(b==5&&c==5){ printf("Yes"); }else if(a==5&&b==5){ printf("Yes"); }else{ printf("No"); } return0; }
a.cc: In function 'int main()': a.cc:15:9: error: 'return0' was not declared in this scope 15 | return0; | ^~~~~~~
s829910579
p04043
C++
#include<iostream> #include<cstdio> #include<string> #include<algorithm> #include<queue> #include<cstring> #include<utility> #include<cstdlib> #include<cmath> #include<vector> #include<map> #include<set> #include<stack> #include<bitset> #include<deque> #include<cctype> using namespace std; int main() { int five=0; in...
a.cc: In function 'int main()': a.cc:29:9: error: 'else' without a previous 'if' 29 | else if(c==7) seven++; | ^~~~
s454020404
p04043
C++
#include <iostream> #include <string> int main(){ int a,c,b; std::cin >> a >> b >> c; if(a==7 && b==5 && c==5) std::cout << "YES" << std::endl; else if(b==7 && a==5 && c=5) std::cout << "YES" << std::endl; else if(c==7 && b==5 && a==5) std::cout << "YES" << std::endl; else std::cout << "NO" << std::endl; }
a.cc: In function 'int main()': a.cc:8:22: error: lvalue required as left operand of assignment 8 | else if(b==7 && a==5 && c=5) | ~~~~~~~~~~~~~^~~~
s529288237
p04043
C++
#include <bits/stdc++.h> //#include <math.h> using namespace std; #define INF 1.1e9 #define LINF 1.1e18 #define FOR(i,a,b) for (int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define ALL(v) (v).begin(),(v).end() #define pb push_back #define pf push_front #define fi first #define se second #define BIT(x,n) bitset<n>(...
a.cc: In function 'int main()': a.cc:35:22: error: lvalue required as left operand of assignment 35 | if(a[0]==a[1]&&a[0]=5&&a[2]==7) cout<<"YES"<<endl; | ~~~~~~~~~~^~~~~~
s720329408
p04043
Java
import java.util.Scanner; public class Q042 { public static void Main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int[] count = new int[11]; count[scanner.nextInt()]++; count[scanner.nextInt()]++; count[scanner.nextInt()]++; if (count[5] == 2 && count[7] == 1) { System.out...
Main.java:3: error: class Q042 is public, should be declared in a file named Q042.java public class Q042 { ^ 1 error
s258811950
p04043
C++
#include <iostream> #include <array> #include <algorithm> void main() { int a, b, c; std::cin >> a >> b >> c; std::array<int, 3> inputs{a, b, c}; auto found5 = std::count(inputs.begin(), inputs.end(), 5); auto found7 = std::count(inputs.begin(), inputs.end(), 7); std::cout << (found5 == 2 && found7 == ...
a.cc:13:47: warning: multi-character character constant [-Wmultichar] 13 | std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO'; | ^~~~~ a.cc:13:55: warning: multi-character character constant [-Wmultichar] 13 | std::cout << (found5 == 2 && found7 == 1) ...
s894653679
p04043
C++
#include<iostream> using namespace std; int main(){ int n,l; cin >> n >> l; char s[n][l]; int t[n][l]; for(int i = 0;i < n;i++){ cin >> s[i]; for(int j = 0;j < l;j++){ if(s[i][j] == 'a'){ t[i][j] = 1; } if(s[i][j] == 'b'){ ...
a.cc: In function 'int main()': a.cc:107:27: error: incompatible types in assignment of 'int' to 'int [n][l]' 107 | t = t[x][m]; | ~~^~~~~~~~~ a.cc:109:46: error: expected ';' before '}' token 109 | t[n-k-1][m] = t[x][m] | ...
s698380080
p04043
C++
#include <iostream> using namespace std; int main(void){ int a=0,b=0; int c=0; for(int i=0;i<3;i++){ cin>>c; if(c==5){a+=1;} if(c==7){b+=1;} } if(a==2&& b==1){cout << “Yes”<<endl;} else{cout<<“No”<<endl;} return 0; }
a.cc:13:25: error: extended character “ is not valid in an identifier 13 | if(a==2&& b==1){cout << “Yes”<<endl;} | ^ a.cc:13:25: error: extended character ” is not valid in an identifier a.cc:14:12: error: extended character “ is not valid in an identifier 14 | else{cout<<“No”<<endl;...
s651242503
p04043
C++
#include <iostream> using namespace std; int main(void){ int a=0,b=0; int c=0; for(int i=0;i<3;i++){ cin>>c; if(c==5){a+=1;} if(c==7){b+=1;} } if(a==2&& b==1){cout << “Yes”<<endless;} else{cout<<“No”<<endl;} return 0; }
a.cc:13:25: error: extended character “ is not valid in an identifier 13 | if(a==2&& b==1){cout << “Yes”<<endless;} | ^ a.cc:13:25: error: extended character ” is not valid in an identifier a.cc:14:12: error: extended character “ is not valid in an identifier 14 | else{cout<<“No”<<en...
s568261848
p04043
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:30:20: error: request for member 'begin' in 'a', which is of non-class type 'int [3]' 30 | #define all(v) (v).begin(), (v).end() | ^~~~~ a.cc:44:14: note: in expansion of macro 'all' 44 | sort(all(a)); | ^~~ a.cc:30:33: error...
s902503718
p04043
C++
#include<iostream> #include<array> const int poetry = 3; int main() { std::array<int, poetry> arry; int five, seven; for (int i = 0; i < poetry; i++) { std::cin >> arry[i]; } five=std::count(arry.begin(), arry.end(), 5); seven = std::count(arry.begin(), arry.end(), 7); if (2 == five && 1 == seven) { st...
a.cc: In function 'int main()': a.cc:14:19: error: 'count' is not a member of 'std'; did you mean 'cout'? 14 | five=std::count(arry.begin(), arry.end(), 5); | ^~~~~ | cout a.cc:15:22: error: 'count' is not a member of 'std'; did you mean 'cout'? 15 | ...
s128771987
p04043
C++
#include <iostream> using namespace std; int main(){ int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a,a+3); if(a[0]==5 && a[1]==5 && a[2]==7)cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'? 7 | sort(a,a+3); | ^~~~ | short
s711790171
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b+c == 17 && a*b*c=175) cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:7:16: error: lvalue required as left operand of assignment 7 | if(a+b+c == 17 && a*b*c=175) | ~~~~~~~~~~~~^~~~~~~~
s197051890
p04043
C++
#include<bits/bits/stdc++.h> using namespace std; int main(){ int n; scanf("%d"); vector<string> str(n); //declaring an array of string for(int i=0; i<n; i++) cin>>str[i];//taking n string inputs sort(str, str+n);//sorting n strings lexicographically and "sort()" is a built in function of...
a.cc:1:9: fatal error: bits/bits/stdc++.h: No such file or directory 1 | #include<bits/bits/stdc++.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated.