submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s356314090
p04043
C
#include<stdio.h> int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if(a+b+c==17 && a*b*c==175)){ printf("Yes"); } else{ printf("No"); } return 0; }
main.c: In function 'main': main.c:6:34: error: expected statement before ')' token 6 | if(a+b+c==17 && a*b*c==175)){ | ^ main.c:9:7: error: 'else' without a previous 'if' 9 | else{ | ^~~~
s258190675
p04043
C++
#include <bits/stdc++.h> using namespace std; int main () { int A , B ,C ; cin >> A >> B >>C; if (A*B*C==175){ cout << "YES" <<; } else { cout <<"NO"<<; } }
a.cc: In function 'int main()': a.cc:9:21: error: expected primary-expression before ';' token 9 | cout << "YES" <<; | ^ a.cc:12:18: error: expected primary-expression before ';' token 12 | cout <<"NO"<<; | ^
s436752919
p04043
C++
#include <iostream> using namespace std; int main(){ int abc[3]; cin >> abc[0] >> abc[1] >> abc[2]; sort(abc, abc+3); if(abc[0] == 5 && abc[1] == 5 && abc[2] == 7){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'? 7 | sort(abc, abc+3); | ^~~~ | short
s186198624
p04043
C++
a, b, c = map(int, input().split()) five = 0; if a == 5: five = five + 1; elif a == 7: seven = seven + 1; if b == 5: five = five + 1; elif b == 7: seven = seven + 1; if c == 5: five = five + 1; elif c == 7: seven = seven + 1; if five == 2 and seven == 1: print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = map(int, input().split()) | ^ a.cc:3:1: error: expected unqualified-id before 'if' 3 | if a == 5: | ^~ a.cc:5:1: error: 'elif' does not name a type 5 | elif a == 7: | ^~~~ a.cc:7:1: error: expected unqualified-id before 'if' 7 | i...
s637756428
p04043
C++
dat = list(map(int, input().split())) dat.sort() if dat == [5, 5, 7]: print("YES") else: print("NO")
a.cc:1:1: error: 'dat' does not name a type 1 | dat = list(map(int, input().split())) | ^~~
s170439585
p04043
C++
#include "bits/stdc++.h" using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; if(a==5){ if(b==5||b==7){ if(b+c==12){ cout << "YES" << endl; } } }else if(a==7){ if(b==c&&c==5){ cout >> "YES" << endl; } } cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:14:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 14 | cout >> "YES" << endl; | ~~~~ ^~ ~~~~~ | | | | | con...
s241081782
p04043
C++
DASASSSSSSSSSSSSSSSSSSSSSSSSSSS DDDDDDDDDDDDDDDDDDDDDDDDD SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS A AASDADASDASDDS
a.cc:1:1: error: 'DASASSSSSSSSSSSSSSSSSSSSSSSSSSS' does not name a type 1 | DASASSSSSSSSSSSSSSSSSSSSSSSSSSS | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
s690165671
p04043
C++
#include <iostream> #include <utility.h> using namespace std; int main(){ int N,L; cin >> N >> L; string word; vector<string> words; for(int i=0;i<N;i++){ cin >> word; words(i)=word; } for(int i=1;i<N;i++){ for(int j=0;j<L;j++){ if ('words[i-1][j]'>'words...
a.cc:2:10: fatal error: utility.h: No such file or directory 2 | #include <utility.h> | ^~~~~~~~~~~ compilation terminated.
s504631188
p04043
C++
hjkll
a.cc:1:1: error: 'hjkll' does not name a type 1 | hjkll | ^~~~~
s365043531
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c, five_counter = 0, seven_counter = 0; cin >> a >> b >> c; int list[3] = {a,b,c}; for(int i:list) { switch(i){ case 5: five_counter++; break; case 7: seven_counter++; break; } if(2 == five_...
a.cc: In function 'int main()': a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s389184262
p04043
C++
#include <iostream> using namespace std; int main() { int a, b, c, five_counter = 0, seven_counter = 0; cin << a << b << c; int list[3] = {a,b,c}; for(i:list) { switch(i){ case 5: five_counter++; break; case 7: seven_counter++; break; } if(2 == five_coun...
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidat...
s579213332
p04043
C++
#include <iosteam> using namespace std; int main() { int a, b, c, five_counter = 0, seven_counter = 0; cin << a << b << c; int list[3] = {a,b,c}; for(i:list) { switch(i){ case 5: five_counter++; break; case 7: seven_counter++; break; } if(2 == five_counte...
a.cc:1:10: fatal error: iosteam: No such file or directory 1 | #include <iosteam> | ^~~~~~~~~ compilation terminated.
s018661739
p04043
Java
#include <iostream> using namespace std; int main(){ int a, b, c; int countFive = 0; int countSeven = 0; cin >> a >> b >> c; if (a == 5) countFive++; if (a == 7) countSeven++; if (b == 5) countFive++; if (b== 7) countSeven++; if (c == 5) countFive++; if (c == 7) countSeven++; if (countFive == 2 && countSeve...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:8: error: not a statement cin >> a >> b >> c; ^ Main.java:15: error: not a statement if (countFive == 2 && countSeven == 1) cout << "Y...
s689680170
p04043
C++
using System; namespace AtCoderPractice { class Program { static void Main(string[] args) { // args = Console.ReadLine().Split(' '); int[] Lngs = new int[11]; foreach (var str in args) { int Lng; if (Int32.TryParse(str,out Lng)) { Lngs[Lng]++; } } if ((Lngs[5] == 2) && (Lngs[7] == 1))...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:5:34: error: 'string' has not been declared 5 | static void Main(string[] args) { | ^~~~~~ a.cc:5:43: error: expected ',' or '...' before 'args' ...
s687899638
p04043
C++
def solve(a,b,c): e=a+b+c if e==17: return"Yes" else: return"No"
a.cc:1:1: error: 'def' does not name a type 1 | def solve(a,b,c): | ^~~
s222643380
p04043
C++
# 関数 solve は,もちろん,問題に応じて書き換える def solve(a,b,c): e=a+b+c if e==17: return"Yes" else: return"No" # ここから下は,入力・出力形式が同じであれば,変えなくて良い. def readQuestion(): line = sys.stdin.readline().rstrip() [str_a, str_b, str_c] = line.split(' ') return (int(str_a), int(str_b), int(str_c)) def main...
a.cc:2:3: error: invalid preprocessing directive #\U000095a2\U00006570 2 | # 関数 solve は,もちろん,問題に応じて書き換える | ^~~~ a.cc:10:3: error: invalid preprocessing directive #\U00003053\U00003053\U0000304b\U00003089\U00004e0b\U0000306f\U0000ff0c\U00005165\U0000529b\U000030fb\U000051fa\U0000529b\U00005f62\U00005f0f\U000...
s269425667
p04043
C++
import sys # 関数 solve は,もちろん,問題に応じて書き換える def solve(a,b,c): e=a+b+c if e==17: return"Yes" else: return"No" # ここから下は,入力・出力形式が同じであれば,変えなくて良い. def readQuestion(): line = sys.stdin.readline().rstrip() [str_a, str_b, str_c] = line.split(' ') return (int(str_a), int(str_b), int(str_c)...
a.cc:3:3: error: invalid preprocessing directive #\U000095a2\U00006570 3 | # 関数 solve は,もちろん,問題に応じて書き換える | ^~~~ a.cc:11:3: error: invalid preprocessing directive #\U00003053\U00003053\U0000304b\U00003089\U00004e0b\U0000306f\U0000ff0c\U00005165\U0000529b\U000030fb\U000051fa\U0000529b\U00005f62\U00005f0f\U000...
s201543651
p04043
C++
#include <iostream> #include <cctype> #include <algorithm> #include <vector> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <string> #include <functional> #include <cctype> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #include <iomanip> #include <...
a.cc: In function 'int main()': a.cc:36:12: error: lvalue required as left operand of assignment 36 | if (a*b*c = 175)YES; | ~~~^~
s578210508
p04043
C++
#include<iostream> using namespace std; #include<vector> void no(){ cout << "NO" << endl; } int main(){ int a,b,c; cin >> a >> b >> c; vector<int> abc = {a,b,c}; sort(abc.begin(), abc.end()); if(abc.at(0) == 5){ if(abc.at(1) == 5){ if(abc.at(2) == 7){ ...
a.cc: In function 'int main()': a.cc:17:5: error: 'sort' was not declared in this scope; did you mean 'short'? 17 | sort(abc.begin(), abc.end()); | ^~~~ | short
s435315080
p04043
C++
66666666666666666666666666666666666666666666666666666666666666 6666666666666666666666666666666666666666666666666666666
a.cc:1:1: warning: integer constant is too large for its type 1 | 66666666666666666666666666666666666666666666666666666666666666 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:2:1: warning: integer constant is too large for its type 2 | 6666666666666666666666666666666666666666666666...
s107322939
p04043
C++
#include<iostream> using namespace std; int main(){ int A,B,C; cin>>A>>B>>C; int temp = A+B+C; if(temp==17){ cout << "YES"; }else{ cout<<"NO"; } return 0; } #include<iostream> int main(){ int A,B,C; cin>>A>>B>>C; int temp = A+B+C; if(temp==17){ ...
a.cc:26:5: error: redefinition of 'int main()' 26 | int main(){ | ^~~~ a.cc:5:5: note: 'int main()' previously defined here 5 | int main(){ | ^~~~
s808132549
p04043
C++
#include<iostream> int main(){ int A,B,C; cin>>A>>B>>C; int temp = A+B+C; if(temp==17){ cout << "YES"; }else{ cout<<"NO"; } return 0; }
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 a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to...
s037200220
p04043
C++
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; int total; total = A*B*C; if (total == 175) { cout >> "YES"; } else if (total != 175) {cout >> "NO"; } return 0; }
a.cc: In function 'int main()': a.cc:10:28: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 10 | if (total == 175) { cout >> "YES"; } | ~~~~ ^~ ~~~~~ | | | | ...
s117575689
p04043
C++
A=list(map(int,input().strip().split())) if A.count(5)==2 and A.count(7)==1: print('YES') else: print('NO')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('YES') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('NO') | ^~~~ a.cc:1:1: error: 'A' does not name a type 1 | A=list(map(int,input().strip().split...
s336114212
p04043
C++
#include<Cstdio> main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==5 && B==5 && C==7) printf("YES"); else if(A==5 && B==7 && C==5) printf("YES"); else if(A==7 && B==5 && C==5) printf("YES"); else printf("NO"); return 0; }
a.cc:1:9: fatal error: Cstdio: No such file or directory 1 | #include<Cstdio> | ^~~~~~~~ compilation terminated.
s604921301
p04043
C++
#include<Cstdio> main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==5 && B==5 && C==7) printf("YES,Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku."); else if(A==5 && B==7 && C==5) printf("YES,Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku."); else i...
a.cc:1:9: fatal error: Cstdio: No such file or directory 1 | #include<Cstdio> | ^~~~~~~~ compilation terminated.
s104631332
p04043
C++
X={int(input()),int(input()),int(input())} if X in [{5,5,7},{5,7,5},{7,5,5}]: print("YES") else: print("NO")
a.cc:1:1: error: 'X' does not name a type 1 | X={int(input()),int(input()),int(input())} | ^ a.cc:2:1: error: expected unqualified-id before 'if' 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ^~ a.cc:2:17: error: expected unqualified-id before ',' token 2 | if X in [{5,5,7},{5,7,5},{7,5,5}]: | ...
s751229177
p04043
C++
#include <iostream> #include <string> #include <vector> #include <cstdlib> #include <cstdio> #include <cmath> #include <algorithm> #include <map> #include <stack> #include <queue> #include <set> using namespace std; #define vsort(v) sort(v.begin(), v.end()); // 昇順 #define vsort_reverse(v) sort(v.begin(), v.end(), grea...
a.cc:32:35: error: extended character “ is not valid in an identifier 32 | if(cnt5 == 2 and cnt7==1) cout << “YES” << endl; | ^ a.cc:32:35: error: extended character ” is not valid in an identifier a.cc:33:14: error: extended character “ is not valid in an identifier 33 | e...
s407735872
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int H,N,U; cin >> H >> N >> U; if(N==7&&H==5&&U==5||N==5&&H==7&&==U==5||N==5&&H==5&&U==7){ cout << "YES" << endl; }else{ cout << "NO" << endl;} }
a.cc: In function 'int main()': a.cc:7:36: error: expected primary-expression before '==' token 7 | if(N==7&&H==5&&U==5||N==5&&H==7&&==U==5||N==5&&H==5&&U==7){ | ^~
s060867430
p04043
C++
#include<iostream> #include<cmath> using namespace std; int main() { int a=8.0; for(float i=1.0;i<=100.0;i+=1.0) { for(float j=1.0;j<=100.0;j+=1.0) { if(i*i+j*j+a*i> =a*sqrt(i*i+j*j))cout<<"@"; else cout<<" "; } cout<<endl; } }
a.cc: In function 'int main()': a.cc:11:41: error: expected primary-expression before '=' token 11 | if(i*i+j*j+a*i> =a*sqrt(i*i+j*j))cout<<"@"; | ^
s293522056
p04043
C++
#include <iostream> #include <vector> using namespace std; int main() { vector<int> s(3); for (int i = 0; i < 3; ++i) cin >> s.at(i); cout << (count(s.begin(), s.end(), 5) == 2 && count(s.begin(), s.end(), 7) == 1 ? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:14: error: 'count' was not declared in this scope 9 | cout << (count(s.begin(), s.end(), 5) == 2 && count(s.begin(), s.end(), 7) == 1 ? "YES" : "NO") << endl; | ^~~~~
s354156875
p04043
C++
#include<iostream> using namespace; int main(){ int a,b,c; cin >> a; cin >> b; cin >> c; if(a == 5 && b == 5 && c == 7){ cout << "YES" << endl; } else if(a == 7 && b == 5 && c ==5){ cout << "YES" << endl; } else if(a == 5 && b ==7 && c == 5){ cout << "YES" << endl; } else{ cout <<...
a.cc:2:16: error: expected identifier before ';' token 2 | using namespace; | ^ 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; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/...
s170697384
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> a >> b >> c; vector<int> v = {a,b,c}; sort(v.begin(),v.end()); if(v.at(0) == 5 && v.at(1) == 5 && v.at(2) == 7) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:5:10: error: 'a' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:15: error: 'b' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:20: error: 'c' was not declared in this scope 5 | cin >> a >> b >>...
s489358996
p04043
C++
macro_rules! input { (source = $s:expr, $($r:tt)*) => { let mut iter = $s.split_whitespace(); let mut next = || { iter.next().unwrap() }; input_inner!{next, $($r)*} }; ($($r:tt)*) => { let stdin = std::io::stdin(); let mut bytes = std::io::Read::bytes(std::io::BufRead...
a.cc:38:10: error: too many decimal points in number 38 | (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>() | ^~~~~~~ a.cc:1:1: error: 'macro_rules' does not name a type 1 | macro_rules! input { | ^~~~~~~~~~~ a.cc:22:1: error: 'macro_rules' does not name a type 22 | ma...
s321159064
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int arr[3]; cin >> arr[0] >> arr[1] >> arr[2]; sort(arr, arr+3); if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) cout << "YES"; eles cout << "NO"; }
a.cc: In function 'int main()': a.cc:12:3: error: 'eles' was not declared in this scope 12 | eles | ^~~~
s943685073
p04043
C++
#include<iostream> int main() { int a,b,c = 0; std::cin >> a >> b >> c; if ((a=5)&&(b=5)&&(c=7)){ std::cout << "yes" << endl; } else if ((a=5)&&(b=7)&&(c=5)){ std::cout << "yes" << endl; } else if ((a=7)&&(b=5)&&(c=7)){ std::cout << "yes" << endl; } else { st...
a.cc:5:16: error: extended character   is not valid in an identifier 5 | int a,b,c = 0; | ^ a.cc: In function 'int main()': a.cc:5:16: error: '\U000030000' was not declared in this scope 5 | int a,b,c = 0; | ^~~ a.cc:7:21: error: expected ')' before '\U0000ff06\...
s065677001
p04043
C++
#include<cstdio> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if("a==5&&b==5&&c==7")printf("yes"); else if("a==5&&b==7&&c==5")printf("yes"); else if("a==7&&b==5&&c==5")printf("yes"); else()printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: expected primary-expression before ')' token 9 | else()printf("no"); | ^
s079351119
p04043
C++
#include<cstdio> int main() { int a,b,c; scanf("%d%d%d\n",&a,&b,&c); if("a==5&&b==5&&c==7")printf("yes"); else if("a==5&&b==7&&c==5")printf("yes"); else if("a==7&&b==5&&c==5")printf("yes"); else()printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: expected primary-expression before ')' token 9 | else()printf("no"); | ^
s817267147
p04043
C++
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a = 5 && b = 7 && c = 5)printf("YES\n"); else if(a = 5 && b = 5 && c = 7)printf("YES\n"); else if(a = 7 && b = 5 && c = 5)printf("YES\n"); else printf("NO"); return 0; }
a.cc: In function 'int main()': a.cc:6:27: error: lvalue required as left operand of assignment 6 | if(a = 5 && b = 7 && c = 5)printf("YES\n"); | ~~^~~~ a.cc:7:32: error: lvalue required as left operand of assignment 7 | else if(a = 5 && b = 5 && c = 7)printf("YES\n...
s040493557
p04043
C
#include<cstdio> int main() { int a, b, c; scanf("%d %d %d",&a, &b, &c); if(a==5 && b==7 && c==5) printf("YSE\n"); else if(a==7 && b==5 && c==5) printf("YSE\n"); else if(a==5 && b==5 && c==7) printf("YSE\n"); else printf("NO\n"); return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s328281100
p04043
C
#include<cstdio> int main() { int a, b, c; scanf("%d %d %d",&a, &b, &c); if(a==5 && b==7 &&c==5) printf("YSE\n"); else if(a==7 && b==5 &&c==5) printf("YSE\n"); else if(a==5 && b==5 &&c==7) printf("YSE\n"); else printf("NO\n"); return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s561285593
p04043
Java
import java.util.*; public class Main { public static void main(String[] args) { // 自分の得意な言語で // Let's チャレンジ!! Scanner sc = new Scanner(System.in); int []n=new int[3]; int m[]=new int[]{5,5,7}; for(int i=0;i<3;i++){ n[i]=sc.nextInt(); } Arrays.sort(n); boolean b=false; for(int i=0...
Main.java:26: error: illegal start of type else System.out.println("NO"); ^ Main.java:26: error: <identifier> expected else System.out.println("NO"); ^ Main.java:26: error: illegal start of type else System.out.println("NO"); ^ 3 errors
s300485070
p04043
C++
#include<iostream> int main(){ int a,b,c; cin>>a>>b>>c; if((a==7&&b==5&&c==5) ||(a==5&&b==7&&c==5) ||(a==5&&b==5&&c==7)) cout<<"YES"<<endl; else cout<<"NO"<<endl; 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 a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to...
s840387710
p04043
C++
#include<cstdio.h> main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==5&&b==5&&c==7) printf("Yes"); else if(a==5&&b==7&&c==5) printf("Yes"); else if(a==7&&b==5&&c==5) printf("Yes"); else printf("No"); }
a.cc:1:9: fatal error: cstdio.h: No such file or directory 1 | #include<cstdio.h> | ^~~~~~~~~~ compilation terminated.
s816202428
p04043
C
#include<cstdio> int main() { int a,b,c; scanf("%d,%d,%d,&a,&b,&c); if(a==5 && b==5 && c==5); if(a==7 && b==5 && c==5); printf("yes\n"); else printf("no"); }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s152155148
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");} else {printf("no"),} return 0; }
a.cc: In function 'int main()': a.cc:6:24: error: expected primary-expression before '}' token 6 | else {printf("no"),} | ^
s865944204
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");} else {printf("no"),} return 0; }
a.cc: In function 'int main()': a.cc:6:24: error: expected primary-expression before '}' token 6 | else {printf("no"),} | ^
s126323030
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");} else {printf("no")} return 0; }
a.cc: In function 'int main()': a.cc:6:23: error: expected ';' before '}' token 6 | else {printf("no")} | ^ | ;
s695577840
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) printf("YES\n"); else if(a==7 && b==5 && c==5) printf("YES\n"); else if(a==5 && b==7 && c==5) printf("YES\n"); else printf("NO\n"); return 0 }
a.cc:5:23: warning: missing terminating " character 5 | scanf(%d %d %d",&a,&b,&c); | ^ a.cc:5:23: error: missing terminating " character 5 | scanf(%d %d %d",&a,&b,&c); | ^~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:5:15: error: expecte...
s911354233
p04043
C++
#include<cstido> int main() { int a=0,b=0,c=0; 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");} else{ printf("no"); } return 0; }
a.cc:1:9: fatal error: cstido: No such file or directory 1 | #include<cstido> | ^~~~~~~~ compilation terminated.
s377462691
p04043
C++
#include<stdio.h> int main() { int a,b,c; scanf("%d\n%d\n%d\n",&a,&b,&c); printf("%d\n %d\n %d\n",a,b,c); if (5 5 7,5 7 5,7 5 5) printf("yes"); else printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:7:10: error: expected ')' before numeric constant 7 | if (5 5 7,5 7 5,7 5 5) printf("yes"); | ~ ^~ | )
s578074873
p04043
C++
#include<stdio.h> int main(){ int a,b,c; scanf("%d\n%d\n%d\n",&a,&b,&c); printf("%d\n %d\n %d\n",a,b,c); if (5 5 7,5 7 5,7 5 5); {printf("yes");} else; {printf("no");} return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: expected ')' before numeric constant 6 | if (5 5 7,5 7 5,7 5 5); | ~ ^~ | ) a.cc:8:5: error: 'else' without a previous 'if' 8 | else; | ^~~~
s899128460
p04043
C++
#include<stdio.h> int main(){ scanf("%d\n%d\n%d\n",&a,&b,&c); printf("%d\n %d\n %d\n",a,b,c); if (5 5 7,5 7 5,7 5 5); printf("yes"); else; printf("no"); return 0; }
a.cc: In function 'int main()': a.cc:3:27: error: 'a' was not declared in this scope 3 | scanf("%d\n%d\n%d\n",&a,&b,&c); | ^ a.cc:3:30: error: 'b' was not declared in this scope 3 | scanf("%d\n%d\n%d\n",&a,&b,&c); | ^ a.cc:3:33: error: '...
s335454091
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("%d,%d,%d\n",A,B,C); scanf("%d%d%d\n"&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:5:26: error: 'A' undeclared (first use in this function) 5 | printf("%d,%d,%d\n",A,B,C); | ^ main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in main.c:5:28: error: 'B' undeclared (first use in thi...
s172208086
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("input ,A,B,C= "); scanf("%d%d%d\n",&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s773079167
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("input ,A,B,C\n"); scanf("%d%d%d\n",&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s687134217
p04043
C
#include <stdio.h> int main() { int a,b,c; printf("input ,A,B,C\n"); scanf("%d%d%d",&a,&b,&c); if(a+b+c=17) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:14: error: lvalue required as left operand of assignment 7 | if(a+b+c=17) | ^
s414824803
p04043
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int[] unko=new int[3]; int sum=1; for(int i=0; i<3; i++){ unko[i]=cs.nextInt(); sum*=unko[i]; } if(sum==175){ System.out.println("YES"); } else{ System.ou...
Main.java:9: error: cannot find symbol unko[i]=cs.nextInt(); ^ symbol: variable cs location: class Main 1 error
s528811561
p04043
C++
#include<stdio.h> #include<stdlib.h> int main(void){ int A,B,C; scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); if(A+B+C=17){ printf("Yes\n"); }else if(A+B+C>17); { printf("No\n"); }else(A+B+C<17){ printf("No\n"); } system("pause"); return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: lvalue required as left operand of assignment 8 | if(A+B+C=17){ | ~~~^~ a.cc:13:10: error: 'else' without a previous 'if' 13 | }else(A+B+C<17){ | ^~~~ a.cc:13:24: error: expected ';' before '{' token 13 | ...
s985900941
p04043
C++
#include<stdio.h> #include<stdlib.h> int main(void){ int A,B,C; scanf("%d",&A); scanf("%D",&B); scanf("%D",&C); if(A+B+C=17){ printf("Yes\n"); }else(A+B+C>17&A+B+C<17); { printf("No\n"); } system("pause"); return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: lvalue required as left operand of assignment 8 | if(A+B+C=17){ | ~~~^~
s270746850
p04043
C++
#include<stdio.h> int main(void){ int f,s; int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==5){ f++; }else if(a==7){ s++; } if(b==5){ f++; }else if(b==7){ s++; } if(c==5){ f++; }else if(c==7){ s++; } if(f==2 && s==1){ printf("YES\n"); }else{ printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:38:2: error: expected '}' at end of input 38 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s933929643
p04043
Java
import java.util.Scanner; public class Test { 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 a = 0, b = 0; if(A == 5) a++; else if(A == 7) b++; if(B == 5) a++; else if(B == 7) b++;...
Main.java:3: error: class Test is public, should be declared in a file named Test.java public class Test { ^ 1 error
s446888124
p04043
Java
package com.ACM; import java.util.Scanner; public class Haiku { public void syllables(int A,int B,int C) { if((A<0||A>10)||(B<0||B>10)||(C<0||C>10)) { System.exit(0); }else { switch(A) { case 5: if((B==5&&C==7)||(B==7&&C==5)) { System.out.println("Yes"); }else { System.out.println("No"...
Main.java:5: error: class Haiku is public, should be declared in a file named Haiku.java public class Haiku { ^ 1 error
s697467267
p04043
C++
#include<iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<cmath> #include<utility> #include<set> #include<vector> #include<map> #include<queue> #include<stack> #define maxn 1010 #define INF 0x3f3f3f3f #define LL long long #define ULL unsigned long long #define E 1e-8 #define mo...
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include<iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<cmath> #include<utility> #include<set> #include<vector> #include<map> #include<queue> #include<stack> #define maxn 1010 #define INF 0x3f3f3f3f #define...
s723877686
p04043
C++
# include 〈stdio.h〉 int main ( ) { int a,b,c; if (a=c=5,b=7) else()
a.cc:1:11: error: extended character 〈 is not valid in an identifier 1 | # include 〈stdio.h〉 | ^ a.cc:1:11: error: #include expects "FILENAME" or <FILENAME> 1 | # include 〈stdio.h〉 | ^~~~~~~ a.cc:1:19: error: extended character 〉 is not valid in an identifier 1 | # include 〈s...
s872779164
p04043
C++
# include 〈stdio.h〉 int main ( ) { int A,B,C; if (A=C=5,B=7) (A=B=5,C=7)(B=C=7,A=5)printf("yes.\n") else(A=C=7,B=5)(A=B=7,C=5)(B=C=7,A=5)printf("no.\n") return 0 }
a.cc:1:11: error: extended character 〈 is not valid in an identifier 1 | # include 〈stdio.h〉 | ^ a.cc:1:11: error: #include expects "FILENAME" or <FILENAME> 1 | # include 〈stdio.h〉 | ^~~~~~~ a.cc:1:19: error: extended character 〉 is not valid in an identifier 1 | # include 〈s...
s724959454
p04043
C++
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; scanf_s("%d%d%d", &a, &b, &c); if (a == 7, b == 5, c == 5 || a == 5, b == 7, c == 5 || a == 5, b == 5, c == 7) { printf("yes\n"); } else printf("NO\n"); system("pause"); }
a.cc: In function 'int main()': a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 6 | scanf_s("%d%d%d", &a, &b, &c); | ^~~~~~~ | scanf
s003679842
p04043
C++
#include<iostream> using namespace std; int main() { long long int n,a,b,s=0; cin>>a>>b>>c; if(a==5&&b==5&&c==7) { cout<<"YES"<<endl; return 0; } if(a==5&&b==7&&c==5) { cout<<"YES"<<endl; return 0; } if(a==7&&b==5&&c==5) { cout<<"YES"<<endl; return 0; } cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:20: error: 'c' was not declared in this scope 6 | cin>>a>>b>>c; | ^
s749932751
p04043
C
#include <stdio.h> #include <stdlib.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 o; }
main.c: In function 'main': main.c:11:16: error: 'o' undeclared (first use in this function) 11 | return o; | ^ main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
s293970072
p04043
C
#include <stdio.h> int main() { int n5 = 0, n7 = 0, i, A[4]; scanf_s("%d %d %d", &A[1], &A[2], &A[3]); for (i = 1; i < 4; i++) { if (A[i] = 5)n5++; if (A[i] = 7)n7++; } if (n5 == 2 & n7 == 1)printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 7 | scanf_s("%d %d %d", &A[1], &A[2], &A[3]); | ^~~~~~~ | scanf
s115512958
p04043
C
#include "stdafx.h" int main() { int n5 = 0, n7 = 0, i, A[4]; scanf_s("%d %d %d", &A[1], &A[2], &A[3]); for (i = 1; i < 4; i++) { if (A[i] = 5)n5++; if (A[i] = 7)n7++; } if (n5 == 2 & n7 == 1)printf("YES"); else printf("NO"); return 0; }
main.c:1:10: fatal error: stdafx.h: No such file or directory 1 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s443992442
p04043
C
#include<stdio.h> int main() { float,A,B,C; printf ("please enter YES and NO"); scanf (%d ,%d,%d,&A,&B,&C); if(A=5,&&B=5,&&C=7) printf("YES"); else if(A=7,&&B=5,&&C=7)printf("YES"); else if(A=7,&&B=5,&&C=5)printf("YES"); else puts ("NO") return 0; }
main.c: In function 'main': main.c:3:12: error: expected identifier or '(' before ',' token 3 | { float,A,B,C; | ^ main.c:5:12: error: expected expression before '%' token 5 | scanf (%d ,%d,%d,&A,&B,&C); | ^ main.c:6:9: error: 'A' undeclared (first use in this function)...
s632784486
p04043
C
#include<stdio.h> int main() { float,A,B,C; printf ("please enter YES and NO"); scanf (%d ,%d,%d,&A,&B,&C); if(A=5,&&B=5,&&C=7) puts("YES"); else if(A=7,&&B=5,&&C=7)puts("YES"); else if(A=7,&&B=5,&&C=5)puts("YES"); else puts ("NO") return 0; }
main.c: In function 'main': main.c:3:12: error: expected identifier or '(' before ',' token 3 | { float,A,B,C; | ^ main.c:5:12: error: expected expression before '%' token 5 | scanf (%d ,%d,%d,&A,&B,&C); | ^ main.c:6:9: error: 'A' undeclared (first use in this function)...
s883983071
p04043
C
#include<cstdio> #include<iostream> using namespace std; int main() { int a[3]; int x=0,y=0; for(int i=0;i<3;i++) { cin >> a[i]; if(a[i]==5) x++; if(a[i]==7) y++; } if(x==2&&y==1) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s271359572
p04043
C++
#include<bits/stdc++.h> int A B C int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else if(A ==7 &&B==5 &&C==5) puts("YES"); else puts("NO"); }
a.cc:2:7: error: expected initializer before 'B' 2 | int A B C | ^
s622391200
p04043
C++
#include<iostream> #include<string> using namespace std; int main() { int n, f = 0, s = 0; for (i = 0; i < 3; i++) { cin >> n; if (n == 5) f += 1; if (n == 7) s += 1; } if (f == 2 && s == 1) cout << "YES" << endl; else cout << "NO" << endl;...
a.cc: In function 'int main()': a.cc:8:10: error: 'i' was not declared in this scope 8 | for (i = 0; i < 3; i++) { | ^
s020556456
p04043
C
#include<bits/> using namespace std; int A ,B, C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
main.c:1:9: fatal error: bits/: No such file or directory 1 | #include<bits/> | ^~~~~~~ compilation terminated.
s692868773
p04043
C++
#include<bits/stdc++.h> using namespace std; int A ,B, C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
a.cc: In function 'int main()': a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ~~~~^~~ a.cc:7:26: error: lvalue required as left operand of assignment 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES")...
s020819268
p04043
C++
#include<bits/stdc++.h> using namespace std; int A ,B, C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
a.cc: In function 'int main()': a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES"); | ~~~~^~~ a.cc:7:26: error: lvalue required as left operand of assignment 7 | if(A==5 ,&& B==7 ,&&C=5) puts("YES")...
s905209419
p04043
C++
#include<bits/stdc++.h> using namespace std; int A B C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 ,&& B==7 ,&&C=5) puts("YES"); else if (A==5 ,&&B=5, &&C=7) puts("YES"); else if(A==7 ,&&B=5 ,&&C= 5) puts("YES"); else puts("NO"); }
a.cc:3:7: error: expected initializer before 'B' 3 | int A B C; | ^ a.cc: In function 'int main()': a.cc:6:27: error: 'A' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:6:31: error: 'B' was not declared in this scope 6 | s...
s204480155
p04043
C++
#include<bits/stdc++.h> using namespace std; int A B C; int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else puts("NO"); }
a.cc:3:7: error: expected initializer before 'B' 3 | int A B C; | ^ a.cc: In function 'int main()': a.cc:6:27: error: 'A' was not declared in this scope 6 | scanf ("%d %d %d",&A, &B, &C); | ^ a.cc:6:31: error: 'B' was not declared in this scope 6 | s...
s622424584
p04043
C++
#include<bits/stdc++.h> using namespace std; int A B C int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else if(A ==7 &&B==5 &&C==5) puts("YES"); else puts("NO");...
a.cc:3:7: error: expected initializer before 'B' 3 | int A B C | ^
s757226066
p04043
C
#include<bits/stdc++.h> using namespace std; int A B C int main() { scanf ("%d %d %d",&A, &B, &C); if(A==5 && B==7 &&C=5) puts("YES"); else if (A==5 &&B=5 &&C=7) puts("YES"); else if(A==7 &&B=5 &&C= 5) puts("YES"); else if(A ==7 &&B==5 &&C==5) puts("YES"); else puts("NO");...
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s380259444
p04043
C
#include<bits/stdc++.h> using namespace std; int A,B,C int main() { scanf("%d %d",&A,&B,&C); if(A == 5 &&B ==7 C==5)puts("YES"); while(A == 5 &&B==5 &&C==7)puts(“YES”); while(A==7 &&B==5 &&C==5)puts(“YES”) else puts(“NO”) }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s133340267
p04043
C
#include<stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); return 0; }
main.c: In function 'main': main.c:6:10: error: called object is not a function or function pointer 6 | printf("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); | ^~~~~~
s336949665
p04043
C
#include<stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); puts("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); return 0; }
main.c: In function 'main': main.c:6:8: error: called object is not a function or function pointer 6 | puts("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO"); | ^~~~~~
s644089509
p04043
C++
#include<iostream> using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; if(a==5&&b==5&&c==7){cout<<"YES"<<endl;return 0;} if(a==5&&b==7&&c==5){cout<<"YES"<<endl;return 0;} if(a==7&&b==5&&c==5){cout<<"YES"<<endl;return 0;}//三种情况 else cout<<"NO"<<endl;/ return 0; }
a.cc: In function 'int main()': a.cc:9:27: error: expected primary-expression before '/' token 9 | else cout<<"NO"<<endl;/ | ^ a.cc:10:5: error: expected primary-expression before 'return' 10 | return 0; | ^~~~~~
s746102566
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> a >> b >> c; if ((a == 5 && b == 7 && c == 5) || (a == 5 && b == 5 && c == 7) || (a == 7 && b == 5 && c == 5)) cout << "YES"; else cout << "NO"; }
a.cc: In function 'int main()': a.cc:5:12: error: 'a' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:17: error: 'b' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:22: error: 'c' was not declared in this scope 5 | cin >>...
s687625351
p04043
C++
#include<bits/stdc++.h> using namespace std; int a,b[10001]; int main() { for(int i=1;i<=n;i++) { cin>>a; b[a]++; } if(b[5]==2&&b[7]==1) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:6:24: error: 'n' was not declared in this scope 6 | for(int i=1;i<=n;i++) | ^
s598997418
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[3]; cin>>a[0]>>a[1]>>c[2]; 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:26: error: 'c' was not declared in this scope 6 | cin>>a[0]>>a[1]>>c[2]; | ^
s798406162
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a=="557"||a=="575"||a=="755") { cout<<"No"; } else { cout<<"Yes"; } }
a.cc: In function 'int main()': a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a=="557"||a=="575"||a=="755") | ~^~~~~~~ a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | if(a=="557"||a=="57...
s553997319
p04043
C++
#include <bits/stdc++.h> using namespace std; int a[3]; int main() { for(i=1;i<=3;i++) { cin>>a[i]; } if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:6:13: error: 'i' was not declared in this scope 6 | for(i=1;i<=3;i++) | ^ a.cc:10:23: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 10 | if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES"; | ...
s811726522
p04043
Java
import java.util.*;class Main{public static void main(String[] g){Scanner s=new Scanner(System.in);System.out.println(s.nextInt()^s.nextInt()^s.nextInt()>6?"YES":"NO");}}
Main.java:1: error: bad operand types for binary operator '^' import java.util.*;class Main{public static void main(String[] g){Scanner s=new Scanner(System.in);System.out.println(s.nextInt()^s.nextInt()^s.nextInt()>6?"YES":"NO");}} ...
s506410870
p04043
C++
#include <bits/stdc++.h> using namespace std ; int main () { int a [ 4 ] ; for ( int i = 1 ; i <= 3 ; ++ i ){ cin >> a [ i ] ; } sort ( a + 1 , a + 1 + a ) ; if ( a [ 1 ] == 5 && a [ 2 ] == 5 && a [ 3 ] == 7 ){ cout << "YES" ; return 0 ; } cout << "NO" ; return ...
a.cc: In function 'int main()': a.cc:11:26: error: invalid operands of types 'int*' and 'int [4]' to binary 'operator+' 11 | sort ( a + 1 , a + 1 + a ) ; | ~~~~~ ^ ~ | | | | int* int [4]
s469605001
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"<<endl; } else if(a==7&&b==7&&c==5) { cout<<"YES"<<endl; } else if(a==5&&b==7&&c==5) { cout<<5/0<<endl; } else if(a==5&&b==7&&c==7) { while(...
a.cc:22:9: error: extended character   is not valid in an identifier 22 | else if(a==7&&b==5&&c==5) | ^ a.cc: In function 'int main()': a.cc:16:16: warning: division by zero [-Wdiv-by-zero] 16 | cout<<5/0<<endl; | ~^~ a.cc:22:9: error: 'else\U00003000if' was not d...
s405146786
p04043
C++
#include<iostream> using namespace std; int main() { int a,b,c;cin>>a>>b>>c; if(a==5&&b==7&&c==5)cout<<"YES"<<endl; else if(a==7&&b==5&&c==5)cout<<"NO"<<endl; else if(a==7&&b==7&&c==5) { while(1){} } else if(a==5&&b==7&&c==7) { int d[10000000000][10000000000]={0}; } else ...
a.cc: In function 'int main()': a.cc:14:13: error: size of array 'd' exceeds maximum object size '9223372036854775807' 14 | int d[10000000000][10000000000]={0}; | ^
s669212286
p04043
C++
#include <stdio.h> int main(void) #include<stdio.h> int main(void) { int n[3], i, count5 = 0, count7 = 0; for (i = 0; i < 3; i++) { scanf("%d", &n[i]); if (n[i] == 5) { count5 ++; } else if (n[i] == 7) { count7 ++; } } if (count5 == 2 && c...
a.cc:7:1: error: expected initializer before 'int' 7 | int main(void) | ^~~
s255001088
p04043
C++
#include<stdio.h> int main(void){ int a[3]; for(int i=0;i<3;i++){ scanf("%d", &a[i]); } int jud = 1; if((a[0]+a[1]+a[2])==17){ if(a[0]==5){ if(a[1]==5) jud = 0; else if(a[1]==7) jud = 0: } else if(a[0]==7){ if(a[1]==5) jud = 0; ...
a.cc: In function 'int main()': a.cc:12:37: error: expected ';' before ':' token 12 | else if(a[1]==7) jud = 0: | ^ | ;
s837886469
p04043
C++
#include<stdio.h> int main(void){ int a[3] for(int i=0;i<3;i++){ scanf("%d", &a[i]); } int jud = 1; if((a[0]+a[1]+a[2])==17){ if(a[0]==5){ if(a[1]==5) jud = 0; else if(a[1]==7) jud = 0: } else if(a[0]==7){ if(a[1]==5) jud = 0; ...
a.cc: In function 'int main()': a.cc:5:5: error: expected initializer before 'for' 5 | for(int i=0;i<3;i++){ | ^~~ a.cc:5:17: error: 'i' was not declared in this scope 5 | for(int i=0;i<3;i++){ | ^ a.cc:9:9: error: 'a' was not declared in this scope 9 | if((a[0]+a...
s969155331
p04043
C++
#include<stdio.h> int main(void){ int a[3] for(int i=0;i<3;i++){ scanf("%d", &a[i]); } int true = 1; if((a[0]+a[1]+a[2])==17){ if(a[0]==5){ if(a[1]==5) true = 0; else if(a[1]==7) true = 0: } else if(a[0]==7){ if(a[1]==5) true = 0; ...
a.cc: In function 'int main()': a.cc:5:5: error: expected initializer before 'for' 5 | for(int i=0;i<3;i++){ | ^~~ a.cc:5:17: error: 'i' was not declared in this scope 5 | for(int i=0;i<3;i++){ | ^ a.cc:8:9: error: expected unqualified-id before 'true' 8 | int tru...