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")) { System.out.println("YES"); }else { System.out.println("NO"); } } }
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++) { int a; cin >> a; if (MIN>a) {MIN = a;} if (MAX<a) {MAX = a;} avail[a] = true; } bool new_size = false; bool test= true; while(test) { for (int i = 0; i<N.size();i++) { if (int(N[i])-48 > MAX) { new_size = true; res.push_back(avail[MIN]); } else if (true == avail[int(N[i])-48]) { res.push_back(avail[int(N[i])-48]); } else { for (int a = int(N[i])-48+1; a<avail.size(); a++) { if (true == avail[a]) { res.push_back(avail[a]); } } } } if (new_size == true) { res.push_back(avail[MIN]); } cout<< res<<endl; }
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 '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #inlcude<bits/stdc++.h> a.cc:8:5: error: 'cout' was not declared in this scope 8 | cout<<"YES"<<endl; | ^~~~ a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:8:18: error: 'endl' was not declared in this scope 8 | cout<<"YES"<<endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | #inlcude<bits/stdc++.h> a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout<<"NO"<<endl; | ^~~~ a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:10:17: error: 'endl' was not declared in this scope 10 | cout<<"NO"<<endl; | ^~~~ a.cc:10:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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 '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #inlcude<bits/stdc++.h> a.cc:5:8: error: 'a' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:5:11: error: 'b' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:5:14: error: 'c' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:7:5: error: 'cout' was not declared in this scope 7 | cout<<"YES"<<endl; | ^~~~ a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:7:18: error: 'endl' was not declared in this scope 7 | cout<<"YES"<<endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | #inlcude<bits/stdc++.h> a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout<<"NO"<<endl; | ^~~~ a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:17: error: 'endl' was not declared in this scope 9 | cout<<"NO"<<endl; | ^~~~ a.cc:9:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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); #define MAX_LIMIT 10000000 #define all(x) x.begin(),x.end() #define rs resize #define remove_zero(str) str.erase(0, str.find_first_not_of('0')); #define br break const long long kot = LLONG_MAX; #define pb push_back #define pi acos(-1) #define pp pop #define pf pop_front using ld = long double; #define endl "\n" #define rese(x,y) memset(x,y,sizeof(x)) #define ss second #define forn(i, n) for (ll i = 0; i < ll(n); i++) #define np next_permutation const int MAXIT = 100; #define ul unsigned long #define pii pair<ll,ll> #define cc continue #define ee end #define ii insert #define fr front #define mod 1000000007 #define dd distance #define up upper_bound #define pc pop_back() #define pu push #define to top //#define r reverse #define bb back #define CHARS_TOTAL 256 #define INT_BITS 32 #define SIZE 26 //#pragma GCC optimize "trapv" //#define _GLIBCXX_DEBUG //typedef std::pair<std::string,std::string>pair; const ll alpha=1e18; /* For counting number of digits, directly do floor(log10(n)+1)*/ using namespace std; ll gcd(ll a, ll b) { // Everything divides 0 if (b == 0) return a; return gcd(b, a % b); } ll powe(ll x, unsigned ll y) { ll res = 1; // Initialize result // Update x if it is more than or // equal to p while (y > 0) { // If y is odd, multiply x with result if (y & 1) res = (res*x); // y must be even now y = y>>1; // y = y/2 x = (x*x); } return res; } // Function to return LCM of two numbers ll lcm(ll a, ll b) { return (a*b)/gcd(a, b); } bool isPerfectSquare(long double x) { long double sr = sqrt(x); return ((sr - floor(sr)) == 0); } bool comp(ll a, ll b) { return (a < b); } vector<ll>divisors(ll n) { vector<ll>ve; for (ll i=1; i<=sqrt(n); i++) { if (n%i == 0) { // If divisors are equal, print only one if (n/i == i) ve.pb(i); else // Otherwise print both ve.pb(i); ve.pb(n/i); } } return ve; } bool isPrime(ll n) { if (n == 1) { return false; } ll i = 2; while (i*i <= n) { if (n % i == 0) { return false; } i += 1; } return true; } ll gcdofarray(vector<ll>&v, ll n) { ll result = v[0]; for (ll i = 1; i < n; i++) result = gcd(v[i], result); return result; } ll sumofdigits(ll n){ ll sum=0; while(n>0){ sum+=n%10; n/=10; } return sum; } bool powertwo(ll x){ return x&& (!(x&(x-1))); } string removeDuplicatesFromString(string str) { ll counter = 0; ll i = 0; ll size = str.size(); ll x; // keeps track of length of resultant string ll length = 0; while (i < size) { x = str[i] - 97; // check if Xth bit of counter is unset if ((counter & (1 << x)) == 0) { str[length] = 'a' + x; // mark current character as visited counter = counter | (1 << x); length++; } i++; } return str.substr(0, length); } ll commDiv(ll a,ll b) { // find gcd of a,b ll n = gcd(a, b); // Count divisors of n. ll result = 0; for (ll i=1; i<=sqrt(n); i++) { // if 'i' is factor of n if (n%i==0) { // check if divisors are equal if (n/i == i) result += 1; else result += 2; } } return result; } ll kash(ll a,ll b){ return (a*b)/gcd(a,b); } ll maxi(ll a,ll b){ return (a>b)?a:b; } ll mini(ll a,ll b){ return (a<b)?a:b; } bool sortByVal(const pair<ll, ll> &a, const pair<ll, ll> &b) { return (a.second < b.second); } //vector<ll>arr[1001]; //ll vis[1001]; //pair<ll,ll>p[1001]; /*void dfs(ll node){ if(vis[node])return; vis[node]=1; for(ll i=0;i<n;i++){ if (p[i].first == p[node].first || p[node].second == p[i].second){ dfs(i); } } }*/ ll check(ll arr[],ll n,ll v){ ll dp[v+1]; dp[0]=0; ll i,j; for(i=1;i<=v;i++){ dp[i]=INT_MAX; } for(i=1;i<=v;i++){ for(j=0;j<n;j++){ if(arr[i]<=i){ ll y=dp[i-arr[j]]; if(y!=INT_MAX && y+1<arr[i]){ dp[i]=y+1; } } } } return dp[v]; } bool isvowel(char ch){ if(ch=='a' || ch=='e' || ch=='i'|| ch=='o'|| ch=='u'){ return true; } return false; } ll power(ll x,ll y, ll p) { ll res = 1; // Initialize result // x = x % p; // Update x if it is more than or // equal to p while (y > 0) { // If y is odd, multiply x with result if (y & 1) res = (res*x) % p; // y must be even now y = y>>1; // y = y/2 x = (x*x) % p; } return res; } ll parent[100001]; ll find(ll a){ while(parent[a]>0){ a=parent[a]; } return a; } void Union(ll a,ll b){ parent[a]+=parent[b]; parent[b]=a; } bool ispalind(string str){ string s=str; //reverse(str.begin(),str.end()); if(s==str)return true; return false; }/* ll arr[3]; ll I[3][3],T[3][3]; void mul(ll A[3][3],ll B[3][3],ll dim){ ll res[dim+1][dim+1]; ll i,j,k; for(i=1;i<=dim;i++){ for(j=1;j<=dim;j++){ res[i][j]=0; for(k=1;k<=dim;k++){ //res[i][j]+=A[i][j]*B[k][j]; ll x=(A[i][k]*B[k][j])%mod; res[i][j]=(res[i][j]+x)%mod; } } } for(i=1;i<=dim;i++){ for(j=1;j<=dim;j++){ A[i][j]=res[i][j]; } } } ll getfib(ll n){ if(n<=2) return arr[n]; I[1][1]=I[2][2]=1; I[1][2]=I[2][1]=0; T[1][1]=0; T[1][2]=-1; T[2][1]=1; T[2][2]=3; n=n-1; while(n){ if(n%2==1){ mul(I,T,2); n--; } else{ mul(T,T,2); n=n/2; } } ll x=(arr[1]*I[1][1]+arr[2]*I[2][1])%mod; return x; }*/ /*ll c=0; vector<ll>graph[200005]; bool vis[200005]; void dfs(ll u){ if(vis[u]) return; c++; vis[u]=true; for(auto it:graph[u]){ dfs(it); } }*/ void solve(){ ll arr[3]; ll i; for(i=0;i<3;i++){ cin>>arr[i]; } sort(arr,arr+n); if(arr[0]==5 && arr[1]==5 && arr[2]==7){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } } int32_t main() { fio; //input ll tt=1; // cin>>tt; for(ll d1=0;d1<tt;d1++){ solve(); } }
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{System.out.println("NO");} } } Aa
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"); else System.out.println("No"); } }
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.println("No"); } }
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: 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: int 3 errors
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.println("No"); } }
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)){ | ~^~~ a.cc:8:37: 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<typename T> void show2dVector(vector<vector<T>>& v){ for(int i=0;i<v.size();i++){ int m=v[i].size(); cout<<i<<" : "; for(int j=0;i<m;i++){ cout<<v[i][j]<<" "; } cout<<endl; } } void bfs(const vector<vector<int>>&g, int v, vector<bool>& seen){ seen[v]=true; cout<<v<<" "; for(auto next: g[v]){ if(seen[next]){ continue; } bfs(g,next,seen); } } bool dfs(vector<vector<int>> &g,int start,int goal,vector<bool>&seen){ bool res=false; seen[start]=true; if(start==goal){ return true; } for(auto next: g[start]){ if(seen[next]){ continue; } res=dfs(g,next,goal,seen); if(res){ break; } } return res; } ll gcd(ll a,ll b) { return b? gcd(b,a%b): a; } ll lcm(ll a,ll b) { return a*b/gcd(a,b); } bool isLowerCase(char c){ return (c>='a'&&c<='z'); } ll powm(ll a,ll n, ll m){ ll ret=1; while(n>0){ if(n%2==1){ ret=(ret*a)%m; } n>>=1; a=(a*a)%m; } return ret; } const string yesno(bool ans){ return (ans?"YES":"NO"); } int main() { int a,b,c;cin>>a>>b>>c; vector<int> s(11); s[a]++; s[b]++; s[c]++; bool ans=false; if(s[5]==2&&s[7]=1){ ans=true; } cout<<yesno(ans)<<endl; return 0; }
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"; } return 0; }
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 standard input | ^~~ a.cc:8:8: error: 'a' was not declared in this scope 8 | cin>>a,b,c; | ^ a.cc:8:10: error: 'b' was not declared in this scope 8 | cin>>a,b,c; | ^ a.cc:8:12: error: 'c' was not declared in this scope 8 | cin>>a,b,c; | ^ a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 20 | cout<<"YES"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 22 | cout<<"NO"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
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 standard input | ^~~ a.cc:8:8: error: 'a' was not declared in this scope 8 | cin<<a,b,c; | ^ a.cc:8:10: error: 'b' was not declared in this scope 8 | cin<<a,b,c; | ^ a.cc:8:12: error: 'c' was not declared in this scope 8 | cin<<a,b,c; | ^ a.cc:19:14: error: lvalue required as left operand of assignment 19 | if(count5=2&&count7=1){ | ~^~~~~~~~ a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 20 | cout<<"YES"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 22 | cout<<"NO"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
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 scope; did you mean 'count5'? 19 | if(count5=2&&couunt7=1){ | ^~~~~~~ | count5 a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 20 | cout<<"YES"; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 22 | cout<<"NO"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
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 == 5) { cout << "YES" << endl; return; } else if (a == 5 && b == 5 && c == 7) { cout << "YES" << endl; return; } else { cout << "NO" << endl; return; } }
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:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 28 | return; | ^~~~~~ a.cc:33:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 33 | return; | ^~~~~~
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){ c1++; t= t/10; }; t=n; //各桁を保存 int keta[c1]; for(i=c1-1;i>=0;i--){ keta[i]=t%10; t=t/10; } int key=0; for(i=0;i<c1;i++){ if (key == 0) { if (use[keta[i]] == 0) { num += keta[i]; } else { for (j = keta[i] + 1 ;j < 10;j++) { if (use[j] == 0) { num += j; key=1; break; } } } } else { for (int l=0;l < 10;l++) { if (use[l] == 0) { num += l; break; } } } if(i<c1-1) num=num*10; } printf("%d\n",num); if (num == 0) { for (int l=1;l < 10;l++) { if (use[l] == 0) { for (i = 0;i <= c1;i++){ num = (num * 10 + l); } break; } } if (use[0] == 0) { for (i = 0;i < c1;i++) num = num / 10; for (i = 0;i < c1;i++) num = num * 10; } } printf("%d\n",num);
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.println("no"); } }else if(B==7){ if(C==5 && A==5){ System.out.println("yes"); }else{ System.out.println("no"); } }else if(C==7){ if(A==5 && B==5){ System.out.println("yes"); }else{ System.out.println("no"); } } }else{ System.out.println("no"); } } }
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 if(B==7){ if(C==5 && A==5){ System.out.println("yes"); }else{ System.out.println("no"); } }else if(C==7){ if(A==5 && B==5){ System.out.println("yes"); }else{ System.out.println("no"); } } }else{ System.out.println("no"); } } }
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{ cout << "NO"; } return 0; }
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 | cin >> s[0] >> s[1] >> s[2]; | ^ a.cc:19:17: error: 'cout' was not declared in this scope 19 | cout "YES"; | ^~~~ a.cc:22:17: error: 'cout' was not declared in this scope 22 | cout << "NO"; | ^~~~
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; using namespace std; void __print(int x) {cerr << x;} void __print(long x) {cerr << x;} void __print(long long x) {cerr << x;} void __print(unsigned x) {cerr << x;} void __print(unsigned long x) {cerr << x;} void __print(unsigned long long x) {cerr << x;} void __print(float x) {cerr << x;} void __print(double x) {cerr << x;} void __print(long double x) {cerr << x;} void __print(char x) {cerr << '\'' << x << '\'';} void __print(const char *x) {cerr << '\"' << x << '\"';} void __print(const string &x) {cerr << '\"' << x << '\"';} void __print(bool x) {cerr << (x ? "true" : "false");} template<typename T, typename V> void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';} template<typename T> void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";} void _print() {cerr << "]\n";} template <typename T, typename... V> void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);} const ll mod = 1e9+7; const double eps = 1e-9; const double pi = acos(-1); void solve(){ int a[3]; int a=0,b=0; for(int i=0;i<3;i++) { cin>>a[i]; a+=(a[i]==5); b+=(a[i]==7); } if(a==2&&b==1)cout<<"YES"; else cout<<"NO"; } int main(){ fastio int test=1; while(test--) solve(); return 0; }
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]==5); | ~^~~~~~~~~~~ a.cc:46:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 46 | if(a==2&&b==1)cout<<"YES"; | ~^~~
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: error: could not convert 'A' from 'std::vector<int>' to 'bool' 10 | if (vector<int>A == {5,5,7}){ | ^ | | | std::vector<int>
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:31: error: could not convert 'A' from 'std::vector<int>' to 'bool' 10 | if (vector<int> A == {5,5,7}){ | ^ | | | std::vector<int>
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 '==' token 10 | if (vector<int> A == [5,5,7]){ | ~ ^~~ | ) a.cc:10:31: error: could not convert 'A' from 'std::vector<int>' to 'bool' 10 | if (vector<int> A == [5,5,7]){ | ^ | | | std::vector<int>
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"; } System.out.println(message); sc.close(); } }
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 main{ | ^ a.cc:6:7: error: 'cin' does not name a type 6 | cin A >> B >> C; | ^~~ a.cc:7:7: error: expected unqualified-id before 'if' 7 | if((A + B + C) == 17){ | ^~ a.cc:9:8: error: expected unqualified-id before 'else' 9 | }else{ | ^~~~
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(); int c = sc.nextInt(); if(a*b*c==q75){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
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(); int c = sc.nextInt(); if(a*b*c==q75){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
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; }else cout <<"No"<<endl; }else if (a == 7){ if(b == 5&& c == 5){ cout << "No" <<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"<<endl; }else if (a == 7){ if(b == 5&& c == 5){ cout << "No" <<endl; } } }
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; ///< Linked to standard input | ^~~ a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout << "Yes" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:9:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout << "Yes" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:10:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 10 | }else cout << "No" << endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:10:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 10 | }else cout << "No" << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:13:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 13 | cout << "Yes"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:13:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 13 | cout << "Yes"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:14:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 14 | }else cout <<"No"<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:14:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 14 | }else cout <<"No"<<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:17:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 17 | cout << "No" <<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:17:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 17 | cout << "No" <<endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ a.cc:20:2: error: expected '}' at end of input 20 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
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 if (a == 7){ if(b == 5&& c == 5){ cout << "No" <<endl; } } }
a.cc: In function 'int main()': a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> 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 scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:8:19: error: 'cout' was not declared in this scope 8 | }else cout << "No" << endl; | ^~~~ a.cc:8:35: error: 'endl' was not declared in this scope 8 | }else cout << "No" << endl; | ^~~~ a.cc:11:15: error: 'cout' was not declared in this scope 11 | cout << "Yes"<<endl; | ^~~~ a.cc:11:30: error: 'endl' was not declared in this scope 11 | cout << "Yes"<<endl; | ^~~~ a.cc:12:15: error: 'cout' was not declared in this scope 12 | }else cout <<"No"<<endl; | ^~~~ a.cc:12:28: error: 'endl' was not declared in this scope 12 | }else cout <<"No"<<endl; | ^~~~ a.cc:15:17: error: 'cout' was not declared in this scope 15 | cout << "No" <<endl; | ^~~~ a.cc:15:32: error: 'endl' was not declared in this scope 15 | cout << "No" <<endl; | ^~~~ a.cc:18:2: error: expected '}' at end of input 18 | } | ^ a.cc:1:11: note: to match this '{' 1 | int main(){ | ^
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 if (a == 7){ if(b == 5&& c == 5){ cout << "No" <<endl; } } }
a.cc: In function 'int main()': a.cc:3:5: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> 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 scope 7 | cout << "Yes" << endl; | ^~~~ a.cc:8:19: error: 'cout' was not declared in this scope 8 | }else cout << "No" << endl; | ^~~~ a.cc:8:35: error: 'endl' was not declared in this scope 8 | }else cout << "No" << endl; | ^~~~ a.cc:11:15: error: 'cout' was not declared in this scope 11 | cout << "Yes"<<endl; | ^~~~ a.cc:11:30: error: 'endl' was not declared in this scope 11 | cout << "Yes"<<endl; | ^~~~ a.cc:12:15: error: 'cout' was not declared in this scope 12 | }else cout <<"No"<<endl; | ^~~~ a.cc:12:28: error: 'endl' was not declared in this scope 12 | }else cout <<"No"<<endl; | ^~~~ a.cc:15:17: error: 'cout' was not declared in this scope 15 | cout << "No" <<endl; | ^~~~ a.cc:15:32: error: 'endl' was not declared in this scope 15 | cout << "No" <<endl; | ^~~~ a.cc:18:2: error: expected '}' at end of input 18 | } | ^ a.cc:1:11: note: to match this '{' 1 | int main(){ | ^
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 | ^ | ; 7 | if(A == 5 %% B == 7 %% C == 5) printf("YES"); | ~~ main.c:8:3: error: 'else' without a previous 'if' 8 | else printf("NO"); | ^~~~
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 17 | } | ^
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 : array){ if(val == 5){ match1++; }else if(val == 7){ match2++; } } if(match1 == 2 && match2 == 1){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
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(Collectors.groupingBy(s -> s)) .forEach((k,v) -> if(k == 5){ if(v.size() == 2){ matchCount += 1; } }else if(k == 7){ if(v.size() == 1){ matchCount += 1; } } ); if(matchCount == 2){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
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"; else cout<<"NO"; return0; }
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: error: expected '}' at end of input 15 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
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"); } return 0; }
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); | ^ main.c:12:16: error: expected expression before '%' token 12 | printf(%s, "YES"); | ^ main.c:15:16: error: expected expression before '%' token 15 | printf(%s, "YES"); | ^ main.c:18:14: error: expected expression before '%' token 18 | printf(%s, "NO"); | ^ main.c:21:12: error: expected expression before '%' token 21 | printf(%s, "NO"); | ^
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"); } return; }
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); | ^ main.c:12:16: error: expected expression before '%' token 12 | printf(%s, "YES"); | ^ main.c:15:16: error: expected expression before '%' token 15 | printf(%s, "YES"); | ^ main.c:18:14: error: expected expression before '%' token 18 | printf(%s, "NO"); | ^ main.c:21:12: error: expected expression before '%' token 21 | printf(%s, "NO"); | ^ main.c:24:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 24 | return; | ^~~~~~ main.c:3:5: note: declared here 3 | int main() | ^~~~
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 >> b >> c; | ^ a.cc:8:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 8 | std::sort(arr); | ^~~~ | qsort
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/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t' 28 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' +++ |+#include <stddef.h> 1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc. /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t' 37 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'? 57 | cookie_read_function_t *read; /* Read bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~ | cookie_seek_function_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'? 58 | cookie_write_function_t *write; /* Write bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~~ | cookie_close_function_t /usr/include/stdio.h:314:35: error: unknown type name 'size_t' 314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) | ^~~~~~ /usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' 129 | #include <bits/stdio_lim.h> +++ |+#include <stddef.h> 130 | /usr/include/stdio.h:320:47: error: unknown type name 'size_t' 320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW | ^~~~~~ /usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:340:34: error: unknown type name 'size_t' 340 | int __modes, size_t __n) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:346:24: error: unknown type name 'size_t' 346 | size_t __size) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:385:44: error: unknown type name 'size_t' 385 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:389:45: error: unknown type name 'size_t' 389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:690:30: error: unknown type name 'size_t' 690 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:693:28: error: unknown type name 'size_t' 693 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:698:27: error: unknown type name 'size_t' 698 | size_t *__restrict __n, | ^~~~~~ /usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:8: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:46: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:729:22: error: unknown type name 'size_t' 729 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:8: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:53: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:736:23: error: unknown type name 'size_t' 736 | size_t __n, FILE *__restrict __s) __nonnull((4)); | ^~~~~~ /usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:8: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:55: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:757:31: error: unknown type name 'size_t' 757 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:8: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:62: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:760:32: error: unknown type name 'size_t' 760 | size_t __n, FILE *__restrict __stream) | ^~~~~~ /usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
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"); | ^~~~~~ | ; main.c:8:3: error: 'else' without a previous 'if' 8 | else ifif(A==5&&B==5&&C==7)printf("YES\n"); | ^~~~ main.c:8:30: error: expected ';' before 'printf' 8 | else ifif(A==5&&B==5&&C==7)printf("YES\n"); | ^~~~~~ | ; main.c:9:3: error: 'else' without a previous 'if' 9 | else printf("NO\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(0); } } else if (a==c) { if (a==5 && b==7){ System.out.println("YES"); System.exit(0); } } else if (b==c) { if (b==5 && a==7){ System.out.println("YES"); System.exit(0); } } System.out.println("NO"); } }
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 a location: class Main Main.java:10: error: cannot find symbol if (a==5 && c==7){ ^ symbol: variable c location: class Main Main.java:14: error: cannot find symbol } else if (a==c) { ^ symbol: variable a location: class Main Main.java:14: error: cannot find symbol } else if (a==c) { ^ symbol: variable c location: class Main Main.java:15: error: cannot find symbol if (a==5 && b==7){ ^ symbol: variable a location: class Main Main.java:15: error: cannot find symbol if (a==5 && b==7){ ^ symbol: variable b location: class Main Main.java:19: error: cannot find symbol } else if (b==c) { ^ symbol: variable b location: class Main Main.java:19: error: cannot find symbol } else if (b==c) { ^ symbol: variable c location: class Main Main.java:20: error: cannot find symbol if (b==5 && a==7){ ^ symbol: variable b location: class Main Main.java:20: error: cannot find symbol if (b==5 && a==7){ ^ symbol: variable a location: class Main 12 errors
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(0); } } elif (a==c){ if (a==5 && b==7){ System.out.println("YES"); System.exit(0); } } elif (b==c){ if (b==5 && a==7){ System.out.println("YES"); System.exit(0); } } System.out.println("NO"); } }
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] == 5 && a[2] == 7 ){ cout << "YES"<< endl ; } else{ cout << "NO" << endl; } }
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++; }else{ System.out.println("NO"); } } if(count5 == 2 && count7 == 1) System.out.println("YES"); else{ System.out.println("NO"); } } }
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"; } } else if (a == 7) { if ((b==5) && (c==5)){ x = "YES"; } } System.out.println(x); } }
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 errors
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: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | cout<<"YES"<<"\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 8 | cout<<"NO"<<"\n"; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~
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; a.cc:7:9: error: expected primary-expression before 'int' 7 | map<int, int> m; | ^~~ a.cc:9:5: error: 'm' was not declared in this scope 9 | m[a]++, m[b]++, m[c]++; | ^
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 | cout<<"NO" | ^ | ; 20 | } | ~
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: expected ';' before '}' token 17 | cout<<"NO" | ^ | ; 18 | } | ~
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(fcount == 2 && scount == 1) System.out.println("YES"); else System.out.println("NO");
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){ cout<<a<<" "<<b<<endl; } //=============== (template) ========================================== inline void solve(){ int a,b,c; cin>>a>>b>>c; int mp[10]={}; mp[a]++; mp[c]++; mp[b]++; if (mp[5]==2 and mp[7]==1) printl("YES"); else printl("NO"); } signed main() { fast_io; t_casout1 ; return 0; }
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"); } else { System.out.println("NO"); } } }
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("YES"); } else { System.out.println("NO"); } } }
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.getOrDefault(k,0)+1); } if(map.get(5) == 2 && map.get(7) ==1){ System.out.println("YES"); return; } System.out.println("NO"); }
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(); map.put(k, map.getOrDefault(k,0)+1); } if(map.get(5) == 2 && map.get(7) ==1){ System.out.println("YES"); return; } System.out.println("NO"); } }
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(); map.put(k, map.getOrDefault(k,0)+1); } if(map.get(5) == 2 && map.get(7) ==1){ System.out.println("YES"); } System.out.println("NO"); } }
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[1]++; } if(count[0]==2&&count[1]==1) System.out.println("YES"); else System.out.println("NO"); sc.close(); } }
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().sorted().collect(Collectors.joining(""))); }
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.out.println("NO"); } } }
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 2 errors
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(tem, text[j-1]); strcpy(text[j-1], text[j]); strcpy(text[j], tem); } } } for(i=0; i<N; i++) { memcpy(senten + i * L, text[i], L); } print("%S",senten ); return 0; }
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] == 5 && num[2] = 5) { printf("YES") } else { printf("NO") } } else if(num[2] == 7) { if(num[0] == 5 && num[1] = 5) { printf("YES") } else { printf("NO") } } return 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 | } | ~ main.c:19:18: error: expected ';' before '}' token 19 | printf("NO") | ^ | ; 20 | } | ~ main.c:24:30: error: lvalue required as left operand of assignment 24 | if(num[0] == 5 && num[2] = 5) | ^ main.c:26:20: error: expected ';' before '}' token 26 | printf("YES") | ^ | ; 27 | } | ~ main.c:30:18: error: expected ';' before '}' token 30 | printf("NO") | ^ | ; 31 | } | ~ main.c:35:30: error: lvalue required as left operand of assignment 35 | if(num[0] == 5 && num[1] = 5) | ^ main.c:37:20: error: expected ';' before '}' token 37 | printf("YES") | ^ | ; 38 | } | ~ main.c:41:18: error: expected ';' before '}' token 41 | printf("NO") | ^ | ; 42 | } | ~
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) { printf("YES") } else { printf("NO") } } else if(num[2] == 7) { if(num[0] == 5 && num[1] = 5) { printf("YES") } else { printf("NO") } } return 0; }
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-declaration] 8 | num[i]=atoi(argv[i]); | ^~~~ main.c:12:30: error: lvalue required as left operand of assignment 12 | if(num[1] == 5 && num[2] = 5) | ^ main.c:14:20: error: expected ';' before '}' token 14 | printf("YES") | ^ | ; 15 | } | ~ main.c:18:18: error: expected ';' before '}' token 18 | printf("NO") | ^ | ; 19 | } | ~ main.c:23:30: error: lvalue required as left operand of assignment 23 | if(num[0] == 5 && num[2] = 5) | ^ main.c:25:20: error: expected ';' before '}' token 25 | printf("YES") | ^ | ; 26 | } | ~ main.c:29:18: error: expected ';' before '}' token 29 | printf("NO") | ^ | ; 30 | } | ~ main.c:34:30: error: lvalue required as left operand of assignment 34 | if(num[0] == 5 && num[1] = 5) | ^ main.c:36:20: error: expected ';' before '}' token 36 | printf("YES") | ^ | ; 37 | } | ~ main.c:40:18: error: expected ';' before '}' token 40 | printf("NO") | ^ | ; 41 | } | ~
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") } } else if(argv[2] == 7) { if(argv[0] == 5 && argv[1] = 5) { printf("YES") } else { printf("NO") } } return 0; }
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 operand of assignment 7 | if(argv[1] == 5 && argv[2] = 5) | ^ main.c:9:20: error: expected ';' before '}' token 9 | printf("YES") | ^ | ; 10 | } | ~ main.c:13:18: error: expected ';' before '}' token 13 | printf("NO") | ^ | ; 14 | } | ~ main.c:16:19: warning: comparison between pointer and integer 16 | else if(argv[1] == 7) | ^~ main.c:18:16: warning: comparison between pointer and integer 18 | if(argv[0] == 5 && argv[2] = 5) | ^~ main.c:18:32: error: lvalue required as left operand of assignment 18 | if(argv[0] == 5 && argv[2] = 5) | ^ main.c:20:20: error: expected ';' before '}' token 20 | printf("YES") | ^ | ; 21 | } | ~ main.c:24:18: error: expected ';' before '}' token 24 | printf("NO") | ^ | ; 25 | } | ~ main.c:27:19: warning: comparison between pointer and integer 27 | else if(argv[2] == 7) | ^~ main.c:29:16: warning: comparison between pointer and integer 29 | if(argv[0] == 5 && argv[1] = 5) | ^~ main.c:29:32: error: lvalue required as left operand of assignment 29 | if(argv[0] == 5 && argv[1] = 5) | ^ main.c:31:20: error: expected ';' before '}' token 31 | printf("YES") | ^ | ; 32 | } | ~ main.c:35:18: error: expected ';' before '}' token 35 | printf("NO") | ^ | ; 36 | } | ~
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 << "YES" << endl; } else { cout << "NO" << endl; }
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}; int main(){ for(int i = 0 ; i < 3 ; ++i) scanf("%d", a + i); sort(a, a + n); for(int i = 0 ; i < 3 ; ++i) if(a[i] != b[i]) exit((puts("NO"), 0)); puts("YE
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 | ^ a.cc:19:10: error: expected '}' at end of input a.cc:12:11: note: to match this '{' 12 | int main(){ | ^
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/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)' 4762 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last) | ^~~~ /usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate expects 2 arguments, 1 provided /usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)' 4793 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~ /usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate expects 3 arguments, 1 provided In file included from /usr/include/c++/14/algorithm:86: /usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)' 292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); | ^~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate expects 4 arguments, 1 provided /usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)' 296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); | ^~~~ /usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate expects 3 arguments, 1 provided
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::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Value = const char [2]]': /usr/include/c++/14/bits/stl_algobase.h:2163:12: required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__count_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const char [2]>; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]' 2163 | if (__pred(__first)) | ~~~~~~^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4033:29: required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char [2]; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]' 4033 | return std::__count_if(__first, __last, | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 4034 | __gnu_cxx::__ops::__iter_equals_val(__value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:7:12: required from here 7 | if (count(s.begin(), s.end(), "5") == 2 && | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/predefined_ops.h:270:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 270 | { return *__it == _M_value; } | ~~~~~~^~~~~~~~~~~
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++ forbids comparison between pointer and integer [-fpermissive] 8 | count(s.begin(), s.end8), "7" == 1) { | ~~~~^~~~ 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::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Value = const char [2]]': /usr/include/c++/14/bits/stl_algobase.h:2163:12: required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__count_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const char [2]>; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]' 2163 | if (__pred(__first)) | ~~~~~~^~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4033:29: required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char [2]; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]' 4033 | return std::__count_if(__first, __last, | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 4034 | __gnu_cxx::__ops::__iter_equals_val(__value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:7:12: required from here 7 | if (count(s.begin(), s.end(), "5") == 2 && | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/predefined_ops.h:270:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 270 | { return *__it == _M_value; } | ~~~~~~^~~~~~~~~~~
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> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #include <memory> #include <new> #include <numeric> #include <ostream> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdexcept> #include <streambuf> #include <string> #include <typeinfo> #include <utility> #include <valarray> #include <vector> #include <regex> #define REP(i,n) for(int i = 0; i < n; i++) #define FOR(i,j,n) for(int i = j; i < n; i++) #define RFOR(i,j,n) for(int i = j-1; i >= n; i--) #define PREC(n) fixed << setprecision(n) #define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; } #define YesorNo(a) printf(a?"YES\n":"NO\n") #define _LIBCPP_DEBUG 0 using namespace std; int64_t MOD = 1000000007; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; bool flag = falser; if(a == 5 && b == 5 && c == 7) flag = true; if(a == 7 && b == 5 && c == 5) flag = true; if(a == 5 && b == 7 && c == 5) flag = true; YesorNo(flag); return 0; } //templete by private_yusuke
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 && vii==1) cout<<"Yes"<<endl; else cout<<"No"<<endl; }
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){ | ^~