submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s055908023
p04043
Java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.next(); if(str.equals("575")) { System.out.println("YES"); }else if(str.equals("557")){ System.out.println("YES"); }else if(str.equals("755"...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s791447922
p04043
C++
#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<bool> avail = { false,false,false,false,false,false,false,false,false,false }; string N; int D; string res = ""; cin >> N >> D; int MIN = 11; int MAX = -1; for (int i = 0; i<D; i++) { ...
a.cc: In function 'int main()': a.cc:47:2: error: expected '}' at end of input 47 | } | ^ a.cc:8:1: note: to match this '{' 8 | { | ^
s143822285
p04043
C++
#inlcude<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if( (a==5 && b==5 && c==7) || (a==7 && b==5 && c==5) || (a==5 && b==7 && c==5)) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
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:6:3: error: 'cin' was not declared in this scope 6 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header ...
s691490514
p04043
C++
#inlcude<bits/stdc++.h> using namespace std; int main() { cin>>a>>b>>c; if( (a==5 && b==5 && c==7) || (a==7 && b==5 && c==5) || (a==5 && b==7 && c==5)) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
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 ...
s865761677
p04043
C++
#include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update> #define ll long long int #define fio ios_base::sync_with_stdio(false); cin.tie(NULL); #de...
a.cc: In function 'void solve()': a.cc:344:22: error: 'n' was not declared in this scope 344 | sort(arr,arr+n); | ^
s703624779
p04043
C++
#include <cstdio> int main() { int a,b,c; int n[20] = { 0 }; scanf_s("%d %d %d", &a, &b, &c); n[a]++; n[b]++; n[c]++; if (n[5] == 2 && n[7] == 1) { printf("YES\n"); } else { printf("NO\n"); } }
a.cc: In function 'int main()': a.cc:7:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 7 | scanf_s("%d %d %d", &a, &b, &c); | ^~~~~~~ | scanf
s248380697
p04043
Java
import java.util.*; import java.lang.*; class Main{ public static void main(String[] args){ int x=0; Scanner input=new Scanner(System.in); int a[]=new int [3]; for(int i=0; i<3; i++) { a[i]=input.nextInt(); } for(int j=0;j<3;j++) { x=x+a[j]; } if(x==17) { System.out.println("YES"); } else{Sy...
Main.java:23: error: reached end of file while parsing Aa ^ 1 error
s834200605
p04043
C++
x=list(map(int,input().split())) x.sort() print("YES" if x==[5,5,7] else "NO")
a.cc:1:1: error: 'x' does not name a type 1 | x=list(map(int,input().split())) | ^
s645089826
p04043
Java
import java.util.*; public class JavaApplication69 { public static void main(String[] args) { Scanner in=new Scanner(System.in); int A=in.nextInt(); int B=in.nextInt(); int C=in.nextInt(); if((5<=A)&& (7<=B)&& (5<=C&&C<=10)) System.out.println("Yes"); ...
Main.java:5: error: class JavaApplication69 is public, should be declared in a file named JavaApplication69.java public class JavaApplication69 { ^ 1 error
s091859153
p04043
Java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner in=new Scanner(System.in); int A=in.nextInt(); int B=in.nextInt(); int C=in.nextInt(); if(1<=A>=5&& 1<=B>=7&& 1<=C>=5) System.out.println("Yes"); else System.out.prin...
Main.java:8: error: bad operand types for binary operator '>=' if(1<=A>=5&& 1<=B>=7&& 1<=C>=5) ^ first type: boolean second type: int Main.java:8: error: bad operand types for binary operator '>=' if(1<=A>=5&& 1<=B>=7&& 1<=C>=5) ^ first type: boolean second type: in...
s018635167
p04043
Java
import java.util,*; public class Main{ public static void main(String[]args){ Scanner in=new Scanner(System.in); int A=in.nextInt(); int B=in.nextInt(); int C=in.nextInt(); if(1<=A>=5&& 1<=B>=7&& 1<=C>=5) System.out.println("Yes"); else System.out.prin...
Main.java:1: error: ';' expected import java.util,*; ^ 1 error
s011195400
p04043
C
#include <iostream> using namespace std; int main() { //cout << "Hello world!" << endl; int a , b , c ; cin >> a >> b >> c; if((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (c == 5 && b == 5 && a == 7)){ cout << "YES"; } else{ cout << "NO"; } return 0...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s493699377
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(void){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if ((a=5 || a=7)&&(b=5||b=7)&&(c=5||c=7)&&(a+b+c==17)){ printf("YES/n"); } else { printf("NO/n"); } return 0; }
a.cc: In function 'int main()': a.cc:8:12: error: lvalue required as left operand of assignment 8 | if ((a=5 || a=7)&&(b=5||b=7)&&(c=5||c=7)&&(a+b+c==17)){ | ~~^~~~ a.cc:8:25: error: lvalue required as left operand of assignment 8 | if ((a=5 || a=7)&&(b=5||b=7)&&(c=5||c=7)&&(a+b+c==17)){ ...
s963534267
p04043
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int,int> P; #define all(v) v.begin(), v.end() const ll mod=1000000007; ll countBits(ll in){ int res=0; for(;in>0;in>>=1){ if((in&0x01)!=0){ res++; } } return res; } template<typenam...
a.cc: In function 'int main()': a.cc:94:13: error: lvalue required as left operand of assignment 94 | if(s[5]==2&&s[7]=1){
s993599108
p04043
C++
#include<iostream> using namespace std; int main(){ int input[3]={}; int count5=0; int count7=0; cin>>a>>b>>c; for(int i=0;i<=3;i++){ if(input[i]==5){ count5++; } else if(input[i]==7){ count7++; } } if(count5==2&&count7==1){ cout<<"YES"; }else{ cout<<"NO"; ...
a.cc: In function 'int main()': a.cc:9:8: error: 'a' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:9:11: error: 'b' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:9:14: error: 'c' was not declared in this scope 9 | cin>>a>>b>>c; | ...
s059833672
p04043
C++
#include<iostream> int main(){ int input[3]={}; int count5=0; int count7=0; cin>>a,b,c; for(int i=0;i<=3;i++){ if(input[i]==5){ count5++; } else if(input[i]==7){ count7++; } } if(count5==2&&count7==1){ cout<<"YES"; }else{ cout<<"NO"; } return 0; } ...
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 8 | 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; ///< Linked to s...
s272641616
p04043
C++
#include<iostream> int main(){ int input[3]={}; int count5=0; int count7=0; cin<<a,b,c; for(int i=0;i<=3;i++){ if(input[i]=5){ count5++; } else if(input[i]=7){ count7++; } } if(count5=2&&count7=1){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 8 | 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; ///< Linked to s...
s682730655
p04043
C++
#include<iostream> int main(){ int input[3]={}; int count5=0 int count7=7 cin<<a,b,c; for(int i=0;i<=3;i++){ if(input[i]=5){ count5++; } else if(input[i]=7){ count7++; } } if(count5=2&&couunt7=1){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: expected ',' or ';' before 'int' 6 | int count7=7 | ^~~ a.cc:15:7: error: 'count7' was not declared in this scope; did you mean 'count5'? 15 | count7++; | ^~~~~~ | count5 a.cc:19:16: error: 'couunt7' was not declared in this...
s662454517
p04043
Java
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+b+c!=17){ System.out.println("NO"); }else{ if((a==5 || a==7)&&(b==5 || b==7)){ System.out.println("YES")...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s139237507
p04043
C++
#include <iostream> #include <vector> #include <string> #define rep(i, cc, n) for (int i = cc; i < n; ++i) using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 5 && b == 7 && c == 5) { cout << "YES" << endl; return; } else if (a == 7 && b == 5 && c == ...
a.cc: In function 'int main()': a.cc:18:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 18 | return; | ^~~~~~ a.cc:23:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 23 | return; | ^~~~~~ a.cc:28:...
s097101640
p04043
C
# include "stdio.h" int main(){ int n,k,t,c1=0,c2=0,c3=0; scanf("%d %d",&n,&k); int d[k], use[10] = {0}, num = 0; int i, j, l; for( i=0;i<k;i++) scanf("%d",&d[i]); //好きな数 for (i = 0 ; i<k ; i++) { use[d[i]] = 1; //use[]の中が0なら使用可能 } //桁数 t=n; while(t>0){...
main.c: In function 'main': main.c:73:5: error: expected declaration or statement at end of input 73 | printf("%d\n",num); | ^~~~~~
s960485943
p04043
Java
import java.util.Scanner 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==7 || B==7 || C==7){ if(A==7){ if(B==5 && C==5){ System.out.println("yes"); }else{ System.out.pri...
Main.java:1: error: ';' expected import java.util.Scanner ^ 1 error
s196213719
p04043
Java
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==7 || B==7 || C==7){ if(A==7){ if(B==5 && C==5){ System.out.println("yes"); }else{ System.out.println("no"); } }else...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s325655542
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(void){ string s[3]; cin >> s[0] >> s[1] >> s[2]; int sevens = 0; int fives = 0; for(int i = 0; i < 3; i++){ if(s[i].length() == 5){ fives++; } if(s[i].length() == 7){ sevens++; } } if(sevens == 1 && fives == 2){ cout "YES"; } else{ ...
a.cc: In function 'int main()': a.cc:22:21: error: expected ';' before string constant 22 | cout "YES"; | ^~~~~~ | ;
s031085007
p04043
C++
int main(void){ string s[3]; cin >> s[0] >> s[1] >> s[2]; int sevens = 0; int fives = 0; for(int i = 0; i < 3; i++){ if(s[i].length() == 5){ fives++; } if(s[i].length() == 7){ sevens++; } } if(sevens == 1 && fives == 2){ cout "YES"; } else{ cout << "NO"; } return 0; }
a.cc: In function 'int main()': a.cc:3:9: error: 'string' was not declared in this scope 3 | string s[3]; | ^~~~~~ a.cc:4:9: error: 'cin' was not declared in this scope 4 | cin >> s[0] >> s[1] >> s[2]; | ^~~ a.cc:4:16: error: 's' was not declared in this scope 4 |...
s678931273
p04043
C++
#include<bits/stdc++.h> #define fastio ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define all(x) (x).begin() , (x).end() #define rep(i,a,b) for(int i=a;i<b;i++) #define endl '\n' #define MAX 1000000 #define debug(x...) cerr << "[" << #x << "] = ["; _print(x) typedef long long int ll; ...
a.cc: In function 'void solve()': a.cc:40:9: error: conflicting declaration 'int a' 40 | int a=0,b=0; | ^ a.cc:39:9: note: previous declaration as 'int a [3]' 39 | int a[3]; | ^ a.cc:43:10: error: incompatible types in assignment of 'bool' to 'int [3]' 43 | a+=(a[i]=...
s242526732
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector <int> A(3); for (int i=0; i<3; i++){ cin >> A.at(i); } sort(A.begin(), A.end()); if (vector<int>A == {5,5,7}){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:20: error: expected initializer before '==' token 10 | if (vector<int>A == {5,5,7}){ | ^~ a.cc:10:19: error: expected ')' before '==' token 10 | if (vector<int>A == {5,5,7}){ | ~ ^~~ | ) a.cc:10:30: ...
s720655504
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector <int> A(3); for (int i=0; i<3; i++){ cin >> A.at(i); } sort(A.begin(), A.end()); if (vector<int> A == {5,5,7}){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:21: error: expected initializer before '==' token 10 | if (vector<int> A == {5,5,7}){ | ^~ a.cc:10:20: error: expected ')' before '==' token 10 | if (vector<int> A == {5,5,7}){ | ~ ^~~ | ) a.cc:10...
s855861461
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector <int> A(3); for (int i=0; i<3; i++){ cin >> A.at(i); } sort(vector<int> A); if (vector<int> A == [5,5,7]){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:20: error: expected primary-expression before 'A' 9 | sort(vector<int> A); | ^ a.cc:10:21: error: expected initializer before '==' token 10 | if (vector<int> A == [5,5,7]){ | ^~ a.cc:10:20: error: expected ')' before '=...
s618241850
p04043
Java
import java.util.Scanner; public class Practice_575 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); String message = null; if (a * b * c != 175) { message = "NO"; } else { message = "YES"; } ...
Main.java:3: error: class Practice_575 is public, should be declared in a file named Practice_575.java public class Practice_575 { ^ 1 error
s465834907
p04043
C++
#include <iostream> #include <string> using namespace std; int main{ int A , B , C; cin A >> B >> C; if((A + B + C) == 17){ cout << "OK" << end1; }else{ cout << "NG" << end1; }
a.cc:4:13: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:7: error: expected primary-expression before 'int' 5 | int A , B , C; | ^~~ a.cc:5:7: error: expected '}' before 'int' a.cc:4:17: note: to match this '{' 4 | int ...
s422853740
p04043
C++
#include <iostream> #include <string> using namespace std; int main(){ int A , B , C; cin A << B << C; if(A + B + C == 17){ cout << "OK"; else{ cout << "NO"; } }
a.cc: In function 'int main()': a.cc:7:6: error: expected ';' before 'A' 7 | cin A << B << C; | ^~ | ; a.cc:10:5: error: expected '}' before 'else' 10 | else{ | ^~~~ a.cc:8:22: note: to match this '{' 8 | if(A + B + C == 17){ | ^
s928470520
p04043
Java
import java.util.*; import java.lang.*; import java.io.*; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); ...
Main.java:15: error: cannot find symbol if(a*b*c==q75){ ^ symbol: variable q75 location: class Main 1 error
s527621478
p04043
Java
import java.util.*; import java.lang.*; import java.io.*; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); ...
Main.java:15: error: cannot find symbol if(a*b*c==q75){ ^ symbol: variable q75 location: class Main 1 error
s813274165
p04043
C
#include<stdio.h> int main() { int A, B, C; scanf("%d %d %d", &A, &B, &C); if(A==5){ i++; }else if(A==7){ j++; } if(B==5){ i++; }else if(B==7){ j++; } if(C==5){ i++; }else if(C==7){ j++; } if(i==2&&j==1){ printf("yes"); }else{ printf("no"); } return 0; }
main.c: In function 'main': main.c:7:5: error: 'i' undeclared (first use in this function) 7 | i++; | ^ main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in main.c:9:5: error: 'j' undeclared (first use in this function) 9 | j++; | ^
s514336628
p04043
C++
#include <iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(a == 5){ if(b == 7){ if(c == 5){ cout << "Yes" << endl; }else cout << "No" << endl; }else if (b == 5){ if(c == 7){ cout << "Yes"<<endl; ...
a.cc: In function 'int main()': a.cc:20:2: error: expected '}' at end of input 20 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s965745693
p04043
C++
#include <iostream> int main(){ int a, b, c; cin >> a >> b >> c; if(a == 5){ if(b == 7){ if(c == 5){ cout << "Yes" << endl; }else cout << "No" << endl; }else if (b == 5){ if(c == 7){ cout << "Yes"<<endl; }else cout <<"No"...
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 >> 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; //...
s463964559
p04043
C++
int main(){ int a, b, c; cin >> a >> b >> c; if(a == 5){ if(b == 7){ if(c == 5){ cout << "Yes" << endl; }else cout << "No" << endl; }else if (b == 5){ if(c == 7){ cout << "Yes"<<endl; }else cout <<"No"<<endl; }else...
a.cc: In function 'int main()': a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:7:17: error: 'cout' was not declared in this scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:7:34: error: 'endl' was not declared in this scop...
s699028692
p04043
C++
int main(){ int a, b, c; cin >> a >> b >> c; if(a == 5){ if(b == 7){ if(c == 5){ cout << "Yes" << endl; }else cout << "No" << endl; }else if (b == 5){ if(c == 7){ cout << "Yes"<<endl; }else cout <<"No"<<endl; }else...
a.cc: In function 'int main()': a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:7:17: error: 'cout' was not declared in this scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:7:34: error: 'endl' was not declared in this scop...
s975087646
p04043
C
#include<stdio.h> int main(void) { int A,B,C; scanf("%d%d%d",A,B,C); if(A == 5 %% B == 7 %% C == 5)printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: expected expression before '%' token 7 | if(A == 5 %% B == 7 %% C == 5)printf("YES"); | ^
s129535443
p04043
C
#include<stdio.h> int main(void) { int A,B,C; scanf("%d %d %d",A,B.C);2 if(A == 5 %% B == 7 %% C == 5) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:6:23: error: request for member 'C' in something not a structure or union 6 | scanf("%d %d %d",A,B.C);2 | ^ main.c:6:28: error: expected ';' before 'if' 6 | scanf("%d %d %d",A,B.C);2 | ^ | ...
s823716135
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; if(A != 5 || B !=7 || C !== 5) cout << "NO" << endl; else cout << "YES" << endl; }
a.cc: In function 'int main()': a.cc:7:29: error: expected primary-expression before '=' token 7 | if(A != 5 || B !=7 || C !== 5) | ^
s418089214
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; if(A != 5 || B !=7 || C !== 5) cout << "NO" << endl; else cout << "YES" << endl; }
a.cc: In function 'int main()': a.cc:7:29: error: expected primary-expression before '=' token 7 | if(A != 5 || B !=7 || C !== 5) | ^
s986190029
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin>>a>>b>>c; if(a+b+c==32 || a+b+c=19 && a==5 || b==5 || c==7 && a==7 || b==7 || c==7) cout<<" Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: lvalue required as left operand of assignment 9 | if(a+b+c==32 || a+b+c=19 && a==5 || b==5 || c==7 && a==7 || b==7 || c==7) | ~~~~~~~~~~^~~~~~~~
s499064509
p04043
C
#include <stdio.h> int main(){ int A, B, C; scanf("%d %d %d", &A, &B, &C); if(A*B*C==5*5*7) printf("YES"); else prinf("NO"); return 0;}
main.c: In function 'main': main.c:10:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration] 10 | prinf("NO"); | ^~~~~ | printf
s921128801
p04043
C++
#include <iostream> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int a,b,c; cin>>a>>b>>c; if(a==5&&b==5&&c==7) cout<<"YES"; else if(a==7&&b==5&&c==5) cout<<"YES"; else if(a==5&&b==7&&c==5) cout<<"YES"; else cout<<"NO; }
a.cc:15:18: warning: missing terminating " character 15 | else cout<<"NO; | ^ a.cc:15:18: error: missing terminating " character 15 | else cout<<"NO; | ^~~~ a.cc: In function 'int main()': a.cc:17:1: error: expected primary-expression before '}' token 1...
s355844120
p04043
Java
import java.util.*; public class Main(){ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n1 = sc.nextInt(); int n2 = sc.nextInt(); int n3 = sc.nextInt(); int[] array = {n1,n2,n3}; int match1 = 0; int match2 = 0; for(int val : ar...
Main.java:4: error: '{' expected public class Main(){ ^ 1 error
s286191408
p04043
Java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n1 = sc.nextInt(); int n2 = sc.nextInt(); int n3 = sc.nextInt(); int[] array = {n1,n2,n3}; int matchCount = 0; Arrays .stream(array) .collect(Col...
Main.java:17: error: illegal start of expression if(k == 5){ ^ Main.java:26: error: illegal start of expression ); ^ 2 errors
s512322307
p04043
C++
#include <iostream> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; int count5=0; int count7=0; int x=0; if(A==5)count5++; if(B==5)count5++; if(C==5)count5++; if(A==7)count7++; if(B==7)count7++; if(C==7)count7++; if(count5==2)x++; if(count7==1)x++; if(x=2)cout<<"YES"; e...
a.cc: In function 'int main()': a.cc:24:3: error: 'return0' was not declared in this scope 24 | return0; | ^~~~~~~
s592608856
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int a,b,c; cin>>a>>b>>c; if(a+b+c == 17){ cout<<"YES"; }else{ cout<<"NO;} return 0; }
a.cc:13:7: warning: missing terminating " character 13 | cout<<"NO;} | ^ a.cc:13:7: error: missing terminating " character 13 | cout<<"NO;} | ^~~~~ a.cc: In function 'int main()': a.cc:14:1: error: expected primary-expression before 'return' 14 | return 0; | ^~~~~~ a.cc:15:2: erro...
s665887828
p04043
C
#include <stdio.h> int main() { int A, B, C; scanf(%d, A); scanf(%d, B); scanf(%d, C); if (A+B+C==17) { if (A==5 && (B==5 || B==7)) { printf(%s, "YES"); } else if (A==7 && B==5) { printf(%s, "YES"); } else { printf(%s, "NO"); } } else { printf(%s, "NO")...
main.c: In function 'main': main.c:6:9: error: expected expression before '%' token 6 | scanf(%d, A); | ^ main.c:7:9: error: expected expression before '%' token 7 | scanf(%d, B); | ^ main.c:8:9: error: expected expression before '%' token 8 | scanf(%d, C); | ...
s140185680
p04043
C
#include <stdio.h> int main() { int A, B, C; scanf(%d, A); scanf(%d, B); scanf(%d, C); if (A+B+C==17) { if (A==5 && (B==5 || B==7)) { printf(%s, "YES"); } else if (A==7 && B==5) { printf(%s, "YES"); } else { printf(%s, "NO"); } } else { printf(%s, "NO");...
main.c: In function 'main': main.c:6:9: error: expected expression before '%' token 6 | scanf(%d, A); | ^ main.c:7:9: error: expected expression before '%' token 7 | scanf(%d, B); | ^ main.c:8:9: error: expected expression before '%' token 8 | scanf(%d, C); | ...
s529555492
p04043
C++
#include <iostream> #include <array> int main() { int a, b, c; std::cin >> a >> b >> c; std::array<int, 3> arr{{a, b, c}}; std::sort(arr); if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) { std::cout << "YES"; } else { std::cout << "NO"; } std::cout << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 8 | std::sort(arr); | ^~~~ | qsort
s669954464
p04043
C++
#include <iostream> #include <array> int main() { int a, b c; std::cin >> a >> b >> c; std::array<int, 3> arr{{a, b, c}}; std::sort(arr); if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) { std::cout << "YES"; } else { std::cout << "NO"; } std::cout << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:5:12: error: expected initializer before 'c' 5 | int a, b c; | ^ a.cc:6:20: error: 'b' was not declared in this scope 6 | std::cin >> a >> b >> c; | ^ a.cc:6:25: error: 'c' was not declared in this scope 6 | std::cin >> a >...
s699421431
p04043
C
ースコード Copy Copy #include<stdio.h> int main() { int A,B,C; scanf("%d%d%d",&A,&B,&C); if(A==7&&B==5&&C==5)printf("YES\n"); else if(A==5&&B==7&&C==5)printf("YES\n"); else if(A==5&&B==5&&C==7)printf("YES\n"); else printf("NO\n"); return 0; }
main.c:1:1: error: unknown type name '\U000030fc\U000030b9\U000030b3\U000030fc\U000030c9' 1 | ースコード | ^~~~~~~~~~ main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Copy' 4 | Copy | ^~~~ In file included from /usr/include/stdio.h:47, from main.c:5: /usr/inclu...
s596522447
p04043
C
#include<stdio.h> int main() { int A,B,C; scanf("%d%d%d",&A,&B,&C); if(A==7&&B==5&&C==5)printf("YES\n"); else ifif(A==5&&B==7&&C==5)printf("YES\n"); else ifif(A==5&&B==5&&C==7)printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:7:8: error: implicit declaration of function 'ifif' [-Wimplicit-function-declaration] 7 | else ifif(A==5&&B==7&&C==5)printf("YES\n"); | ^~~~ main.c:7:30: error: expected ';' before 'printf' 7 | else ifif(A==5&&B==7&&C==5)printf("YES\n"); | ...
s993717137
p04043
Java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); if (a==b){ if (a==5 && c==7){ System.out.println("YES"); System.exit(...
Main.java:9: error: cannot find symbol if (a==b){ ^ symbol: variable a location: class Main Main.java:9: error: cannot find symbol if (a==b){ ^ symbol: variable b location: class Main Main.java:10: error: cannot find symbol if (a==5 && c==7){ ^ symbol: variable...
s917347556
p04043
Java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); if (a==b){ if (a==5 && c==7){ System.out.println("YES"); System.exit(...
Main.java:14: error: ';' expected } elif (a==c){ ^ Main.java:19: error: ';' expected } elif (b==c){ ^ 2 errors
s265225148
p04043
C++
#include<bits/stdc++.h> #define ll long long # define skorost ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) using namespace std ; ll z , o , ans ; ll N = 1e4 + 15820 ; int main(){ skorost ; int a[3] ; for( int i = 0 ; i < 3 ; i ++ ){ cin >> a[i] ; } sort(a,a+n); if( a[0] = 5 && a[1...
a.cc: In function 'int main()': a.cc:22:18: error: 'n' was not declared in this scope 22 | sort(a,a+n); | ^
s277613995
p04043
Java
import java.util.*; public class Main{ static public void main(String[] args){ Scanner sc = new Scanner(System.in); int line = sc.nextInt(); int count5 = 0, count7 = 0; for(int i=0; i<3; i++){ if(line[i] == 5){ count5++; }else if(line[i] == 7){ count7++; }e...
Main.java:11: error: array required, but int found if(line[i] == 5){ ^ Main.java:13: error: array required, but int found }else if(line[i] == 7){ ^ 2 errors
s729157877
p04043
Java
inport java.util.Scanner; class Main{ public static void main(String[] args){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); String x = "NO"; if(a == 5){ if ((b == 5) %% (c == 7)){ x = "YES"; } else if ((b == 7) %% (c == 5)) { x = "YES";...
Main.java:1: error: class, interface, enum, or record expected inport java.util.Scanner; ^ Main.java:9: error: illegal start of expression if ((b == 5) %% (c == 7)){ ^ Main.java:11: error: illegal start of expression } else if ((b == 7) %% (c == 5)) { ^ 3...
s952564615
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if (A,B==5 && C==7){ cout << "YES" << endl; } elseif (A,C==5 && B==7){ cout << "YES" << endl; } elseif (B,C==5 && A==7){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:12:3: error: 'elseif' was not declared in this scope 12 | elseif (A,C==5 && B==7){ | ^~~~~~ a.cc:20:3: error: 'else' without a previous 'if' 20 | else { | ^~~~
s957983863
p04043
C++
#include<bits/stdc++.h> int main(){ char a,b,c; cin>>a>>b>>c; if(((a==5)&&(b==5)&&(c==7))||((a==7)&&(b==5)&&(c==5))||((a==5)&&(b==7)&&(c==5))) cout<<"YES"<<"\n"; else cout<<"NO"<<"\n"; return 0; }
a.cc: In function 'int main()': a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin>>a>>b>>c; | ^~~ | 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:62:18: note: '...
s557770861
p04043
C++
tmurhwef
a.cc:1:1: error: 'tmurhwef' does not name a type 1 | tmurhwef | ^~~~~~~~
s467050927
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c; map<int, int> m; cin >> a >> b >> c; m[a]++, m[b]++, m[c]++; if(m[5] == 2 && m[7] == 1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'map' was not declared in this scope 7 | map<int, int> m; | ^~~ a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>' 1 | #include <iostream> +++ |+#include <map> 2 | using namespace std; ...
s573456732
p04043
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ vector<int> a; int s,t; for(int i=0;i<3;i++){ cin>>s; a.push_back(s); } s=count(a.begin(),a.end(),5); t=count(a.begin(),a.end(),7); if(s==2 and t==1){ cout<<"YES"; } else{ cout<<"NO" } }
a.cc: In function 'int main()': a.cc:20:19: error: expected ';' before '}' token 20 | cout<<"NO" | ^ | ; 21 | } | ~
s687621633
p04043
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ vector<int> a; int s,t; for(int i=0;i<3;i++){ cin>>s; a.push_back(s); } if(s==2 and t==1){ cout<<"YES"; } else{ cout<<"NO" } }
a.cc: In function 'int main()': a.cc:18:19: error: expected ';' before '}' token 18 | cout<<"NO" | ^ | ; 19 | } | ~
s849076344
p04043
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ vector<int> a; int s,t; for(int i=0;i<3;i++){ cin>>s; a.push_back(s); } s=count(a.begin(),a.end(),5); t=count(a.begin(),a.end(),7); if(s==2 and t==1){ cout<<"YES"; } else{ cout<<"NO" } }
a.cc: In function 'int main()': a.cc:19:19: error: expected ';' before '}' token 19 | cout<<"NO" | ^ | ; 20 | } | ~
s535319230
p04043
C++
#include <iostream> #include <vector> #include algorithm using namespace std; int main(){ vector<int> a; int s,t; for(int i=0;i<3;i++){ cin>>s; a.push_back(s); } s=count(a.begin(),a.end(),5); t=count(a.begin(),a.end(),7); if(s==2 and t==1){ cout<<"YES"; } else{ cout<<"NO" } }
a.cc:3:10: error: #include expects "FILENAME" or <FILENAME> 3 | #include algorithm | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:13:5: error: 'count' was not declared in this scope 13 | s=count(a.begin(),a.end(),5); | ^~~~~ a.cc:19:19: error: expected ';' before '}' token 19 | ...
s978015779
p04043
C++
#include <iostream> #include <vector> #include algorithm using namespace std; int main(){ vector<int> a; int s; for(int i=0;i<3;i++){ cin>>s; a.push_back(s); } if(count(a.begin(),a.end(),5)==2 and count(a.begin(),a.end(),7)==1){ cout<<"YES"; } else{ cout<<"NO" } }
a.cc:3:10: error: #include expects "FILENAME" or <FILENAME> 3 | #include algorithm | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:13:6: error: 'count' was not declared in this scope 13 | if(count(a.begin(),a.end(),5)==2 and count(a.begin(),a.end(),7)==1){ | ^~~~~ a.cc:17:19: error: ...
s931107651
p04043
Java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int fcount = 0; int scount = 0; for(int i = 0;i < 3;i++){ int a = stdIn.nextInt(); if(a == 5) fcount++; else if(a == 7) scount++; } if(fc...
Main.java:18: error: reached end of file while parsing System.out.println("NO"); ^ 1 error
s779231120
p04043
C++
/*...Bismillahir Rahmanir Rahim...*/ #include <iostream> using namespace std; /*........print part.........*/ template <typename T> inline void printl(T a,char c='\n'){ cout<<a<<c; } template <typename T> inline void print(T a,char c=' '){ cout<<a<<c; } template <typename T1,typename T2> inline void print(T1 a,T2 b)...
a.cc: In function 'int main()': a.cc:24:5: error: 'fast_io' was not declared in this scope 24 | fast_io; | ^~~~~~~ a.cc:25:5: error: 't_casout1' was not declared in this scope 25 | t_casout1 ; | ^~~~~~~~~
s584937612
p04043
Java
import java.util.Scanner; public class Main9 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int value = a + b + c; int product = a * b * c; if (value == 17 & product == 175) { System.out.println("YES");...
Main.java:3: error: class Main9 is public, should be declared in a file named Main9.java public class Main9 { ^ 1 error
s124000422
p04043
Java
import java.util.Scanner; public class Main9 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int value = a + b + c; int product = a * b * c; if (value == (5+5+7) & product ==(5*5*7)) { System.out.println...
Main.java:3: error: class Main9 is public, should be declared in a file named Main9.java public class Main9 { ^ 1 error
s981258465
p04043
Java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public static void main(String[] args) { Scanner scan = new Scanner(System.in); Map<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < 3;i++){ int k = scan.nextInt(); map.put(k, map...
Main.java:6: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
s164366671
p04043
Java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Haiko { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Map<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < 3;i++){ int k = scan.nextInt(); ...
Main.java:5: error: class Haiko is public, should be declared in a file named Haiko.java public class Haiko { ^ 1 error
s880742392
p04043
Java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Haiko { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Map<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < 3;i++){ int k = scan.nextInt(); ...
Main.java:5: error: class Haiko is public, should be declared in a file named Haiko.java public class Haiko { ^ 1 error
s535061264
p04043
Java
import java.util.*; public class A { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num[]=new int[3]; int count[]= {0,0}; for(int i=0;i<3;i++) { num[i] = sc.nextInt(); } for(int i=0;i<3;i++) { if(num[i]==5) count[0]++; else if(num[i]==7) count[...
Main.java:3: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s776200843
p04043
Java
public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int k = in.nextInt(); List<String> data= new ArrayList<>(); for (int i = 0; i < k; i++) { data.add(in.nextLine()); } System.out.println(data.stream().so...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
s501761990
p04043
Java
class Scratch { public static void main(String[] args) { int a ,b,c; Scanner input = new Scanner(System.in); a=input.nextInt(); b=input.nextInt(); c=input.nextInt(); if(a+b+c==17){ System.out.println("YES"); } else { System....
Main.java:6: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Scratch Main.java:6: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Scratch...
s213638916
p04043
C
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 100 #define L 100 int main() { char text[N][L],senten[N*L],tem[L]; int i,j; for(i=0; i<N; i++) { scanf("%s",text[i]); } for(i=1; i<L; i++) { for(j=1; j<N; j++) { if(strcmp(text[j-1], text[j]) > 0) { strcpy...
main.c: In function 'main': main.c:35:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration] 35 | print("%S",senten ); | ^~~~~ | printf
s196769842
p04043
C
#include<stdio.h> #include<stdlib.h> int main(int argc,char *argv[]) { int i,num[3]; for(i=0; i<3; i++) { num[i]=atoi(argv[i]); } if (num[0] == 7) { if(num[1] == 5 && num[2] = 5) { printf("YES") } else { printf("NO") } } else if(num[1] == 7) { if(num[0] == ...
main.c: In function 'main': main.c:13:30: error: lvalue required as left operand of assignment 13 | if(num[1] == 5 && num[2] = 5) | ^ main.c:15:20: error: expected ';' before '}' token 15 | printf("YES") | ^ | ; 16 |...
s983542842
p04043
C
#include<stdio.h> int main(int argc,char *argv[]) { int num[3]; for(i=0; i<3; i++) { num[i]=atoi(argv[i]); } if (num[0] == 7) { if(num[1] == 5 && num[2] = 5) { printf("YES") } else { printf("NO") } } else if(num[1] == 7) { if(num[0] == 5 && num[2] = 5) ...
main.c: In function 'main': main.c:6:7: error: 'i' undeclared (first use in this function) 6 | for(i=0; i<3; i++) | ^ main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in main.c:8:11: error: implicit declaration of function 'atoi' [-Wimplicit-function-decl...
s933289641
p04043
C
#include<stdio.h> int main(int argc,char *argv[]) { if (argv[0] == 7) { if(argv[1] == 5 && argv[2] = 5) { printf("YES") } else { printf("NO") } } else if(argv[1] == 7) { if(argv[0] == 5 && argv[2] = 5) { printf("YES") } else { printf("NO") ...
main.c: In function 'main': main.c:5:15: warning: comparison between pointer and integer 5 | if (argv[0] == 7) | ^~ main.c:7:16: warning: comparison between pointer and integer 7 | if(argv[1] == 5 && argv[2] = 5) | ^~ main.c:7:32: error: lvalue required as left ope...
s935580033
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A*B*C == 245 && A+B+C == 19 && A*B+B*C+C*A == 95){ cout << "Yes" << endl; } else { cout << No << endl; } }
a.cc: In function 'int main()': a.cc:13:13: error: 'No' was not declared in this scope 13 | cout << No << endl; | ^~
s468403096
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> j(3); int five = 2; int seven = 1; for (int i=0; i<3; i++) { int t; cin >> t; j.at(i) = t; if (j.at(i) == 5) { five--; } if (j.at(i) == 7) { seven--; } } if (five == 0 && seven == 0) { cout << "...
a.cc: In function 'int main()': a.cc:22:4: error: expected '}' at end of input 22 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s562330179
p04043
C++
#include<stdio.h> int main(){ int a,b,c,count7; scanf("%d %d %d".&a,&b,&c); if(a==7){ count7++; } if(b==7){ count7++; } if(c==7){ count7++; } if(count7==1){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:6:26: error: expected unqualified-id before '&' token 6 | scanf("%d %d %d".&a,&b,&c); | ^
s905485107
p04043
C++
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,no-stack-protector,fast-math") #include <bits/stdc++.h> #define ll long long #define ld long double #define IO ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); using namespace std; const int N = 1e2 + 5, M = 2 * N + 5; int n = 3; int a[3], b[] = {5, 5, 7}...
a.cc:19:10: warning: missing terminating " character 19 | puts("YE | ^ a.cc:19:10: error: missing terminating " character 19 | puts("YE | ^~~ a.cc: In function 'int main()': a.cc:19:10: error: expected primary-expression at end of input 19 | puts("YE | ^...
s708169231
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<int> haiku(3); cin >> haiku[1] >> haiku[2] >> haiku[3]; sort(haiku); if(haiku[1] == 5 && haiku[2] == 5 && haiku[3] == 7 ){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:7: error: no matching function for call to 'sort(std::vector<int>&)' 7 | sort(haiku); | ~~~~^~~~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr...
s991515237
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if (count(s.begin(), s.end(), "5") == 2 && count(s.begin(), s.end(), "7") == 1) { cout << "YES"; } else { cout << "NO"; } }
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 'bool __gnu_cxx::__ops::_Ite...
s653862022
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; if (count(s.begin(), s.end(), "5") == 2 && count(s.begin(), s.end8), "7" == 1) { cout << "YES"; } else { cout << "NO"; } }
a.cc: In function 'int main()': a.cc:8:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'end8'; did you mean 'end'? 8 | count(s.begin(), s.end8), "7" == 1) { | ^~~~ | end a.cc:8:39: error: ISO C++ fo...
s411344959
p04043
C++
#include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <algorithm> #include <bitset> #in...
a.cc: In function 'int main()': a.cc:65:15: error: 'falser' was not declared in this scope 65 | bool flag = falser; | ^~~~~~
s818495925
p04043
C
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,v=0,vii=0; cin>>a>>b>>c; if(a==5) { v++; } if(a==7) { vii++; } if( b==5) { v++; } if (b==7) vii++; if(c==5) v++; if(c==7) vii++; if(v==2 &&...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s379355832
p04043
C++
#include <bits/stdc++.h> using namespace std; int a; int b; int c; if(a+b+c == 17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc:9:2: error: expected unqualified-id before 'if' 9 | if(a+b+c == 17){ | ^~
s353673905
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a; int b; int c; if(a+b+c = 17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } } }
a.cc: In function 'int main()': a.cc:11:8: error: lvalue required as left operand of assignment 11 | if(a+b+c = 17){ | ~~~^~
s907204377
p04043
C++
#include <bits/stdc++.h> using namespace std; int a; int b; int c; if(a+b+c = 17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc:9:1: error: expected unqualified-id before 'if' 9 | if(a+b+c = 17){ | ^~
s751539740
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ #include <bits/stdc++.h> using namespace std; int a; int b; int c; if(a+b+c=17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }...
a.cc: In function 'int main()': a.cc:14:7: error: lvalue required as left operand of assignment 14 | if(a+b+c=17){ | ~~~^~
s750977781
p04043
C++
#include <bits/stdc++.h> using namespace std; int a; int b; int c; if(a+b+c=17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc:9:1: error: expected unqualified-id before 'if' 9 | if(a+b+c=17){ | ^~
s741277383
p04043
C++
#include <bits/stdc++.h> using namespace std; int a; int b; int c; cin >> a; cin >> b; cin >> C; if(a+b+c=17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc:8:1: error: 'cin' does not name a type 8 | cin >> a; | ^~~ a.cc:9:1: error: 'cin' does not name a type 9 | cin >> b; | ^~~ a.cc:10:1: error: 'cin' does not name a type 10 | cin >> C; | ^~~ a.cc:13:1: error: expected unqualified-id before 'if' 13 | if(a+b+c=17){ | ^~
s165917370
p04043
C++
#include <bits/stdc++.h> using namespace std; int a; int b; int c; cin>>a; cin>>b; cin>>C; if(a+b+c=17){ if(a==5 && b==5){ cout<<"Yes"<<endl; } if(a==5 && c==5){ cout<<"Yes"<<endl; } if(b==5 && c==5){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; }
a.cc:8:1: error: 'cin' does not name a type 8 | cin>>a; | ^~~ a.cc:9:1: error: 'cin' does not name a type 9 | cin>>b; | ^~~ a.cc:10:1: error: 'cin' does not name a type 10 | cin>>C; | ^~~ a.cc:13:1: error: expected unqualified-id before 'if' 13 | if(a+b+c=17){ | ^~