submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s597752904
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin >>a>>b>>c; d=0 if (a==7 & b==5 & c==5) { d=1; } else if (a==5 & b==7 & c==5) { d=1; } else if (a==5 & b==5 & c==7) { d=1; } if (d==1) { cout << "YES" << endl; } else { cout << "NO" << endl; } } ...
a.cc: In function 'int main()': a.cc:7:6: error: expected ';' before 'if' 7 | d=0 | ^ | ; 8 | if (a==7 & b==5 & c==5) { | ~~ a.cc:11:3: error: 'else' without a previous 'if' 11 | else if (a==5 & b==7 & c==5) { | ^~~~
s792823381
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(); { int a,b,c,d; cin >>a>>b>>c; d=0 if (a==7 & b==5 & c==5) { d=1; } else if (a==5 & b==7 & c==5) { d=1; } else if (a==5 & b==5 & c==7) { d=1; } if (d==1) { cout << "YES" << endl; } else { cout << "NO" << endl; } } ...
a.cc:4:13: error: expected unqualified-id before '{' token 4 | int main(); { | ^
s542530521
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c ; cin >> a >> b >> c; vector<int> vec = {a, b, c}; sort(vec.begin(), vec.end()) if (vec.at(0)==5 && vec.at(1)==5 && vec.at(2)==7){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:33: error: expected ';' before 'if' 8 | sort(vec.begin(), vec.end()) | ^ | ; ...... 11 | if (vec.at(0)==5 && vec.at(1)==5 && vec.at(2)==7){ | ~~ a.cc:14:...
s833959263
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c ; cin >> a >> b >> c; vector<int> vec = {a, b, c}; sort(vec.begin(), vec.end());  swap(vec.at(1) , vec.at(2)); for (int i = 0; i < vec.size(); i++) { cout << vec.at(i) << endl; } if (vec.at(0)==5 && vec.at...
a.cc:9:3: error: extended character   is not valid in an identifier 9 |  swap(vec.at(1) , vec.at(2)); | ^ a.cc: In function 'int main()': a.cc:9:3: error: '\U00003000swap' was not declared in this scope 9 |  swap(vec.at(1) , vec.at(2)); | ^~~~~~
s639937020
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c,; cin >> a >> b >> c; vector<int> vec = {a, b, c}; sort(vec.begin(), vec.end()); for (int i = 0; i < vec.size(); i++) { cout << vec.at(i) << endl; } swap (vec.at(1) ,vec.at(2)); if (vec.at(0)==5 && vec.at(1)=...
a.cc: In function 'int main()': a.cc:5:15: error: expected unqualified-id before ';' token 5 | int a, b, c,; | ^
s180887152
p04043
C++
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a=b=5 && c=7) { printf("%s,"yes"); } else if(a=c=5 && b=7) { printf("%s,"yes"); } else if(c=b=5 && a=7) { printf("%s,"yes"); } else if() { printf("%s,"yes"); ...
a.cc:8:22: warning: missing terminating " character 8 | printf("%s,"yes"); | ^ a.cc:8:22: error: missing terminating " character 8 | printf("%s,"yes"); | ^~~ a.cc:12:22: warning: missing terminating " character 12 | printf("%s,"yes"); ...
s952484051
p04043
C++
#include<cstdio> #include<string> #include<algorithm> using namespace std; int main(){ int N, L; scanf("%d %d", &N, &L); string str[100]; for(int i=0; i<N; i++){ char tmp[L]; scanf("%s", tmp); str[i] = tmp; } sort(str, str+N); for(int i = 0; i < N; i++){ char s; s = str[i]; ...
a.cc: In function 'int main()': a.cc:21:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment 21 | s = str[i]; | ~~~~~^ | | | std::string {aka std::__cxx11::basic_string<char>}
s638865954
p04043
C++
#include<cstdio> int main(){ int a, b, c; scanf(%d %d %d, &a, &b, &c); printf(a*b*c==5*7*5?"YES":"NO"); }
a.cc: In function 'int main()': a.cc:5:9: error: expected primary-expression before '%' token 5 | scanf(%d %d %d, &a, &b, &c); | ^ a.cc:5:10: error: 'd' was not declared in this scope 5 | scanf(%d %d %d, &a, &b, &c); | ^
s824314894
p04043
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class BC042_IrohaAndHaiku { public static void main(String[] args) throws IOException { InputReader in = new InputReader(); int[] arr = new int[3]; f...
Main.java:7: error: class BC042_IrohaAndHaiku is public, should be declared in a file named BC042_IrohaAndHaiku.java public class BC042_IrohaAndHaiku { ^ 1 error
s964440331
p04043
C++
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class BC042_IrohaAndHaiku { public static void main(String[] args) throws IOException { InputReader in = new InputReader(); int[] arr = new int[3]; f...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.BufferedReader; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.io.IOException; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fm...
s018819381
p04043
C++
import java.io.*; import java.util.*; public class BC042_IrohaAndHaiku { public static void main(String[] args) throws IOException { InputReader in = new InputReader(); int[] arr = new int[3]; for (int i=0; i<3; i++) arr[i] = in.nextInt(); Arrays.sort(arr); if (isHaiku(arr)) System.out.printl...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.util.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: ...
s448483437
p04043
C++
#include <iostream> #include <algorithm> #include <stdio.h> #include <vector> #include <string> using namespace std; int main() { int a, b, c; bool tf; cin >> a >> b >> c; if(a == 5){ if(b == 7){ if(c == 5){ tf = true; } else { tf = false;...
a.cc: In function 'int main()': a.cc:27:23: error: expected ';' before '}' token 27 | tf = false | ^ | ; 28 | } | ~
s524158346
p04043
C++
#include <bits/stdc++.h> using namespace std; using ll=long long; int main(){ int a; count5=0; count7=0; for(int i=0;i<3;i++){ cin>>a; if(a==5)count5++; else if(a==7)count7++; } if(count5==2&&count7==1) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: 'count5' was not declared in this scope 6 | count5=0; | ^~~~~~ a.cc:7:3: error: 'count7' was not declared in this scope 7 | count7=0; | ^~~~~~
s568512188
p04043
C++
#include<iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if( (A=5 && B=5 && C=7) || (A=5 && B=7 && C=5) || (A=7 && B=5 && C=5) ) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:19: error: lvalue required as left operand of assignment 9 | if( (A=5 && B=5 && C=7) || (A=5 && B=7 && C=5) || (A=7 && B=5 && C=5) ) | ~~^~~~ a.cc:9:42: error: lvalue required as left operand of assignment 9 | if( (A=5 && B=5 && C=7) || (A=5 && B=...
s942252967
p04043
C++
#include<iostream> using namespace std; void 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:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:9:19: error: lvalue required as left operand of assignment 9 | if( (A=5 && B=5 && C=7) && (A=5 && B=7 && C=5) && (A=7 && B=5 && C=5) ) | ~~^~~~ a.cc:9:42: error: lvalue required ...
s701491438
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> X(3); for (int i=0; i<3; i++) cin >> X.at(i); X == {5,7,5} }
a.cc: In function 'int main()': a.cc:8:8: error: expected primary-expression before '{' token 8 | X == {5,7,5} | ^
s595254353
p04043
C++
package main import ( "fmt" ) func main() { var a, b, c int fmt.Scanf("%d %d %d", &a, &b, &c) if a == b { if a == 5 && c == 7 { fmt.Printf("YES\n") } else { fmt.Printf("NO\n") } } else if b == c { if b == 5 && a == 7 { fmt.Printf("YES\n") } else { fmt.Printf("NO\n") } } else { fmt.Pr...
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~
s877590198
p04043
C++
#include<iostream> using namespace std; void main(){ int a[3],f=0,s=0; for(int i=0;i<3;i++){ cin>>a[i]; } for(int i=0;i<3;i++){ if(a[i]==5) f++; else if(a[i]==7) s++; } if(f==2 && s==1) cout<<"YES"; else cout<<"NO"; }
a.cc:3:1: error: '::main' must return 'int' 3 | void main(){ | ^~~~
s402370229
p04043
C++
a = input().split(" ") if (a[0]=="5" and a[1]=="5" and a[2]=="7") or (a[0]=="5" and a[1]=="7" and a[2]=="5") or (a[0]=="7" and a[1]=="5" and a[2]=="4"): print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a = input().split(" ") | ^
s857682186
p04043
C++
nums=map(int,input().split()) if sorted(nums) == [5,5,7]: 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: 'nums' does not name a type 1 | nums=map(int,input().split()) ...
s099428041
p04043
C++
#include <iostream> using namespace std; int main(){ int A[3]; cin >> A[0] >> A[1] >> A[2]; sort(A, A + 3); if((A[0] == 5) && (A[1] == 5) && (A[2] == 7)) { cout << "YES" << endl; } else { cout << "NO" <<endl; } 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(A, A + 3); | ^~~~ | short
s216088896
p04043
C++
typedef long long ll; #include <bits/stdc++.h> using namespace std; template<typename A, size_t N, typename T> void Fill(A (&array)[N], const T &val){ std::fill( (T*)array, (T*)(array+N), val ); } int main(){ ll a[3] cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[0] == 5 && a[1] == 5 && a[2] == 7){ cout<<"Y...
a.cc: In function 'int main()': a.cc:12:3: error: expected initializer before 'cin' 12 | cin>>a[0]>>a[1]>>a[2]; | ^~~ a.cc:13:8: error: 'a' was not declared in this scope 13 | sort(a,a+3); | ^
s463800188
p04043
C++
#include <bits/stdc++.h> using namespace std; int main (){ string A,B,C; cin >> A >> B >> C; int Q = 0; if(A.size() == 5 && B.size() == 5 && C.size() == 7 ) cout << "YES" << endl;Q++; if(A.size() == 7 && B.size() == 5 && C.size() == 5 ) cout << "YES" << endl;Q++; if(A.size() == 5 && B.size() == 7 &&...
a.cc: In function 'int main()': a.cc:13:3: error: 'else' without a previous 'if' 13 | else | ^~~~
s999756891
p04043
C++
#include <bits/stdc++.h> using namespace std; // int N が既に与えられているとする. int main(){ int n = 3 int flag_five = 0; int flag_seven = 0; int l, i = 0, a[n]; while (std::cin >> l) { a[i] = l; i++; if (i >= n) { break; } } for(int i=0; i<n; i++){ if (a[i] == 5) { flag_five++; ...
a.cc: In function 'int main()': a.cc:6:3: error: expected ',' or ';' before 'int' 6 | int flag_five = 0; | ^~~ a.cc:19:7: error: 'flag_five' was not declared in this scope; did you mean 'flag_seven'? 19 | flag_five++; | ^~~~~~~~~ | flag_seven a.cc:26:7: error: 'flag_five' ...
s542207703
p04043
Java
public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int[] oto = new int[3]; //入力を数値に変換 for(int i=0; i<args.length; i++) { oto[i] = Integer.parseInt(args[i]); } if(oto[0] != 5) { int toriaezu = oto[1]; oto[1] = oto[0]; oto[0] = toriaezu; } if(oto[2] != 5) { int toriaezu = oto...
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
s705258324
p04043
Java
package a042; public class Iroha { public static void Main(String[] args) { // TODO 自動生成されたメソッド・スタブ int[] oto = new int[3]; //入力を数値に変換 for(int i=0; i<args.length; i++) { oto[i] = Integer.parseInt(args[i]); } if(oto[0] != 5) { int toriaezu = oto[1]; oto[1] = oto[0]; oto[0] = toriaezu; } i...
Main.java:3: error: class Iroha is public, should be declared in a file named Iroha.java public class Iroha { ^ 1 error
s810717645
p04043
C++
#include<iostream> using namespace std; int main(){ int num[3]; cin>>num[0]>>num[1]>>num[2]; int num5,num7; num5=0; num7=0; for(int i=0;i<3;i++){ if(num[i]==5){ num5++; } else if(num[i]==7){ num7++; } } if(num5==2 && num7==1){ cout<<"YES"<<rndl; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:20:14: error: 'rndl' was not declared in this scope 20 | cout<<"YES"<<rndl; | ^~~~
s228656971
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> A(3); cin >> A.at(0) >> A.at(1) >. A.at(2); sort(A.begin(),A.end()); if(A.at(0) == 5&&A.at(1) == 5&&A.at(2) == 7){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:30: error: expected primary-expression before '.' token 6 | cin >> A.at(0) >> A.at(1) >. A.at(2); | ^
s817877776
p04043
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] check = new int[3]; int A = scan.nextInt(); int B = scan.nextInt(); int C = scan.nextInt(); check[0] = A; check[1] = B; check[2] = C; ...
Main.java:23: error: not a statement check[i] ^ Main.java:23: error: ';' expected check[i] ^ 2 errors
s238643488
p04043
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] check = new int[3]; check[0] = int A = scan.nextInt(); check[1] = int B = scan.nextInt(); check[2] = int C = scan.nextInt(); int count_5 = 0; in...
Main.java:7: error: '.class' expected check[0] = int A = scan.nextInt(); ^ Main.java:8: error: '.class' expected check[1] = int B = scan.nextInt(); ^ Main.java:9: error: '.class' expected check[2] = int C = scan.nextInt(); ^ Main.java:19: erro...
s866042923
p04043
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ int a[3]; for(int i=0;i<3;i++){ cin>>a[i]; } sort(a,a+3); if(a[0]==5 && a[1]==5 && a[2]==7){ cout << YES << endl; else{ cout << NO << endl; } }
a.cc: In function 'int main()': a.cc:15:13: error: 'YES' was not declared in this scope 15 | cout << YES << endl; | ^~~ a.cc:16:5: error: expected '}' before 'else' 16 | else{ | ^~~~ a.cc:14:36: note: to match this '{' 14 | if(a[0]==5 && a[1]==5 && a[2]==7){ | ...
s320506304
p04043
C++
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define OP ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define F first #define S second #define sz(x) (int)x.size() #define all(x) (x).begin(), (x).end() #define rep(i, n) for(int i = 0; i < n; ++i) #define repr(i,n) for(int i = n - 1; i >= 0; ...
a.cc: In function 'void solve()': a.cc:25:17: error: 'n' was not declared in this scope 25 | sort(a, a + n); | ^
s194107220
p04043
C++
#include<iostream> using namespace std; int main() { int a[3]; int ans,sum; for(int i=0; i<3; i++) { cin >> a[i]; sum += a[i]; if(a[i] = 5 || a[i] = 7) { ans++; } } if(sum == 17 && ans == 3) { cout << "YES" <<endl; } else { cout << "NO" <<endl; }
a.cc: In function 'int main()': a.cc:11:17: error: lvalue required as left operand of assignment 11 | if(a[i] = 5 || a[i] = 7) { | ~~^~~~~~~ a.cc:19:4: error: expected '}' at end of input 19 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s931138144
p04043
C
#include<stdio.h> int mian() { int a,b,c; scanf("%d %d %d ",&a,&b,&c); if (a==5 && b==5 && c==7) { printf("Yes\n"); return 0; } else if(a==5 && b==7 && c==5){ printf("YES\n"); return 0; } else if(a==7 && b==5&& c==5){ printf("Yes\n"); return 0; } else{ printf("N...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s182585752
p04043
C
#include<stdio.h> include<stdlib.h> int main(int argc, char **argv){ int n1 = atoi(argv[1]); int n2 = atoi(argv[2]); int n3 = atoi(argv[3]); if(n1 == 5){ if(n2 == 5){ if(n3 == 7){ printf("YES"); } else{ printf("NO"); } } else if(n2 == 7 ){ if ( n3 == 5){ printf("YES...
main.c:2:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 2 | include<stdlib.h> | ^
s093645843
p04043
C++
#include <cstdio> #include <algorithm> int main() { int a[3]; for(int i=0; i<3; ++i) { scanf("%d", a+i); } std:sort(a, a+3); printf("%s", a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO"); }
a.cc: In function 'int main()': a.cc:9:7: error: 'sort' was not declared in this scope; did you mean 'std::sort'? 9 | std:sort(a, a+3); | ^~~~ | std::sort In file included from /usr/include/c++/14/algorithm:86, from a.cc:2: /usr/include/c++/14/pstl/glue_algorithm_defs.h:29...
s792211229
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; 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" >> endl;} else{ cout >> "NO" >> endl; } }
a.cc: In function 'int main()': a.cc:7:9: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 7 | cout >> "YES" >> endl;} | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {aka std::basic_o...
s415165218
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; 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; >> endl;} else{ cout >> NO >> endl; } }
a.cc: In function 'int main()': a.cc:6:20: error: 'C' was not declared in this scope 6 | if(a==5&&b==7&&C==5||a==5&&b==5&&c==7||a==7&&b==5&&c==5){ | ^ a.cc:7:12: error: 'YES' was not declared in this scope 7 | cout >> YES; >> endl;} | ^~~ a.cc:7:17: error: expect...
s412099770
p04043
C
#include<stdio.h> int main() { int A, B, C; scanf("%d %d %d", &A, &B, &C); if((A+B+C)/(5+7+5)=1) printf("YES\n"); else ( printf("NO\n")); return 0; }
main.c: In function 'main': main.c:6:21: error: lvalue required as left operand of assignment 6 | if((A+B+C)/(5+7+5)=1) | ^
s662398436
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); elseif(A==5 && B==7 && C==5); elseif ( A==7 && B==5 && C==7); printf("yes\n"); else; printf("no\n"); return 0; }
main.c: In function 'main': main.c:7:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 7 | elseif(A==5 && B==7 && C==5); | ^~~~~~ main.c:10:3: error: 'else' without a previous 'if' 10 | else; printf("no\n"); | ^~~~
s646441620
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); elseif(A==5 && B==7 && C==5); elseif ( A==7 && B==5 && C==7); printf("yes\n"); elseif printf("no\n"); return 0; }
main.c: In function 'main': main.c:7:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 7 | elseif(A==5 && B==7 && C==5); | ^~~~~~ main.c:10:9: error: expected ';' before 'printf' 10 | elseif printf("no\n"); | ^~~~~~~ | ;
s878985987
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); elseif(A==5 && B==7 && C==5); elseif ( A==7 && B==5 && C==7); printf("yes\n"); else printf("no\n"); return 0; }
main.c: In function 'main': main.c:7:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 7 | elseif(A==5 && B==7 && C==5); | ^~~~~~ main.c:10:3: error: 'else' without a previous 'if' 10 | else printf("no\n"); | ^~~~
s189146615
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 if A==5 && B==7 && C==5 if A==7 && B==5 && C==7; printf("yes\n"); else printf("no\n"); return 0; }
main.c: In function 'main': main.c:6:6: error: expected '(' before 'A' 6 | if A==5 && B==5 && C==7 | ^ | ( main.c:10:3: error: 'else' without a previous 'if' 10 | else printf("no\n"); | ^~~~
s851782905
p04043
C++
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if((a + b + c == 19) && ((a == 7 && b == 7) || (a==7 && c == 7) || (b==7 && c==7))) { cout << "YES" << endl; } else { count << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:16:5: error: 'count' was not declared in this scope 16 | count << "NO" << endl; | ^~~~~
s848458493
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a; int b; int c; cin>> a >> b >> c ; int sum = a+b+c; string ans = "YES" if(sum -5 - 5 -7 != 0){ ans = "NO"; } cout << ans <<endl; }
a.cc: In function 'int main()': a.cc:11:3: error: expected ',' or ';' before 'if' 11 | if(sum -5 - 5 -7 != 0){ | ^~
s549951959
p04043
C++
using namespace std; int main(){ int a; int b; int c; cin>> a >> b >> c ; int sum = a+b+c; string ans = "YES"; if(sum -5 - 5 -7 != 0){ ans = "NO"; } cout << ans <<endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | 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 | using namespace std; a.cc:9:3: erro...
s091729618
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a; int b; int c; cin>> a >> b >> c ; int sum = a+b+c; string ans = "YES" if(sum -5 - 5 -7 != 0){ ans = "NO"; } cout << ans <<endl; }
a.cc: In function 'int main()': a.cc:11:3: error: expected ',' or ';' before 'if' 11 | if(sum -5 - 5 -7 != 0){ | ^~
s878160786
p04043
Java
public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if((a == 5) && (b == 5) && (c == 7)){ System.out.println("yes"); }else if((a == 5)&&(b == 7)&&(c==5)){ ...
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
s291467368
p04043
C++
#include<bits/stdc++> 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:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s076526667
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if((a==5&&b==5&&c==7)(a==5&&b==7&&c==5)(a==7&&b==5&&c==5)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:24: error: expression cannot be used as a function 7 | if((a==5&&b==5&&c==7)(a==5&&b==7&&c==5)(a==7&&b==5&&c==5)){ | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
s414303913
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a == 7) { if(b == 5 && c ==5) cout<<"YES"; return 0; } if(a == 5) { if((b == 7 && c == 5) || (c == 5 && b == 7)) { cout<<"YES"; return 0; } } return...
a.cc:26:1: error: expected declaration before '}' token 26 | } | ^
s306149552
p04043
C++
include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a == 5 || a == 7) && (b== 5 || b == 7) && (c == 5 || c == 7) && a+b+c == 17) { cout << "YES\n"; } else { cout << "NO\n"; } }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope 8 | cin >> a >> b >> c; | ^~~ a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout << "YES\n"; | ...
s170202641
p04043
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ vector<int>a; for(int i= 0; a > i; i++){ int tmp;cin>>tmp; a.push_back(tmp); } 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:19: error: no match for 'operator>' (operand types are 'std::vector<int>' and 'int') 7 | for(int i= 0; a > i; i++){ | ~ ^ ~ | | | | | int | std::vector<int> In file included from /usr...
s301981730
p04043
C++
test
a.cc:1:1: error: 'test' does not name a type 1 | test | ^~~~
s068668032
p04043
C++
#include <iostream> #include <stdio.h> using namespace std; int main() { int A[3]; for (int i = 0; i < 3; i++) { cin >> A[i]; } sort(A, A + 3); if (A[0]==A[1] && A[0]==5 && A[2]==7) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0...
a.cc: In function 'int main()': a.cc:14:5: error: 'sort' was not declared in this scope; did you mean 'short'? 14 | sort(A, A + 3); | ^~~~ | short
s964710699
p04043
C++
#include <cstdio> #include <string> using namespace std; int main(void){ 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"; else cout<<"NO"; cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope 8 | cin>>a>>b>>c; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include <string> +++ |+#include <iostream> 3 | a.cc:10:5: err...
s998185584
p04043
C++
#include <iostream> using namespace std; int main(void){ int a[3],n=0,m=0; for(int i = 0;i >0;i+){ if(a[i] == 5) n++; if(a[i] == 7) m++; } if(n == 2 && m == 7){ cout<<"YES"<<endl; return 0; }else{ cout<<"NO"<<endl; return 0; } }
a.cc: In function 'int main()': a.cc:6:26: error: expected primary-expression before ')' token 6 | for(int i = 0;i >0;i+){ | ^
s390575042
p04043
C++
#include <iostream> using namespace std; int main(void){ int a[i],n=0,m=0; for(int i = 0;i >0;i+;){ if(a[i] == 5) n++; if(a[i] == 7) m++; } if(n == 2 && m == 7){ cout<<"YES"<<endl; return 0; }else{ cout<<"NO"<<endl; return 0; } }
a.cc: In function 'int main()': a.cc:5:11: error: 'i' was not declared in this scope 5 | int a[i],n=0,m=0; | ^ a.cc:6:26: error: expected primary-expression before ';' token 6 | for(int i = 0;i >0;i+;){ | ^ a.cc:6:26: error: expected ')' before ';' token ...
s390966017
p04043
C++
#include <stdio.h> int main(void){ int a[3], count = 0; for(int i = 0; i > 0;i++){ cin>>a[i]; if(a[i] == 5 || a[i] == 7){ count++; }else{ cout<<"NO"<<endl; return 0; } } if(count == 3){ cout<<"YES"<<endl; return 0;...
a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope 7 | cin>>a[i]; | ^~~ a.cc:11:13: error: 'cout' was not declared in this scope; did you mean 'count'? 11 | cout<<"NO"<<endl; | ^~~~ | count a.cc:11:25: error:...
s366505216
p04043
C++
#include<stdio.h> int main(void){ int a[3],count = 0; for(int i = 0 ;i < 3; i++){ cin>>a[i]; if(a[i] == 5 || a[i] == 7){ count++; }else{ cout<<"NO"<<endl; return 0; } } if(count == 3){ cout<<"YES"<<endl; return 0; }else{ count<<"NO"<<endl; return 0; } }
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin>>a[i]; | ^~~ a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'count'? 10 | cout<<"NO"<<endl; | ^~~~ | count a.cc:10:21: error: 'endl' was not decla...
s180773573
p04043
C++
#include<stdio.h> int main(void){ int a[3],count = 0; for(int i = 0 ;i < 3; i++){ cin>>a[i]; if(a[i] == 5 || a[i] == 7){ count++; }else{ cout<<"NO"<<endl; return 0; } } if(count == 3){ cout<<"YES"<<endl; return 0; }else{ count<<"NO"<<endl; return 0; } }
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin>>a[i]; | ^~~ a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'count'? 10 | cout<<"NO"<<endl; | ^~~~ | count a.cc:10:21: error: 'endl' was not decla...
s477365536
p04043
C++
#include<iostream> #include<string> #include<algorithm> #include<vector> #include<cmath> #include<stack> #include<queue> #include<map> #include<set> using namespace std; typedef long long ll; typedef vector<int> VI; int main() { int a, b, c; cin >> a >> b >> c; int t[10] = { 0 }; t[a] ++ t[b]++; t[c] ++; if (t[5...
a.cc: In function 'int main()': a.cc:19:16: error: expected ';' before 't' 19 | t[a] ++ t[b]++; t[c] ++; | ^~ | ;
s502014087
p04043
C++
#include<iostream> #include<string> #include<algorithm> #include<vector> #include<cmath> #include<stack> #include<queue> #include<map> #include<set> using namespace std; typedef long long ll; typedef vector<int> VI; int main() { int a, b, c; cin >> a >> b >> c; int t[10] = { 0 }; t[a] + ; t[b]++; t[c] ++; if (t[...
a.cc: In function 'int main()': a.cc:19:16: error: expected primary-expression before ';' token 19 | t[a] + ; t[b]++; t[c] ++; | ^
s273308992
p04043
C++
#include <iostream> #include <algorithm> #include <math.h> #include <stdio.h> using namespace std; int main(){ int go = 0; int shiti = 0; string aa, b, c; cin>>aa>>b>>c; int a[3]; a[0] = aa.size(); a[1] = b.size(); a[2] = c.size(); for(i=0;i<3;i++){ if(a[i]==5){ ...
a.cc: In function 'int main()': a.cc:17:9: error: 'i' was not declared in this scope 17 | for(i=0;i<3;i++){ | ^
s774411540
p04043
C++
#include <iostream> #include <algorithm> #include <math.h> #include <stdio.h> using namespace std; int main(){ int go = 0; int shiti = 0; string a, b, c; cin>>a>>b>>c; int a[3]; a[0] = a.size(); a[1] = b.size(); a[2] = c.size(); for(i=0;i<3;i++){ if(a[i]==5){ go...
a.cc: In function 'int main()': a.cc:12:9: error: conflicting declaration 'int a [3]' 12 | int a[3]; | ^ a.cc:10:12: note: previous declaration as 'std::string a' 10 | string a, b, c; | ^ a.cc:17:9: error: 'i' was not declared in this scope 17 | for(i=0;i<3;i++){ ...
s800912804
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"); } else if(a==7&&b==5&&c==5){ printf("YES"); } else if(a==5&&b==7&&c==5){ printf("YES"); } else{ printf("NO"); return 0; } }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s543849255
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"); } else if(a==7&&b==5&&c==5){ printf("YES"); } else if(a==5&&b==7&&c==5){ printf("YES"); } else{ printf("NO"); return 0; } }
main.c: In function 'main': main.c:4:17: error: invalid operands to binary & (have 'char *' and 'int') 4 | scanf("%d%d%d"&a,&b,&c); | ~~~~~~~~^ | | | char *
s347075494
p04043
C++
#include<bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; vector<int> vec(3); vec = {A, B, C}; sort(vec.begin(),vec.end()); if (vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7) { 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; | ^~
s249463030
p04043
C++
#include <algorithm> #include <vector> #include <string> #include <cstring> #include <complex> #include <stack> #include <queue> #include <unordered_map> #include <map> using namespace std ; void main(){ int n, 1; vector<string> v; string s; cin >> n >> 1; int i = 0; for(i = 0; i < n; i++){ cin >> s; v.pu...
a.cc:12:1: error: '::main' must return 'int' 12 | void main(){ | ^~~~ a.cc: In function 'int main()': a.cc:13:16: error: expected unqualified-id before numeric constant 13 | int n, 1; | ^ a.cc:16:9: error: 'cin' was not declared in this scope 16 | cin >> n >> 1; ...
s126383465
p04043
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cstring> #include <complex> #include <stack> #include <queue> #include <unordered_map> #include <map> using namespace std ; int main(){ int n, 1; vector<string> v; string s; cin >> n >> 1; int i = 0; for(i = 0; i < n; i++){ ...
a.cc: In function 'int main()': a.cc:14:16: error: expected unqualified-id before numeric constant 14 | int n, 1; | ^ a.cc:17:18: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 17 | cin...
s572941277
p04043
C
int main(){ int n, 1; vector<string> v; string s; cin >> n >> 1; int i = 0; for(i = 0; i < n; i++){ cin >> s; v.push_back(s); } sort(v.begin(), v.end()); for(i = 0; i < n; i++){ cout << v[i]; } cout << endl; }
main.c: In function 'main': main.c:2:16: error: expected identifier or '(' before numeric constant 2 | int n, 1; | ^ main.c:3:9: error: 'vector' undeclared (first use in this function) 3 | vector<string> v; | ^~~~~~ main.c:3:9: note: each undeclared identifier ...
s695326203
p04043
C++
int main(){ int n, 1; vector<string> v; string s; cin >> n >> 1; int i = 0; for(i = 0; i < n; i++){ cin >> s; v.push_back(s); } sort(v.begin(), v.end()); for(i = 0; i < n; i++){ cout << v[i]; } cout << endl; }
a.cc: In function 'int main()': a.cc:2:16: error: expected unqualified-id before numeric constant 2 | int n, 1; | ^ a.cc:3:9: error: 'vector' was not declared in this scope 3 | vector<string> v; | ^~~~~~ a.cc:3:16: error: 'string' was not declared in this scope...
s843770680
p04043
C++
#include"bits/stdc++.h" using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if (max({a,b,c}==7 && min({a,b,c}==5 && a+b+c==17))) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:18: error: expected ')' before '==' token 7 | if (max({a,b,c}==7 && min({a,b,c}==5 && a+b+c==17))) cout << "YES" << endl; | ~ ^~ | )
s131500600
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; string ans; vector<int> vec = {a,b,c}; sort(vec.begin(),vec.end()); if (vec[0]==5 && vec[1]==7 && vec[2]==5) ans = "YES"; else ans = "NO"; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'vector' was not declared in this scope 7 | vector<int> vec = {a,b,c}; | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include <iostream> +++ |+#include <vector> 2...
s152193266
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; string ans; vector<int> vec = {a,b,c}; sort(vec.begin(),vec.end()); if(vec[0]==5 && vec[1]==7 && vec[2]==5) ans = "YES"; else ans = "NO"; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:6:3: error: 'vector' was not declared in this scope 6 | vector<int> vec = {a,b,c}; | ^~~~~~ a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include <iostream> +++ |+#include <vector> 2...
s212489131
p04043
C++
#include<bits/stdc++.h> #include<iostream> #include<vector> int main(){ vector<int> A(3); cin >> A[0] >> A[1] >> A[2]; sort(A.begin(), A.end()); if(A[0]==5 && A[1]==5 && A[2]==7){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'vector' was not declared in this scope 6 | vector<int> A(3); | ^~~~~~ a.cc:6:3: note: suggested alternatives: In file included from /usr/include/c++/14/vector:66, from /usr/include/c++/14/functional:64, from /usr/include/x...
s179344983
p04043
C++
#include<bits/stdc++.h> int main(){ vector<int> A(3); cin >> A[0] >> A[1] >> A[2]; sort(A.begin(), A.end()); if(A[0]==5 && A[1]==5 && A[2]==7){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:4:3: error: 'vector' was not declared in this scope 4 | vector<int> A(3); | ^~~~~~ a.cc:4:3: note: suggested alternatives: In file included from /usr/include/c++/14/vector:66, from /usr/include/c++/14/functional:64, from /usr/include/x...
s013884686
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); cin >> vec[0] >> vec[1] >> vec[2]; sort(vec.bigin(), vec.end()); if(vec[0] == 5 && vec[1] == 5 && vec[2] == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:12: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'? 8 | sort(vec.bigin(), vec.end()); | ^~~~~ | begin
s936665297
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; bool result; if(a==7 && b==5 && c==5 || b==7 && a==5 && c==5 || c==7 && a==5 && c=-5){ cout << "YES" << endl; }else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:53: error: lvalue required as left operand of assignment 8 | if(a==7 && b==5 && c==5 || b==7 && a==5 && c==5 || c==7 && a==5 && c=-5){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
s644171151
p04043
C++
a = list(map(int, input().split())) a.sort() if a == [5, 5, 7]: print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a = list(map(int, input().split())) | ^
s435557932
p04043
C++
#include <stdio.h> #include <algorithm> #include <math.h> using namespace std; int main() { int a[3]; scanf("%d %d %d",&a[0],&a[1],&a[2]); int x=0; int y=0; for(i=0;i<3;i++) { if(a[i]==5){x++;} if(a[i]==7){y++;} } if(x==2&&y==1){printf("YES\n");} else{printf("NO\n");} }
a.cc: In function 'int main()': a.cc:11:5: error: 'i' was not declared in this scope 11 | for(i=0;i<3;i++) | ^
s194303726
p04043
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #define REP(i,n) for(i=0;i<n;i++) int iin() { int i; scanf("%d", &i); return i; } long long llin() { long long i; scanf("%lld", &i); return i; } double din() { double i; scanf("%lf",...
main.c: In function 'main': main.c:58:20: error: expected identifier or '(' before 'int' 58 | int f = 0, int n = 0; | ^~~ main.c:63:29: error: 'n' undeclared (first use in this function) 63 | if (m == 7) n++; | ^ main.c:63:29: note...
s819599704
p04043
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if({a,b,c}=={5,5,7}||{a,b,c}=={5,7,5}||{a,b,c}=={7,5,5}) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:7:6: error: expected primary-expression before '{' token 7 | if({a,b,c}=={5,5,7}||{a,b,c}=={5,7,5}||{a,b,c}=={7,5,5}) | ^ a.cc:7:6: error: expected ')' before '{' token 7 | if({a,b,c}=={5,5,7}||{a,b,c}=={5,7,5}||{a,b,c}=={7,5,5}) | ~^ | )
s931679438
p04043
C++
#include <bits/stdc++.h> #define REP(i, n) for(int i = 0; i < n; i++) using namespace std; using ll = long long; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; if(a * b * c * == 5 * 7 * 5) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:18: error: expected primary-expression before '==' token 11 | if(a * b * c * == 5 * 7 * 5) | ^~
s892468615
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; string ans; cin >> a >> b >> c; vector<int> vec{a,b,c}; sort(vec.begin(),vec.end()); if(vec.(0)==5 && vec.(1)==5 && vec.(2) ==7){ ans ="YES"; } else{ ans="NO"; } cout << ans << endl; }
a.cc: In function 'int main()': a.cc:10:10: error: expected unqualified-id before '(' token 10 | if(vec.(0)==5 && vec.(1)==5 && vec.(2) ==7){ | ^ a.cc:10:24: error: expected unqualified-id before '(' token 10 | if(vec.(0)==5 && vec.(1)==5 && vec.(2) ==7){ | ^ a.cc:1...
s450717831
p04043
C++
#include <iostream> #include <string> using namespace std; int Main(void){ int a; int b; int c; cin >> a >> b >> c >> endl; int fc; int sc; if(a == 5){ fc++; }else if(a == 7){ sc++; } if(b == 5){ fc++; }else if(b == 7){ sc++; } if(c == 5){ fc++; }else if(c == 7){ sc++...
a.cc: In function 'int Main()': a.cc:8:22: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 8 | cin >> a >> b >> c >> endl; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/in...
s823086620
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; int prod; cin >> a >> b >> c; prod = a * b * c; if (prod == (5*7*5)) { cout << "YES" << endl; } else { cout << "NO" << endl } return 0; }
a.cc: In function 'int main()': a.cc:13:25: error: expected ';' before '}' token 13 | cout << "NO" << endl | ^ | ; 14 | } | ~
s065413372
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; int prod; cin >> a >> b >> c; prd = a * b * c; if (prd == (5*7*5)) { cout << "YES" << endl; } else { cout << "NO" << endl } return 0; }
a.cc: In function 'int main()': a.cc:9:3: error: 'prd' was not declared in this scope; did you mean 'prod'? 9 | prd = a * b * c; | ^~~ | prod a.cc:13:25: error: expected ';' before '}' token 13 | cout << "NO" << endl | ^ | ; 14 ...
s897373544
p04043
Java
package training1; import java.util.Scanner; public class Iroha { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String[] sArray = s.split(" "); int five = 0; int seven = 0; for(int i=0; i<3; i++) { if(sArray[i].equals("5")) { five++; ...
Main.java:5: error: class Iroha is public, should be declared in a file named Iroha.java public class Iroha { ^ 1 error
s779380112
p04043
C++
#include<bits/stdc++.h> using namespace std; #define str string int main(){ int a,b,c; cin>>a>>b>>c; if(a==5||a==7){ else if(b==5||==7){ else if(c==5||c==7){ else if(a+b+c==17){ cout<<"YES"<<endl; } } } } els...
a.cc: In function 'int main()': a.cc:8:9: error: expected '}' before 'else' 8 | else if(b==5||==7){ | ^~~~ a.cc:7:19: note: to match this '{' 7 | if(a==5||a==7){ | ^ a.cc:8:23: error: expected primary-expression before '==' token 8 | else if(b==5||==...
s425934864
p04043
C++
#include<bits/stdc++.h> using namespace std; #define str string int main(){ int a,b,c; cin>>a>>b>>c; if(a==5||a==7){ if(b==5||==7){ if(c==5||c==7){ if(a+b+c==17){ cout<<"YES"<<endl; } } } } else cout<<"NO"<<e...
a.cc: In function 'int main()': a.cc:8:18: error: expected primary-expression before '==' token 8 | if(b==5||==7){ | ^~
s850410729
p04043
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c>>endl; if(a==5&&b==5&&c==7) cout<<"YES"<<endl; else if(a==5&&b==7&&c==5) cout<<"YES"<<endl; else if(a==7&&b==5&&c==5) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:21: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 6 | cin>>a>>b>>c>>endl; | ~~~~~~~~~~~~^~~~~~ In file included from /usr/includ...
s717162643
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> haiku(3); int p=0, q=0; for (int i = 0; i < 3; i++){ cin >> haiku.at(i); } for (int i = 0; i < 3; i++){ if (haiku.at(i) == 5){ p++; } else if (haiku.at(i) == 7){ q++; ...
a.cc: In function 'int main()': a.cc:23:13: error: expected '(' before '{' token 23 | else if { | ^ | (
s910237650
p04043
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector haiku(3); int p=0, q=0; for (int i = 0; i < 3; i++){ cin >> haiku.at(i); } for (int i = 0; i < 3; i++){ if (haiku.at(i) == 5){ p++; } else if (haiku.at(i) == 7){ q++; ...
a.cc: In function 'int main()': a.cc:5:19: error: class template argument deduction failed: 5 | vector haiku(3); | ^ a.cc:5:19: error: no matching function for call to 'vector(int)' In file included from /usr/include/c++/14/vector:66, from /usr/include/c++/14/functional:...
s351337240
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec (3); sort(vec.begin(), vec.end()); if(vec.at(0)==5&&vec.at(1)==7&&vec.at(2)==7){ cout << Yes << endl; } else{ cout << No<< endl; } }
a.cc: In function 'int main()': a.cc:9:15: error: 'Yes' was not declared in this scope 9 | cout << Yes << endl; | ^~~ a.cc:12:13: error: 'No' was not declared in this scope 12 | cout << No<< endl; | ^~
s082124712
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" << endl; } else{ cout < "NO" << endl; } }
a.cc: In function 'int main()': a.cc:12:29: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 12 | cout < "NO" << endl; | ~~~~~^~~~~~~
s062157110
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" << endl; } else{ cout < "NO" <<endl; } }
a.cc: In function 'int main()': a.cc:12:29: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 12 | cout < "NO" <<endl; | ~~~~~^~~~~~
s302995125
p04043
C
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <string> #include <queue> #include <stack> #include <math.h> #include <set> #define ALL(obj) (obj).begin(),(obj).end() #define RALL(obj) (obj).rbegin(),(obj).rend() #define P pair<int,int> #define MOD 1000000007 #define INF 2147483647 #...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s620131719
p04043
C++
#include<iostream> #include<string> #include<vector> #include<cstdint> using namespace std; int main() { // 整数の入力 uint64_t N, L; cin >> N >> L; vector<string> s; s.resize(L); for (uint64_t i = 0; i < L; ++i) { cin >> s[i]; } sort(s.begin(), s.end()); for (uint64_t i = 0; i < L; ++i) { cout << ...
a.cc: In function 'int main()': a.cc:16:3: error: 'sort' was not declared in this scope; did you mean 'short'? 16 | sort(s.begin(), s.end()); | ^~~~ | short
s644480996
p04043
C++
#include<iostream> #include<string> #include<vector> using namespace std; int main() { // 整数の入力 uint64_t N, L; cin >> N >> L; vector<string> s(L); for (uint64_t i = 0; i < L; ++i) { cin >> s[i]; } sort(s.begin(), s.end()); for (uint64_t i = 0; i < L; ++i) { cout << s[i]; } cout << endl; re...
a.cc: In function 'int main()': a.cc:8:3: error: 'uint64_t' was not declared in this scope 8 | uint64_t N, L; | ^~~~~~~~ a.cc:4:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 3 | #include<vector> +++ |+#include <cstdint> 4 | using na...