submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s015839780
p04043
C++
if(A != 7 && B != 7 && C != 7) { cout << "NO"; } else { if((A == 5 && B == 5) ||(A == 5 && C == 5) (B == 5 && C == 5) ) { cout << "YES"; } else { cout << "NO"; } }
a.cc:1:1: error: expected unqualified-id before 'if' 1 | if(A != 7 && B != 7 && C != 7) | ^~ a.cc:5:1: error: expected unqualified-id before 'else' 5 | else | ^~~~
s351896245
p04043
C++
#include<bits/stdc++.h> //#include<iostream> //#include<string> #define ll long long #define uint unsigned int #define ld long double #define SAM ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define FOR(i,a,b) for(int i=a;i<b;++i) #define RFOR(i,a,b) for(int i=a;i>b;--i) #define ...
a.cc: In function 'int main()': a.cc:27:30: error: expected ';' before 'for' 27 | memset(arr,0,sizeof(arr)) | ^ | ; a.cc:28:9: error: 'i' was not declared in this scope 28 | FOR(i,0,3) | ^ a.cc:10:33: note: in definition o...
s235960396
p04043
C++
#include<iostream> #include<cstdio> #include<cstring> #include<cstdlib> #include<cmath> #include<algorithm> #include<queue> #include<vector> #define For(i,k,delta) for(i=0;i<k;i+=delta) using namespace std; typedef long long ll; typedef short int sh; const int inf=0x3f3f3f3f; const int MAX=2e5+10; const int mod=1e9+...
a.cc:21:8: error: ISO C++ forbids declaration of 'Mms' with no type [-fpermissive] 21 | inline Mms(T Array[],int k) | ^~~ a.cc: In function 'int Mms(T*, int)': a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type] 24 | } | ^
s690481920
p04043
C++
#include <iostream> using namespace std; int main () { int a,b,c; cin >> a >> b >> c; if (a==7 && b==5 && c==5){ cout << "YES"; }else if (a==5 && b==7 && c==5){ cout << "YES"; }else if (a==5 && b==5 && c==7){ cout << "YES"; }else{ cout <<"NO" } }
a.cc: In function 'int main()': a.cc:13:20: error: expected ';' before '}' token 13 | cout <<"NO" | ^ | ; 14 | } | ~
s134101938
p04043
C++
#include <bit/stdc++.h> using namespace std; int main() { vector<int> vec(3); for (int i=0; i<3; i++){ cin >> vec.at(i); } sort(vec.begin(),vec.end()); if(vec.at(0)==7 && vec.at(1)==5 && vec.at(2)==5){ cout << "YES"; } else{ cout << "NO"; } return 0; }
a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory 1 | #include <bit/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s514060542
p04043
C
#include <bits/stdc++.h> using namespace std; int main() { int N,L; cin >> N >> L; vector<string>A(N); for(int i=0;i<N;i++){ cin >> A.at(i); } sort(A.begin(),A.end()); string C; for(int j=0;j<N;j++){ C+=A.at(j); } cout << C << endl; }
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s215843233
p04043
C
#include <bits/stdc++.h> using namespace std; int main() { int N,L; cin >> N >> L; vector<string>A(N); for(int i=0;i<N;i++){ cin >> A.at(i); } sort(A.begin(),A.end()); string C; for(int j=0;j<N;j++){ C+=A.at(j); } cout << C << endl; }
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s966883428
p04043
Java
int
Main.java:1: error: class, interface, enum, or record expected int ^ 1 error
s669854325
p04043
Java
import java.util.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class A { static class IO { BufferedReader br; StringTokenizer st; public IO() { br = new BufferedReader...
Main.java:7: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s270136405
p04043
C++
// ------------------------------------------------------- #include <iostream> #include <string> #include <stdio.h> #include <cassert> #include <vector> using namespace std; int main() { int A, B, C; // string s; #ifdef DEBUG int a = 5; int b = 7; int c = 5; A = a; B = b; C = c; #elif cin >> A >> B >> C; #...
a.cc:19:6: error: #elif with no expression 19 | #elif | ^
s633606053
p04043
C++
// ------------------------------------------------------- #include <iostream> #include <string> #include <stdio.h> #include <windows.h> #include <cassert> #include <vector> using namespace std; int main() { int A, B, C; // string s; #ifdef DEBUG int a = 5; int b = 7; int c = 5; A = a; B = b; C = c; #elif ci...
a.cc:5:10: fatal error: windows.h: No such file or directory 5 | #include <windows.h> | ^~~~~~~~~~~ compilation terminated.
s624296478
p04043
C++
#include <iostream> #include <string> #include <stdio.h> #include <windows.h> #include <cassert> #include <vector> using namespace std; int main() { int A, B, C; // string s; cin >> A >> B >> C; vector<int> vec{ A, B, C }; // cin >> s; vector<int> five; vector<int> seven; for (int i : vec) { if (i == 5) { ...
a.cc:4:10: fatal error: windows.h: No such file or directory 4 | #include <windows.h> | ^~~~~~~~~~~ compilation terminated.
s372413398
p04043
C++
#include <iostream> #include <string> using namespace std; int main() { cout << "YES" << s << endl; }
a.cc: In function 'int main()': a.cc:6:22: error: 's' was not declared in this scope 6 | cout << "YES" << s << endl; | ^
s046415860
p04043
C++
A=0;
a.cc:1:1: error: 'A' does not name a type 1 | A=0; | ^
s017226030
p04043
C++
#include <iostream> using namespace std; int main(){ string 1,2,3; cin>>1>>2>>3; count1=0; count2=0; for(int i=1;i<4;++i){ if(i.size()==5){ count1++; } else if(i.size()==7){ count2++; } } if(count1==2 && count2==1){ cout<<"YES"<<endl; } else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:10: error: expected unqualified-id before numeric constant 6 | string 1,2,3; | ^ a.cc:7:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 7 | cin>>1>>2>>3; | ~~~^~~ | | | ...
s025464490
p04043
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; ll h, w, a, b, ans, f[10000]; ll binpow(ll a, ll b) { if (b == 1) return a; if (b == 0) return 1; if (b % 2 == 0) { ll temp = binpow(a, b/2) % mod; return (temp * temp) % mod; } else { return binpow(a, b-1) % mod; ...
a.cc: In function 'll calc(ll, ll)': a.cc:42:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] 42 | return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD; | ^ cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith] a.c...
s459855828
p04043
C
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a==5 || a==7) cout<<"YES"; else if(b==5 || b==7) cout<<"YES"; else if(c==5 ||c==7) cout<<"YES"; else cout<<"NO"; }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s113404124
p04043
C++
#include <bits/stdc++.h> using namespace std; int main () { vector<int> a(3); for (int i = 0; i < 3; i++) { cin >> a[i] >> endl; } sort(a.begin(), a.end()); if (a[0] == 5 && a[1] == 5 && a[2] == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:17: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 7 | cin >> a[i] >> endl; | ~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/...
s871172720
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >>A>>B>>C; if(A+B+C == 17){ cout << "YES" <<endl; } else{ cout << "NO" << endl; } return0; }
a.cc: In function 'int main()': a.cc:12:3: error: 'return0' was not declared in this scope 12 | return0; | ^~~~~~~
s874854292
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cout >>A>>B>>C; int count=0; if(A == 5 || A == 7){ count++; } if(B == 5 || B == 7 ){ count++; } if(C == 5 || C == 7){ count++; } if(count==3 && A+B+C == 12){ cout << "YES" <<endl; } else{ cout << "NO" <<en...
a.cc: In function 'int main()': a.cc:5:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 5 | cout >>A>>B>>C; | ~~~~ ^~~ | | | | | int | std::ostream {aka std::basic_ostream<char>} a.cc:5:8: note: candidate: '...
s856997202
p04043
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int n,l,i; String s; i=0; cin>> n >> l; for(i=0;i<n;i++) { cin>>s; sort(s+0,s+l); for(i=0;i<n;i++) { cout<<s; } } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'String' was not declared in this scope 8 | String s; | ^~~~~~ a.cc:13:10: error: 's' was not declared in this scope 13 | cin>>s; | ^
s426912738
p04043
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int n,l,i; String s; i=0; cin>> n >> l; for(i=0;i<n;i++) { cin>>s; sort(s+0,s+l); for(i=0;i<n;i++) { cout<<s[i]; } } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'String' was not declared in this scope 8 | String s; | ^~~~~~ a.cc:13:10: error: 's' was not declared in this scope 13 | cin>>s; | ^
s316642420
p04043
C++
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int n,l,i; String s[1000]; i=0; cin>> n >> l; for(i=0;i<n;i++) { cin>>s[i]; } sort(s+0,s+l); for(i=0;i<n;i++) { cout<<s[i]; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'String' was not declared in this scope 8 | String s[1000]; | ^~~~~~ a.cc:13:10: error: 's' was not declared in this scope 13 | cin>>s[i]; | ^ a.cc:16:8: error: 's' was not declared in this scope 16 | sort(s+0,s+l); | ...
s672950202
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int n,l,i; vector<String> s(100); i=0; cin>> n >> l; for(i=0;i<n;i++) { cin>>s[i]; } sort(s.begin(),s.end()); for(i=0;i<n;i++) { cout<<s[i]; } return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: 'String' was not declared in this scope 6 | vector<String> s(100); | ^~~~~~ a.cc:6:16: error: template argument 1 is invalid 6 | vector<String> s(100); | ^ a.cc:6:16: error: template argument 2 is invalid a.cc:11:11: error...
s926224988
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int n,l,i; vector<String> s[100]; i=0; cin>> n >> l; for(i=0;i<n;i++) { cin>>s[i]; } sort(v.begin(),v.end()); for(i=0;i<n;i++) { cout<<s[i]; } return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: 'String' was not declared in this scope 6 | vector<String> s[100]; | ^~~~~~ a.cc:6:16: error: template argument 1 is invalid 6 | vector<String> s[100]; | ^ a.cc:6:16: error: template argument 2 is invalid a.cc:14:8: error:...
s517152121
p04043
C++
#include<iostream> using namespace std; int main() { int a[3]; for(i=0;i<3;i++) { cin>>a[i]; } sort(a,a+3); if((a[0]==5)&&(a[1]==5)&&(a[2]==7)) { cout<<"YES"; } else { cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:6:7: error: 'i' was not declared in this scope 6 | for(i=0;i<3;i++) | ^ a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'? 10 | sort(a,a+3); | ^~~~ | short
s860835245
p04043
C++
#include<iostream> using namespace std; int main() { 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"; } return ...
a.cc: In function 'int main()': a.cc:20:15: error: expected ';' before '}' token 20 | cout<<"yes" | ^ | ; 21 | } | ~
s429741580
p04043
C++
#include<iostream> int main() { 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"; } return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin>>a >> b >> c; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linke...
s723568671
p04043
C++
xz
a.cc:1:1: error: 'xz' does not name a type 1 | xz | ^~
s519359349
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<int> x = {a,b,c}; cin >> a >> b >> c; sort(x.begin(), x.end()); if(a==5 && b==5 && c==7) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:5:20: error: 'a' was not declared in this scope 5 | vector<int> x = {a,b,c}; | ^ a.cc:5:22: error: 'b' was not declared in this scope 5 | vector<int> x = {a,b,c}; | ^ a.cc:5:24: error: 'c' was not declared in this scope...
s366231244
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; sort(a, b, c); if(a==5 && b==5 && c==7) cout << "YES" << endl; else cout << "NO" << endl; }
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: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAcc...
s405710887
p04043
C++
#include <iostream> using namespace std; int main(void){ int A, B, C; cin >> A >> B >> C; if (A == 7 && B == 5 && C == 5) cout << "YES" << endl; else if (B == 7 && A == 5 && C == 5) cout << "YES" << endl; else if (C == 7 && A == 5 && B == 5) cout << "YES" << endl; else { cout << "NO" << endl;...
a.cc: In function 'int main()': a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s372093581
p04043
C++
// यस्य स्मरणमात्रेण जन्मसंसारबन्धनात् । विमुच्यते नमस्तस्मै विष्णवे प्रभविष्णवे ॥ /**** * Author- Indrajeet Mishra * MNNIT Allahabad, Prayagraj * Chemical Engineering undergraduate ****/ /*#pragma warning(disable:4996) #pragma comment(linker, "/stack:200000000") #...
a.cc: In function 'int main()': a.cc:52:5: error: 'ios_base' has not been declared 52 | ios_base::sync_with_stdio(false); | ^~~~~~~~ a.cc:53:5: error: 'cin' was not declared in this scope 53 | cin.tie(NULL); | ^~~ a.cc:21:1: note: 'std::cin' is defined in header '<iostream>'; this is p...
s561288017
p04043
C++
#include <iostream> #include <string> using namespace std; int main() { int a, b, c; str ans = "NO"; cin >> a >> b >> c; if(a==5||a==7){ if(b==5||b==7){ if(b==5||b==7){ if(a+b+c==17){ ans = "YES"; } } } } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'str' was not declared in this scope; did you mean 'std'? 7 | str ans = "NO"; | ^~~ | std a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'? 13 | ans = "YES"; | ^~~ | abs a.cc:18...
s472133547
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; int f=0,s=0; if(a===5) f++; if(a==7) s++; if(b==7) s++; if(b==5) f++; if(c==5) f++; if(c==7) s++; if(f==2 && s==1) cout << "YES\n"; else cout << "NO\n"; }
a.cc: In function 'int main()': a.cc:7:9: error: expected primary-expression before '=' token 7 | if(a===5) f++; | ^
s193990029
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a>=5 && b >= 7 && c >=5) cout << "YES\n" else cout << "NO\n" }
a.cc: In function 'int main()': a.cc:6:46: error: expected ';' before 'else' 6 | if(a>=5 && b >= 7 && c >=5) cout << "YES\n" | ^ | ; 7 | else cout << "NO\n" | ~~~~ ...
s168050575
p04043
C++
#include <bits/stdc++.h> #define ll long long int using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7)) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:8:22: error: expected primary-expression before '||' token 8 | if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7)) | ^~
s026834463
p04043
C++
#include <bits/stdc++.h> #define ll long long int using namepace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7)) cout << "YES"; else cout << "NO"; return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'namepace' 3 | using namepace std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | cin >> a >> b >> c; | ^~~ | std::cin In file included from /usr/i...
s587218441
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if (a==7){ if (b==5 and c==5){ cout << "YES" << endl; } else{ cout << "NO" << endl; } else if (a==5){ if ((b==5 and c==7) or (b==7 and c==5)){ cout << "YES" << endl; } ...
a.cc: In function 'int main()': a.cc:17:3: error: expected '}' before 'else' 17 | else if (a==5){ | ^~~~ a.cc:10:12: note: to match this '{' 10 | if (a==7){ | ^
s024164984
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if (a==7){ if (b==5 and c==5){ cout << 'yes' << endl; } else{ cout << 'no' << endl; } else if (a==5){ if ((b==5 and c==7) or (b==7 and c==5)){ cout << 'yes' << endl; } ...
a.cc:12:18: warning: multi-character character constant [-Wmultichar] 12 | cout << 'yes' << endl; | ^~~~~ a.cc:15:15: warning: multi-character character constant [-Wmultichar] 15 | cout << 'no' << endl; | ^~~~ a.cc:19:14: warning: multi-character character...
s082471444
p04043
Java
import java.util.Scanner; public class Contest { public static void main(String[] args) { Scanner sc=new Scanner (System.in); int a,b,c; a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if(a==5&&b==5&&c==7) { System.out.println("YES"); } else if(...
Main.java:3: error: class Contest is public, should be declared in a file named Contest.java public class Contest { ^ 1 error
s247933632
p04043
C
#include <iostream> using namespace std; int main(void) { int A = 5; int B = 7; int C = 5; int a, b, c; cin >> a >> b >> c; if (a == A && b == B && c == C){ cout << "YES" << endl; } else if (a == B && b == C && c == A){ cout << "YES" << endl; } else if (a == C &...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s598578247
p04043
C
#include <iostream> using namespace std; int main(void) { int A = 5; int B = 7; int C = 5; int a, b, c; cin >> a >> b >> c; if (a == A && b == B && c == C){ cout << "YES"; } else if (a == B && b == C && c == A){ cout << "YES"; } else if (a == C && b == A && c ==...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s706762363
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int arr[4]; cin >> a[0]>> a[1] >> a[2]; if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5) { cout << "Yes" << endl; } else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:7:8: error: 'a' was not declared in this scope 7 | cin >> a[0]>> a[1] >> a[2]; | ^ a.cc:8:10: error: 'b' was not declared in this scope 8 | if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5) | ^ a.cc:8:16: error: 'c' was not declared in this...
s909109278
p04043
C++
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch #include<bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(),(c).end()); #define pb push_back #define MP make_pair #define pii pair<int,int> #define pcc pair<char,char> #define pic pair<int,char> #define pci pair<char,int> #define VS vector<string> ...
a.cc: In function 'int main()': a.cc:105:1: error: a template declaration cannot appear at block scope 105 | template<typename T>inline T S(T a) | ^~~~~~~~ a.cc:115:1: error: a template declaration cannot appear at block scope 115 | template<typename T>inline ll tolong(T a) | ^~~~~~~~ a.cc:127:1: error...
s131888135
p04043
C
#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if((a==5&&b==5&&c==7||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:6:66: error: expected ')' before 'printf' 6 | if((a==5&&b==5&&c==7||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)) | ~ ^ | ) 7 | prin...
s481346672
p04043
C++
#include <iostream> using namespace std; int main () { int a,b,c; cin >> a >> b >> c; if (a+b+c == 17) { cout << "Yes"; } else { cout << "No"; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s527400327
p04043
C++
#include <iostream> using namespace std; int main () { int a,b,c; cin >> a >> b >> c; if (a == 5 || b == 5 || c == 7) { cout << "Yes"; } else if (a == 5 || b == 7 || c == 5) { cout << "Yes"; } else if (a == 7 || b == 5 || c == 5) { cout << "Yes"; } else { cout << "No"; return...
a.cc: In function 'int main()': a.cc:24:2: error: expected '}' at end of input 24 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s980322020
p04043
C++
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch #include<bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(),(c).end()); #define pb push_back #define MP make_pair #define pii pair<int,int> #define pcc pair<char,char> #define pic pair<int,char> #define pci pair<char,int> #define VS vector<string> ...
a.cc: In function 'int main()': a.cc:105:1: error: a template declaration cannot appear at block scope 105 | template<typename T>inline T S(T a) | ^~~~~~~~ a.cc:115:1: error: a template declaration cannot appear at block scope 115 | template<typename T>inline ll tolong(T a) | ^~~~~~~~ a.cc:127:1: error...
s403712149
p04043
C++
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch #include<bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(),(c).end()); #define pb push_back #define MP make_pair #define pii pair<int,int> #define pcc pair<char,char> #define pic pair<int,char> #define pci pair<char,int> #define VS vector<string> ...
a.cc: In function 'int main()': a.cc:88:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 88 | int main() | ^~ a.cc:88:9: note: remove parentheses to default-initialize a variable 88 | int main() | ^~ | -- a.cc:88:9: note: or repl...
s517261372
p04043
C++
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch #include<bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(),(c).end()); #define pb push_back #define MP make_pair #define pii pair<int,int> #define pcc pair<char,char> #define pic pair<int,char> #define pci pair<char,int> #define VS vector<string> ...
a.cc: In function 'int main()': a.cc:105:1: error: a template declaration cannot appear at block scope 105 | template<typename T>inline T S(T a) | ^~~~~~~~ a.cc:115:1: error: a template declaration cannot appear at block scope 115 | template<typename T>inline ll tolong(T a) | ^~~~~~~~ a.cc:127:1: error...
s541323974
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int fives=0, sevens=0; if(a == 5) fives++; if(b == 5) fives++; if(c == 5) fives++; if(a == 7) sevens++; if(b == 7) sevens++; if(c == 7) sevens++; if(fives == 2 && se...
a.cc:24:15: warning: missing terminating " character 24 | cout << "NO; | ^ a.cc:24:15: error: missing terminating " character 24 | cout << "NO; | ^~~~ a.cc: In function 'int main()': a.cc:25:6: error: expected primary-expression before 'return' 25 | retu...
s163354146
p04043
C++
#inclde <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if(A==5,B==5,C==7||A==5,B==7,C==5||A==7,B==5,C==5){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include? 1 | #inclde <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 hea...
s977251906
p04043
C++
#include <bits/stdc++.h> using namespce std; int main () { int A, B, C; cin >> A >> B >> c; if (A = 5, B = 5, C = 7 || A = 5, B = 7, C = 5 || A = 7, B = 5, C = 5) { cout << "YES" << endl; } else { cout "NO" << endl; } }
a.cc:2:7: error: expected nested-name-specifier before 'namespce' 2 | using namespce std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> A >> B >> c; | ^~~ | std::cin In file included from /usr/i...
s196712825
p04043
C
##include<stdio.h> int main(){ int a; int count1=0,count2=0; for(int i=1;i<=3;i++){ scanf("%d ",&a); if(a==5) count1++; else if(a==7) count2++; } if(count1==2 && count2==1) printf("YES\n"); else printf("NO\n"); return 0; }
main.c:1:1: error: stray '##' in program 1 | ##include<stdio.h> | ^~ main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | ##include<stdio.h> | ^
s192436389
p04043
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int A,B,C; cin>>A>>B>>C; if(A==5) cout<<"YES"<<endl; else if(B==7) cout<<"YES"<<endl; else if(C==5) cout"YES"<<endl; else cout"NO"<<endl; }
a.cc: In function 'int main()': a.cc:12:8: error: expected ';' before string constant 12 | cout"YES"<<endl; | ^~~~~ | ; a.cc:14:8: error: expected ';' before string constant 14 | cout"NO"<<endl; | ^~~~ | ;
s215132771
p04043
C++
#include <iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if (a + b + c = 17) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:15: error: lvalue required as left operand of assignment 6 | if (a + b + c = 17) { | ~~~~~~^~~
s983416636
p04043
C++
#include <iostream> using namespace std; int main(){ int a, b, c; cin a >> b >> c; if (a + b + c = 17) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:5:8: error: expected ';' before 'a' 5 | cin a >> b >> c; | ^~ | ; a.cc:6:15: error: lvalue required as left operand of assignment 6 | if (a + b + c = 17) { | ~~~~~~^~~
s070333312
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; int D=0; int E=0; if(A==5){ D++; } else if(A==7){ E++; } if(B==5){ D++; } else if(B==7){ E++; } if(C==5){ D++; } else if(C==7){ E++; } if(D==2&&F==1){ cout << "YES" << ...
a.cc: In function 'int main()': a.cc:27:12: error: 'F' was not declared in this scope 27 | if(D==2&&F==1){ | ^
s225250897
p04043
C++
#include<bits/std++.h> using namespace std; int main(){ int five=0,seven=0; int x; for(int i=0;i<3;i++){ cin>>x; if(x==5) fivee++; if(x==7) seven++; } if(five==2 && seven==7) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s895170414
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(); int five=0,seven=0; int x; for(int i=0;i<3;i++){ cin>>x; if(x==5) fivee++; if(x==7) seven++; } if(five==2 && seven==7) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:6:9: error: expected unqualified-id before 'for' 6 | for(int i=0;i<3;i++){ | ^~~ a.cc:6:21: error: 'i' does not name a type 6 | for(int i=0;i<3;i++){ | ^ a.cc:6:25: error: 'i' does not name a type 6 | for(int i=0;i<3;i++){ | ...
s176004357
p04043
C++
#include<bits/std++.h> using namespace std; int main(); int five=0,seven=0; int x; for(int i=0;i<3;i++){ cin>>x; if(x==5) five++; if(x==7) seven++; } if(five==2 && seven==7) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s123162681
p04043
C++
#include<bits/std++.h> using namespace std; int main(); int five=0,seven=0; int x; for(int i=0;i<3;i++){ cin>>x; if(x==5) fivee++; if(x==7) seven++; } if(five==2 && seven==7) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s495450312
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[8], b, c; a[7] = 1; a[5] = 2; for(int i = 0; i < 3; i++) cin >> x, a[x]--; if(a[7] >= 0 && a[5] >= 0) cout << "YES"; else cout << "NO"; }
a.cc: In function 'int main()': a.cc:10:12: error: 'x' was not declared in this scope 10 | cin >> x, a[x]--; | ^
s235874350
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[8], b, c; a[7] = 1; a[5] = 2; for(int i = 0; i < 3; i++) cin >> x, a[x]--; if(a[7] >= 0 && a[5] >= 0) cout << "YES"; else cout << "NO" }
a.cc: In function 'int main()': a.cc:10:12: error: 'x' was not declared in this scope 10 | cin >> x, a[x]--; | ^ a.cc:12:20: error: expected ';' before '}' token 12 | else cout << "NO" | ^ | ; 13 | } | ~
s204721567
p04043
C++
#include<bit/stdc++.h> using namespace std; int main() { int a[8], b, c; a[7] = 1; a[5] = 2; for(int i = 0, x; i < 3; i++) cin >> x, a[x]--; if(a[7] >= 0 && a[5] >= 0) cout << "YES"; else cout << "NO" }
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory 1 | #include<bit/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s826405349
p04043
C++
#include<bit/stdc++.h> using namespace std; int main() { int a[8], b, c; a[7] = 1; a[5] = 2; for(int i = 0; i < 3; i++) cin >> x, a[x]--; if(a[7] >= 0 && a[5] >= 0) cout << "YES"; else cout << "NO" }
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory 1 | #include<bit/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s456070829
p04043
C++
#include<bit/stdc++.h> using namespace std; int main() { int a[3], b, c; cin >> a[0] >> a[1] >> a[2]; sort(a,a + 3); if(a[0] == 5 && a[1] == 5 && a[2] == 7) cout << "Yes"; else cout << "No"; }
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory 1 | #include<bit/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s786247229
p04043
C++
#include <iostream> using namespace std; int main(){ int A,B,C,D; cin >> A >> B >> C; if(A>=C&&A>=B){ D=A; A=B; B=D; } if else(C>=A&&C>=B){ D=C; C=B; B=D; } if(A==5&&B==7&&C==5){ cout << "yes" ; } else{ cout << "no" ; } }
a.cc: In function 'int main()': a.cc:12:6: error: expected '(' before 'else' 12 | if else(C>=A&&C>=B){ | ^~~~ | (
s144188030
p04043
Java
import java.util.ArrayList; import java.util.list; import java,.util.Scanner; public class Main{ Main() public static void mina(String args[]){ Scanner sc = new Scanner(System.in); //コンソールから値を受け取る List<Integer> list = new ArrayList<>(); for(int i=0;sc.hasNext();i++){ list.add(sc.nex...
Main.java:3: error: '.' expected import java,.util.Scanner; ^ Main.java:7: error: ';' expected Main() ^ Main.java:22: error: illegal character: '\u3000' ?for(int n:list){ ^ Main.java:23: error: illegal character: '\u3000' ? if(n==5){ ^ Main.java:24: error: illegal character: '\u3000' ...
s757384066
p04043
Java
/** * Atcorder 提出 * @return * */ public static void main(String args[]) { Scanner sc = new Scanner(System.in); /* コンソールから、数値を受け取る */ List<Integer> list = new ArrayList<>(); for (int i = 0; sc.hasNext(); i++) { list.add(sc.nextInt()); } int n5 = 0; int n7 = 0; /* 入力された数値のカウント */ for (i...
Main.java:7: 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
s047362101
p04043
Java
/** * 和風いろはちゃんイージー * */ public static void main(String args[]) { Scanner sc = new Scanner(System.in); /* コンソールから、数値を受け取る */ List<Integer> list = new ArrayList<>(); for (int i = 0; sc.hasNext(); i++) { list.add(sc.nextInt()); } int n5 = 0; int n7 = 0; /* 入力された数値のカウント */ for (int n : list)...
Main.java:5: 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
s054105711
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int tableau[3]; cin >> tableau[0] >> tableau[1] >> tableau[2]; sort(tableau, tableau + 3); int a = tableau[0], b = tableau[1], c = tableau[2]; if ((a == 5)&& (b == 5) && (c == 7)) cout << "YES"; else cout << "NO"; return 0; ...
a.cc:5:34: error: extended character   is not valid in an identifier 5 | cin >> tableau[0] >> tableau[1] >> tableau[2]; | ^ a.cc: In function 'int main()': a.cc:5:34: error: expected ';' before '\U000000a0' 5 | cin >> tableau[0] >> tableau[1] >> tableau[2]; | ...
s377161741
p04043
C
#include <stdio.h> int main(){ int a[3]; for(int z=0;z<3;z++){ scanf("%d", &a[z]); } int co5=0; int c07=0; for(int x=0;x<3;x++){ if(a[x]==5){ co5++; } else if(a[x]==7){ c07++; } } if(c05==2 && c07==1){ printf("YES\...
main.c: In function 'main': main.c:19:8: error: 'c05' undeclared (first use in this function); did you mean 'c07'? 19 | if(c05==2 && c07==1){ | ^~~ | c07 main.c:19:8: note: each undeclared identifier is reported only once for each function it appears in
s191215833
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> a(3); cin >> a[0] >> a[1] >> a[2]; sort(a.begin(),a.end()); if(a=={5,7,5}) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: expected primary-expression before '{' token 8 | if(a=={5,7,5}) cout << "YES" << endl; | ^ a.cc:8:9: error: expected ')' before '{' token 8 | if(a=={5,7,5}) cout << "YES" << endl; | ~ ^ | )
s156581006
p04043
Java
import java.util.Arrays; import java.util.Scanner; public class main { public static void Main(String[] args) { Scanner sc = new Scanner(System.in); int tempList[] = new int[3]; for (int i = 0; i < 3; i++) { ...
Main.java:4: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s843842926
p04043
Java
import java.util.Arrays; import java.util.Scanner; public class atcoder { public static void Main(String[] args) { Scanner sc = new Scanner(System.in); int tempList[] = new int[3]; for (int i = 0; i < 3; i++) { ...
Main.java:4: error: class atcoder is public, should be declared in a file named atcoder.java public class atcoder { ^ 1 error
s633521084
p04043
Java
import java.util.Arrays; import java.util.Scanner; public class main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tempList[] = new int[3]; for (int i = 0; i < 3; i++) { tempList[i] = sc.nextInt(); } Arrays.s...
Main.java:4: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s718441573
p04043
Java
import java.util.Arrays; import java.util.Scanner; public class atcoder { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tempList[] = new int[3]; for (int i = 0; i < 3; i++) { tempList[i] = sc.nextInt(); } Array...
Main.java:4: error: class atcoder is public, should be declared in a file named atcoder.java public class atcoder { ^ 1 error
s498164902
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { string A,B,C; cin>>A>>B>>C; bool can=false; if(A.size()+B.size()+c.size()==17){ if(A.size()==7||A.size()==5){ if(B.size()==7||B.size()==5){ if(C.size()==7||C.size()==5){ can=true; } } } } if(can...
a.cc: In function 'int main()': a.cc:8:24: error: 'c' was not declared in this scope 8 | if(A.size()+B.size()+c.size()==17){ | ^
s633832372
p04043
C++
#include<bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 vector<int> a(3); 6 for(int i=0;i<3;++i){ 7 cin >> a.at(i); 8 } 9 int num_5=0; 10 int num_7=0; 11 for(int i=0;i<3;++i){ 12 if(a.at(i)==5) num_5++; 13 if(a.at(i)==7) num_7++; 14 } 15 if(num_5==2 && num_7==...
a.cc:2:3: error: expected unqualified-id before numeric constant 2 | 2 using namespace std; | ^ a.cc:3:3: error: expected unqualified-id before numeric constant 3 | 3 | ^
s356793427
p04043
C++
#include <bits/stdc++.h> using namespace std; //long long using ll = long long; // pair<int, int> using PII = pair<int, int>; //最大値、mod const int MOD = 1000000007; const int mod = 1000000007; const int INF = 1000000000; const long long LINF = 1e18; const int MAX = 510000; //出力系 #define print(x) cout << x <<...
a.cc: In function 'int main()': a.cc:29:20: error: request for member 'begin' in 'c', which is of non-class type 'char [3]' 29 | #define all(x) (x).begin(),(x).end() | ^~~~~ a.cc:214:11: note: in expansion of macro 'all' 214 | count(all(c), '5') == 2 && count(all(c), '7') == 1 ? YES : ...
s182707369
p04043
Java
public static void main(String[] args){ int count5 = 0; int count7 = 0; for(String arg : args){ if(arg.equals("5")){ count5++; } else if(arg.equals("7")){ count7++; } } if(count5 == 2 && count7 == 1){ System.out.println("YES"); }else { System.out.println("NO"); } }
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
s967140774
p04043
C++
#include <bits/stdc++.h> #define rep(i,n)for(long long i=0;i<(long long)(n);i++) #define all(a) a.begin(), a.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } templa...
a.cc:28:21: error: extended character   is not valid in an identifier 28 | if(a*b*c == 5*5*7) cout <<"YES" << endl; | ^ a.cc: In function 'int main()': a.cc:28:21: error: '\U00003000cout' was not declared in this scope 28 | if(a*b*c == 5*5*7) cout <<"YES" << endl; | ...
s939761365
p04043
C++
#include <bits/stdc++.h> #define rep(i,n)for(long long i=0;i<(long long)(n);i++) #define all(a) a.begin(), a.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } templa...
a.cc:28:21: error: extended character   is not valid in an identifier 28 | if(a*b*c == 5*5*7) cout <<"YES" << endl; | ^ a.cc: In function 'int main()': a.cc:28:21: error: '\U00003000cout' was not declared in this scope 28 | if(a*b*c == 5*5*7) cout <<"YES" << endl; | ...
s811656093
p04043
C++
#include <bits/stdc++.h> #define rep(i,n)for(long long i=0;i<(long long)(n);i++) #define all(a) a.begin(), a.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } templa...
a.cc:29:46: error: extended character   is not valid in an identifier 29 | if(vec[0]==5 && vec[1] == 5 && vec[2] == 7) puts("YES"); | ^ a.cc: In function 'int main()': a.cc:29:46: error: '\U00003000puts' was not declared in this scope; did you mean 'puts'? 29 |...
s703348097
p04043
Java
public class Main{ public static void main(String[] args) { char arr[] = new Scanner(System.in).next().toCharArray(); int sum = 0; int counter = 0; for (int i = 0; i < arr.length; i++) { if (Integer.parseInt(String.valueOf(arr[i])) >= 1 && Integer.parseInt(String.valueO...
Main.java:5: error: cannot find symbol char arr[] = new Scanner(System.in).next().toCharArray(); ^ symbol: class Scanner location: class Main 1 error
s276083275
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){ if( A+B+C == 17 ){ cout << "YES" << endl; } else { cout << "NO" << endl; } } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:12: error: expected initializer before '(' token 8 | if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){ | ^ a.cc:8:12: error: expected ')' before '(' token 8 | if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){ | ~ ^ | ...
s875664401
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){ if( A+B+C == 17 ){ cout << "YES" << endl; } else { cout << "NO" << endl; } } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:25: error: lvalue required as left operand of assignment 8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){ | ~~^~~~~~~~~~~~~~~~~~
s236310905
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){ if( A+B+C == 17 ){ cout << "YES" << endl; } else { cout << "NO" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:25: error: lvalue required as left operand of assignment 8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){ | ~~^~~~~~~~~~~~~~~~~~ a.cc:16:3: error: expected '}' before 'else' 16 | else { | ^~~~ a.cc:8:48: note: to match this '{' ...
s030638417
p04043
Java
public class Wafu { public static void main(String[] args){ int A; int B; int C; if(A == 5 && B == 7 && C == 5){ System.out.println("Yes"); } else if(A == 5 && B == 5 && C == 7){ System.out.println("Yes"); } else if(A == 7 && B == 5 && C == 5){ System.out.println("Yes");...
Main.java:1: error: class Wafu is public, should be declared in a file named Wafu.java public class Wafu { ^ 1 error
s498690893
p04043
Java
public class wafu { public static void main(String[] args){ int A; int B; int C; if(A == 5 && B == 7 && C == 5){ System.out.println("Yes"); } else if(A == 5 && B == 5 && C == 7){ System.out.println("Yes"); } else if(A == 7 && B == 5 && C == 5){ System.out.println("Yes");...
Main.java:1: error: class wafu is public, should be declared in a file named wafu.java public class wafu { ^ 1 error
s016640538
p04043
Java
public class wafu { public static void main(String[] args){ int A; int B; int C; if(A == 5 && B == 7 && C == 5){ System.out.println("Yes"); } else if(A == 5 && B == 5 && C == 7){ System.out.println("Yes"); } else if(A == 7 && B == 5 && C == 5){ System.out.println("Yes");...
Main.java:15: error: reached end of file while parsing } ^ 1 error
s914940844
p04043
C++
//A - Iroha and Haiku (ABC Edition) int a,b,c; int cntOf5 = 0; int cntOf7 = 0; void work(int n) { if (n==5) cntOf5++; if (n==7) cntOf7++; } int main() { scanf("%d %d %d",&a,&b,&c); work(a); work(b); work(c); if (cntOf5==2&&cntOf7==1) printf("%s","YES"); else printf("%s","NO"); }
a.cc: In function 'int main()': a.cc:15:9: error: 'scanf' was not declared in this scope 15 | scanf("%d %d %d",&a,&b,&c); | ^~~~~ a.cc:20:17: error: 'printf' was not declared in this scope 20 | printf("%s","YES"); | ^~~~~~ a.cc:1:1: note: 'printf' is def...
s989043288
p04043
Java
import java.util.*; public class Mainfifthjune { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if (a==5 && b==7 && c==5) { System.out.println("YES"); }else if (a==7 && b==5 && c==5) { System.out.println...
Main.java:2: error: class Mainfifthjune is public, should be declared in a file named Mainfifthjune.java public class Mainfifthjune { ^ 1 error
s193732283
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c: cin >> a>>b>>c; int five = 0; int seven = 0; if(a ==5)then five ++; if(a == 7)thenseven ++; if(b ==5)then five ++; if(b == 7)thenseven ++; if(c ==5)then five ++; if(c == 7)thenseven ++; if(five == 2 && seven == 1) cout ...
a.cc: In function 'int main()': a.cc:5:18: error: found ':' in nested-name-specifier, expected '::' 5 | int a,b,c: | ^ | :: a.cc:5:17: error: 'c' has not been declared 5 | int a,b,c: | ^ a.cc:6:9: error: qualified-id in declarat...
s095609720
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { cin>>a,b,c; if(a==7) {if(b==5) {if(c==5) cout<<"YES"; } } else if(b==7) {if(a==5) {if(c==5) cout<<"YES"; } } else if(c==7) {if(a==5) {if(b==5) cou...
a.cc: In function 'int main()': a.cc:7:10: error: 'a' was not declared in this scope 7 | cin>>a,b,c; | ^ a.cc:7:12: error: 'b' was not declared in this scope 7 | cin>>a,b,c; | ^ a.cc:7:14: error: 'c' was not declared in this scope 7 | cin>>a,b,c; | ...
s341645726
p04043
C++
#include <iostream> using namespace std; int main() { cin>>a,b,c; if(a==7) {if(b==5) {if(c==5) cout<<"YES"; } } else if(b==7) {if(a==5) {if(c==5) cout<<"YES"; } } else if(c==7) {if(a==5) {if(b==5) cout<<"Y...
a.cc: In function 'int main()': a.cc:7:10: error: 'a' was not declared in this scope 7 | cin>>a,b,c; | ^ a.cc:7:12: error: 'b' was not declared in this scope 7 | cin>>a,b,c; | ^ a.cc:7:14: error: 'c' was not declared in this scope 7 | cin>>a,b,c; | ...
s766930556
p04043
Java
import java.util.Scanner; public class A_ABC042_A { public static void main(String[] args) { final String FIVE = "5"; final String SEVEN = "7"; Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); scanner.close(); String[] arrStr = (input.split(" ",0)); int fivCnt = 0...
Main.java:3: error: class A_ABC042_A is public, should be declared in a file named A_ABC042_A.java public class A_ABC042_A { ^ 1 error
s801695036
p04043
Java
public class Main { public static void main(String[] args) { final String FIVE = "5"; final String SEVEN = "7"; Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); scanner.close(); String[] arrStr = (input.split(" ",0)); int fivCnt = 0; int sevCnt = 0; for(Stri...
Main.java:8: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors