submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s750110588
p04043
C++
import java.util.Scanner; class Main { 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 * b * c == 175) System.out.print("YES"); else System.o...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:5:15: error: expected ':' before 'static' 5 | public static void main(String[] args) { | ^~~~~~~ | : ...
s672128331
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,n,m,x=0,y=0; int a[4]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); for(i=0;i<3;i++) { if(a[i]==5) { x++; } if(a[i]==7) { y++; } } if(x==2 && y==1) { cout<<"YES"<<endl; } else { cout<<"NO"<<e...
a.cc: In function 'int main()': a.cc:6:7: error: conflicting declaration 'int a [4]' 6 | int a[4]; | ^ a.cc:5:7: note: previous declaration as 'int a' 5 | int a,b,c,n,m,x=0,y=0; | ^ a.cc:7:9: error: invalid types 'int[int]' for array subscript 7 | cin>>a[0]>>a[1]>>a[2]; |...
s712976007
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { #ifdef DEBUG ifstream in("input.txt"); cin.rdbuf(in.rdbuf()); #endif // for local. int a, b, c; cin >> a >> b >> c; if (a * b * c == 5 * 7 * 5) { ans = "YES"; } else { ans = "NO"; } cout << ans << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:5: error: 'ans' was not declared in this scope; did you mean 'abs'? 14 | ans = "YES"; | ^~~ | abs a.cc:16:5: error: 'ans' was not declared in this scope; did you mean 'abs'? 16 | ans = "NO"; | ^~~ | abs a.cc:19:11: error: 'ans...
s074190260
p04043
C++
in_ = input().split() if in_.count('5') is 2 and in_.count('7') is 1: print('YES') else: print('NO')
a.cc:4:11: warning: multi-character character constant [-Wmultichar] 4 | print('YES') | ^~~~~ a.cc:6:11: warning: multi-character character constant [-Wmultichar] 6 | print('NO') | ^~~~ a.cc:1:1: error: 'in_' does not name a type; did you mean 'int'? 1 | in_ = input()...
s741001930
p04043
C++
#include<iosatream> using namespace std; 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:1:9: fatal error: iosatream: No such file or directory 1 | #include<iosatream> | ^~~~~~~~~~~ compilation terminated.
s777409287
p04043
C++
#include<iostream> using namespace std; 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:13:6: error: expected '}' at end of input 13 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s633810370
p04043
C++
#include<iosatream> using namespace std; 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:1:9: fatal error: iosatream: No such file or directory 1 | #include<iosatream> | ^~~~~~~~~~~ compilation terminated.
s158313340
p04043
C++
#include<#include<bits/stdc++.h> 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:1:9: fatal error: #include<bits/stdc++.h: No such file or directory 1 | #include<#include<bits/stdc++.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s585134827
p04043
C++
#include <stdio.h> int main(void) { int moji1,moji2,moji3; scanf("%d %d %d",moji1,moji2,moji3);
a.cc: In function 'int main()': a.cc:6:39: error: expected '}' at end of input 6 | scanf("%d %d %d",moji1,moji2,moji3); | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s183308365
p04043
C++
A = int(input()).split() if A.count.("5") == 2 and a.count("7")==1: print("YSE") else: print("NO")
a.cc:1:1: error: 'A' does not name a type 1 | A = int(input()).split() | ^
s758872016
p04043
Java
Scanner sn = new Scanner(System.in); int A = sn.nextInt(); int B = sn.nextInt(); int C = sn.nextInt(); int sum = A + B + C; if(sum == 17){ System.out.print("YES"); } else { System.out.print("NO"); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner sn = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:7: error: class, interface, enum, or record expected if(sum == 17){ ^ Main.java:9: error: class, interface, enum, or ...
s199083101
p04043
Java
public class IrohaAndHaiku { public static void main(String[] args) { Scanner sn = new Scanner(System.in); int A = sn.nextInt(); int B = sn.nextInt(); int C = sn.nextInt(); int sum = A + B + C; if(sum == 17){ System.out.print("YES"); } else { ...
Main.java:1: error: class IrohaAndHaiku is public, should be declared in a file named IrohaAndHaiku.java public class IrohaAndHaiku { ^ Main.java:3: error: cannot find symbol Scanner sn = new Scanner(System.in); ^ symbol: class Scanner location: class IrohaAndHaiku Main.java:3: error: cannot fi...
s785128845
p04043
C++
#include <iostream> #include <fstream> #include <cstdio> #include <cmath> #include <vector> #include <string> #include <set> #include <map> #include <stack> #include <queue> #include <deque> #include <bitset> #include <algorithm> #include <complex> #include <array> using namespace std; #define REP(i,n) for(int i=0; i<...
a.cc: In function 'int main()': a.cc:49:11: error: lvalue required as left operand of assignment 49 | if(A*B*C=175) | ~~~^~
s467055307
p04043
C++
#include <iostream> #include <vector> #include<algorithm> #include<math.h> #include<iomanip> #define ff(i,m,n) for(int i=m;i<n;i++) #define i64 int64_t using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a + b + c != 12) { cout << "NO" << endl; return 0; } if (a != 5 && a != 7) { cout <<...
a.cc: In function 'int main()': a.cc:31:31: error: expected '}' at end of input 31 | cout << "YES" << endl; | ^ a.cc:11:12: note: to match this '{' 11 | int main() { | ^
s427175568
p04043
C++
#include <vector> #include <iostream> #include <algorithm> #include <functional> #include <string> #include <limits.h> #include <cmath> #include <queue> #include <map> #include <iomanip> #include <random> #include <fstream> #define rep(i, n) for (int i = 0; i < n; i++) #define PI 3.14159265358979323846 #define MOD 1000...
a.cc: In function 'int main()': a.cc:69:10: error: request for member 'begin' in 'n', which is of non-class type 'int [3]' 69 | sort(n.begin(),n.end()); | ^~~~~ a.cc:69:20: error: request for member 'end' in 'n', which is of non-class type 'int [3]' 69 | sort(n.begin(),n.end()); | ...
s614936922
p04043
C++
#include <vector> #include <iostream> #include <algorithm> #include <functional> #include <string> #include <limits.h> #include <cmath> #include <queue> #include <map> #include <iomanip> #include <random> #include <fstream> #define rep(i, n) for (int i = 0; i < n; i++) #define PI 3.14159265358979323846 #define MOD 1000...
a.cc: In function 'int main()': a.cc:68:20: error: 'c' was not declared in this scope 68 | int n[3]; cin >> c[0] >> c[1] >> c[2]; | ^ a.cc:69:10: error: request for member 'begin' in 'n', which is of non-class type 'int [3]' 69 | sort(n.begin(),n.end()); | ^~~~~ a.cc:69...
s707416256
p04043
C++
#include<iostream> using namespace std; int main(){ int n=3; int N[n]; int r[n]={5,7,5}; int t[n]; for(int i=0;i<n;i++){ cin>>N[i]; } int five=0; int seven=0; for(int i=0;i<n;i++){ if(N[i]==5){ five++; } if(N[i]==7){ seven++; } } if(five==2&&sezen==1) cout<<"YES...
a.cc: In function 'int main()': a.cc:22:15: error: 'sezen' was not declared in this scope; did you mean 'seven'? 22 | if(five==2&&sezen==1) cout<<"YES"<<endl; | ^~~~~ | seven
s744835478
p04043
Java
public class ABC042 { public static void main(String[] args) { int seven = 0; int five = 0; String[] num = new String[3]; for (int i = 0; i < 3; i++) { num[i] = new java.util.Scanner(System.in).nextLine(); } for (int i = 0; i < 3; i++) { if (num[i].length() == 5) { five ++; } if (num[i].length...
Main.java:2: error: class ABC042 is public, should be declared in a file named ABC042.java public class ABC042 { ^ 1 error
s720200756
p04043
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b+c==17 && (a=5||a=7) && (b=5||b=7)){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:23: error: lvalue required as left operand of assignment 9 | if(a+b+c==17 && (a=5||a=7) && (b=5||b=7)){ | ~^~~ a.cc:9:37: error: lvalue required as left operand of assignment 9 | if(a+b+c==17 && (a=5||a=7) && (b=5||b=7)){ | ...
s319667559
p04043
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b+c==17 && (a=5||a=7) && (b=5||b=7)){ cout<<"YES"<<endl; }else{ cou<<"NO"<<ensl; } return 0; }
a.cc: In function 'int main()': a.cc:9:23: error: lvalue required as left operand of assignment 9 | if(a+b+c==17 && (a=5||a=7) && (b=5||b=7)){ | ~^~~ a.cc:9:37: error: lvalue required as left operand of assignment 9 | if(a+b+c==17 && (a=5||a=7) && (b=5||b=7)){ | ...
s799242922
p04043
Java
import java.util.Scanner; public class Mian { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if ((a + b + c) == 17) { if ((a == 7) && (b == 5) && (c == 5)) { System.out.println("YES");...
Main.java:3: error: class Mian is public, should be declared in a file named Mian.java public class Mian { ^ 1 error
s281670832
p04043
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int countFive = 0; int countSeven = 0; if (a == 5) { countFive ++; } else { countSev...
Main.java:28: error: incompatible types: int cannot be converted to boolean if (countFive = 5) { ^ 1 error
s289768582
p04043
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int countFive = 0; int countSeven = 0; if (a == 5) { countFive ++; } else { countSeve...
Main.java:29: error: ';' expected System.out.println("YES") ^ Main.java:31: error: ';' expected System.out.println("NO") ^ 2 errors
s363793705
p04043
C++
a=list(map(int, input().split())) sorted(a) if a[0]== 5 and a[1] == 5 and a[2] == 7: print('YES') else: print('NO')
a.cc:4:9: warning: multi-character character constant [-Wmultichar] 4 | print('YES') | ^~~~~ a.cc:6:9: warning: multi-character character constant [-Wmultichar] 6 | print('NO') | ^~~~ a.cc:1:1: error: 'a' does not name a type 1 | a=list(map(int, input().split())) | ^
s246043008
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==105){ printf("YES"); }else{ printf("NO"); } retun 0; }
main.c: In function 'main': main.c:10:3: error: 'retun' undeclared (first use in this function) 10 | retun 0; | ^~~~~ main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in main.c:10:8: error: expected ';' before numeric constant 10 | retun 0; | ...
s592163312
p04043
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int A = s.nextInt(); int B = s.nextInt(); int C = s.nextInt(); int nana, go; if(A == 5){ go++;} else if(A == 7) {nana++;} if(B == 5){ go++;} else if(B == ...
Main.java:11: error: variable go might not have been initialized if(A == 5){ go++;} else if(A == 7) {nana++;} ^ Main.java:11: error: variable nana might not have been initialized if(A == 5){ go++;} else if(A == 7) {nana++;} ^ Main.java:12: error: v...
s867344800
p04043
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in()); int A = s.nextInt(); int B = s.nextInt(); int C = s.nextInt(); int nana, go; if(A == 5){ go++;} else if(A == 7) {nana++;} if(B == 5){ go++;} else if(B =...
Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in()); ^ symbol: method in() location: class System 1 error
s777571236
p04043
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in()); int A = s.nextInt(); int B = s.nextInt(); int C = s.nextInt(); int nana, go; if(A == 5){ go++;} else(A == 7) {nana++;} if(B == 5){ go++;} else(B == 7) {...
Main.java:11: error: not a statement if(A == 5){ go++;} else(A == 7) {nana++;} ^ Main.java:11: error: ';' expected if(A == 5){ go++;} else(A == 7) {nana++;} ^ Main.java:12: error: not a statement if(B == 5){ go++;} else(B == 7) {nana++;...
s978836266
p04043
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in()); int A = s.nextInt(); int B = s.nextInt(); int C = s.nextInt(); int nana, go; if(A == 5) go++; else(A == 7) nana++; if(B == 5) go++; else(B == 7) nana++;...
Main.java:11: error: not a statement if(A == 5) go++; else(A == 7) nana++; ^ Main.java:11: error: ';' expected if(A == 5) go++; else(A == 7) nana++; ^ Main.java:12: error: not a statement if(B == 5) go++; else(B == 7) nana++; ...
s777051082
p04043
C
#include<stdio.h> void main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a=5,b=7,c=5) print("YES"); else print("NO"); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration] 7 | print("YES"); | ^~~~~ | printf main.c:10:12: error: 'return' with a value, in function returning void [-Wreturn-mismatch] 10 | ...
s565651560
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) print("YES"); else print("NO"); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration] 7 | print("YES"); | ^~~~~ | printf
s956755860
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"); printf("Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c); } else printf("NO"); return 0; }
main.c: In function 'main': main.c:9:108: error: 'a' undeclared (first use in this function) 9 | printf("Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c); | ...
s009600115
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; }
main.c: In function 'main': main.c:4:25: error: 'a' undeclared (first use in this function) 4 | scanf("%d%d%d",&a,&b,&c); | ^ main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in main.c:4:28: error: 'b' undeclared (first use in thi...
s766695754
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; }
main.c: In function 'main': main.c:5:12: error: 'a' undeclared (first use in this function) 5 | if(a==5,b==5,c==7||a==5,b==7,c==5||a==7,b==5,c==5) | ^ main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in main.c:5:17: error: 'b' undeclared (firs...
s420303594
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >>c; if(a+b+c == 17){ if( (a==5 && b ==5) || (b==5 && c==5) || (c==5 && a ==5)){ cout << "Yes" <<endl; } else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:11:4: error: expected '}' at end of input 11 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s052752639
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; }
a.cc: In function 'int main()': a.cc:8:3: error: expected '}' before 'else' 8 | else cout << "NO" << endl; | ^~~~ a.cc:6:19: note: to match this '{' 6 | if (a+b+c == 17){ | ^
s178970944
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;} }
a.cc: In function 'int main()': a.cc:5:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:5:7: note: candidat...
s292770632
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; }
a.cc: In function 'int main()': a.cc:5:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:5:7: note: candidat...
s256684528
p04043
C++
#include<stdio.h> main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a=5&&b=7&&c=7) { printf("YES"); } else if(a=5&&b=7&&c=7) { printf("YES"); } else if(b=5&&a=7&&c=7) { printf("YES"); } else if(c=5&&a=7&&b=7) { printf("YES"); } else { printf("NO"); } }
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main() | ^~~~ a.cc: In function 'int main()': a.cc:7:20: error: lvalue required as left operand of assignment 7 | if(a=5&&b=7&&c=7) | ~^~~ a.cc:11:17: error: lvalue required as left op...
s183923394
p04043
C++
#include<stdio.h> #include<algorithm> int main(){ int a[3]; scanf("%d%d%d",&a[0],&a[1],&a[2]); sort(a,a+3); if(a[0]==5 && a[1]==5 && a[2] == 7) printf("YES"); else printf("NO"); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'? 6 | 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...
s963739570
p04043
C++
#inlclude<stdio.h> #include<algorithm> int main(){ int a[3]; scanf("%d%d%d",&a[0],&a[1],&a[2]); sort(a,a+3); if(a[0]==5 && a[1]==5 && a[2] == 7) printf("YES"); else printf("NO"); return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include? 1 | #inlclude<stdio.h> | ^~~~~~~~ | include a.cc: In function 'int main()': a.cc:5:9: error: 'scanf' was not declared in this scope 5 | scanf("%d%d%d",&a[0],&a[1],&a[2]); | ^~~~~ a.cc:6:9: erro...
s407321419
p04043
C++
#inlclude<stdio.h> #include<algorihtm> int main(){ int a[3]; scanf("%d%d%d",&a[0],&a[1],&a[2]); sort(a,a+3); if(a[0]==5 && a[1]==5 && a[2] == 7) printf("YES"); else printf("NO"); return 0; }
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include? 1 | #inlclude<stdio.h> | ^~~~~~~~ | include a.cc:2:9: fatal error: algorihtm: No such file or directory 2 | #include<algorihtm> | ^~~~~~~~~~~ compilation terminated.
s578457218
p04043
C
#include <cstdio> int main(){ double a,b,c; while(~scanf("%lf %lf %lf", &a, &b, &c)){ if(a + b + c == 17){ printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s969596166
p04043
C
#include<stdio.h> 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 %d, %d and %d, it is possible to construct a Haiku.",a,b,c); if(A==5||B==7||C==5) printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c); if...
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int') 4 | scanf("%d%d%d",&A&B&C); | ~~^ | | | ...
s731365332
p04043
C
#include<stdio.h> main(){ int A,B,C; scanf("%d%d%d",&A&B&C); if(A==5||B==5||C==7) printf("Yes"); if(A==5||B==7||C==5) printf("Yes"); if(A==7||B==5||C==5) printf("Yes"); else printf("No"); }
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int') 4 | scanf("%d%d%d",&A&B&C); | ~~^ | | | ...
s226681795
p04043
C
#include <stdio.h> int main(void) { int a; int five = 2, seven = 1; int i; for (i = 0; i < 3; i+) { scanf("%d", &a); if (a == 5) five--; else if(a == 7) seven--; } if (!five && !seven) printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:8:24: error: expected expression before ')' token 8 | for (i = 0; i < 3; i+) | ^
s608459112
p04043
C
#include<stdio.h> int main(){ int a, b, c; scanf(%d %d %d,&a,&b,&c); if(a = 5 ){ printf("YES"); } reeturn 0; }
main.c: In function 'main': main.c:7:9: error: expected expression before '%' token 7 | scanf(%d %d %d,&a,&b,&c); | ^ main.c:12:3: error: 'reeturn' undeclared (first use in this function) 12 | reeturn 0; | ^~~~~~~ main.c:12:3: note: each undeclared identifier is reported only once for e...
s188713044
p04043
C++
#include<iostream> #include<vector> using namespace std; int main() { int num=0,flag1=0,flag2=0; vector<int> a; for(int i=0;i<3<i++) { cin>>num; a.push_back(num); } for(auto it=a.begin();it<a.end();it++) { if(*it==5) flag1++; else if(*it==7) flag2++; } return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: expected ';' before ')' token 9 | for(int i=0;i<3<i++) | ^ | ;
s762924868
p04043
C
#include <stdio.h> int main() {
main.c: In function 'main': main.c:4:1: error: expected declaration or statement at end of input 4 | { | ^
s107652085
p04043
C
s
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input 1 | s | ^
s306648463
p04043
Java
import java.util.*; public class Main{ Scanner s=new Scanner(System.in); public static void main(String [] args){ int a,b,c; a=s.nextInt(); b=s.nextInt(); c=s.nextInt(); int fiv=0,sev=0; if(a==5)fiv++; if(a==7)sev++; if(b==5)fiv++; if(b==7)sev++; if(c==5)fiv++; if(c==7)sev++; if(fiv==2&&sev==...
Main.java:7: error: non-static variable s cannot be referenced from a static context a=s.nextInt(); ^ Main.java:8: error: non-static variable s cannot be referenced from a static context b=s.nextInt(); ^ Main.java:9: error: non-static variable s cannot be referenced from a static context c=s.nextInt(); ...
s117920849
p04043
Java
import java.util.*; public class Main{ Scanner s=new Scanner(System.in); public static void main(String [] args){ int a,b,c; a=s.nextInt(),b=s.nextInt(),c=s.nextInt(); int fiv=0,sev=0; if(a==5)fiv++; if(a==7)sev++; if(b==5)fiv++; if(b==7)sev++; if(c==5)fiv++; if(c==7)sev++; if(fiv==2&&sev==1)Syst...
Main.java:7: error: ';' expected a=s.nextInt(),b=s.nextInt(),c=s.nextInt(); ^ Main.java:7: error: ';' expected a=s.nextInt(),b=s.nextInt(),c=s.nextInt(); ^ 2 errors
s522177541
p04043
Java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); int C=sc.nextInt(); if(A==5&&B==5&&C==7||A==5&&B=7&&C==5||A==7&&B==5&&C==5){ System.out.println("Yes"); }else{ System.out.pr...
Main.java:9: error: bad operand types for binary operator '&&' if(A==5&&B==5&&C==7||A==5&&B=7&&C==5||A==7&&B==5&&C==5){ ^ first type: boolean second type: int Main.java:9: error: bad operand types for binary operator '&&' if(A==5&&B==5&&C==7||A==5&&B=7&&C==5||A==7&&B==5&&C==5){...
s685311371
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) { 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 0; }
a.cc: In function 'int main()': a.cc:7:16: error: 'c' was not declared in this scope 7 | if(A==5&&B==5&&c==7) | ^
s582981740
p04043
C++
#include<stdio.h> main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a*b*c = 175) printf("YES"); else printf("NO"); return 0; }
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main() | ^~~~ a.cc: In function 'int main()': a.cc:6:15: error: lvalue required as left operand of assignment 6 | if(a*b*c = 175) | ~~~^~
s920635305
p04043
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int32_t main() { ll i,j,k,l,n,m,q,t,five=0,seven=0; cin>>a>>b>>c; if(a==5||b==5||c==5) { five++; } if(c==5) { ...
a.cc: In function 'int32_t main()': a.cc:9:14: error: 'a' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:9:17: error: 'b' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:9:20: error: 'c' was not declared in this scope 9 | ...
s591350033
p04043
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int32_t main() { ll i,j,k,l,n,m,q,t,five=0,seven=0; cin>>a>>b>>c; if(a==5||b==5||c==5) { five++; } if(a==7||b==7||c...
a.cc: In function 'int32_t main()': a.cc:9:14: error: 'a' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:9:17: error: 'b' was not declared in this scope 9 | cin>>a>>b>>c; | ^ a.cc:9:20: error: 'c' was not declared in this scope 9 | ...
s694281042
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin>>A>>B>>C; int cincos=0,siete=0; if(A==5) cincos++ if(A==7) siete++; if(B==5) cincos++; if(B==7) siete++; if(C==5) cincos++; if(C==7) siete++; if(cincos==2&&siete==1) cout<<"YES\n"; else cout<<"NO\n"; return 0; ...
a.cc: In function 'int main()': a.cc:8:20: error: expected ';' before 'if' 8 | if(A==5) cincos++ | ^ | ; 9 | if(A==7) siete++; | ~~
s942253950
p04043
C++
#include<bits/stdc++.h> #define int long long int #define fi first #define se second #define pb push_back #define mp make_pair #define pii pair<int,int> #define vii vector<int> #define mii map<int,int> #define mod 1000000007 #define IOS std::ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); #define endl "\n"...
a.cc: In function 'int32_t main()': a.cc:21:14: error: 'n' was not declared in this scope 21 | sort(a,a+n); | ^
s606432118
p04043
C++
#include<bits/stdc++.h> #define int long long int #define fi first #define se second #define pb push_back #define mp make_pair #define pii pair<int,int> #define vii vector<int> #define mii map<int,int> #define mod 1000000007 #define IOS std::ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); #define endl "\n"...
a.cc: In function 'int32_t main()': a.cc:21:14: error: 'n' was not declared in this scope 21 | sort(a,a+n); | ^
s523327218
p04043
C++
#include <iostream> using namespace std; int main (){ int a[3]; cin>>a[0]>>a[1]>>a[2]; int i,c5,c7; for(i=0;i<3;i++){ if(a[i]==5) c5++; if(a[i]==7) c7++; } if(c5==2&&c7==1) cout<<YES<<endl; else cout<<NO<<endl; return 0; }
a.cc: In function 'int main()': a.cc:15:11: error: 'YES' was not declared in this scope 15 | cout<<YES<<endl; | ^~~ a.cc:16:14: error: 'NO' was not declared in this scope 16 | else cout<<NO<<endl; | ^~
s908996993
p04043
C
#include<stdio.h> int main(){ int a,b,c,max; scanf("a b c",&a,&b,&c); if(a>b&&a>c) max=a; if(b>a&&b>c) max=b; if(c>a&&c>b) max=c; if(max==7) { if(a*b*c==175&&a+b+c=17) printf("yes"); else printf("no"); } else printf("no"); }
main.c: In function 'main': main.c:13:37: error: lvalue required as left operand of assignment 13 | if(a*b*c==175&&a+b+c=17) | ^
s164916096
p04043
C
#include<stdio.h> int main(){ int a,b,c; scanf("a b c",&a,&b,&c); if(a>b&&a>c) max=a; if(b>a&&b>c) max=b; if(c>a&&c>b) max=c; if(max==7) { if(a*b*c==175&&a+b+c=17) printf("yes"); else printf("no"); } else printf("no"); }
main.c: In function 'main': main.c:6:17: error: 'max' undeclared (first use in this function) 6 | max=a; | ^~~ main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in main.c:13:37: error: lvalue required as left operand of assignment ...
s849647563
p04043
C++
//AC #include<stdio.h> #include<string.h> int main() { char a[10]={}; int c,i,cnt=0,leap=0; while(gets(a)){ c=strlen(a); for(i=0;i<c;i++){ if(a[i]==' '){ continue; }else if(a[i]=='5'){ cnt++; }else if(a[i]=='7'){ leap++; } }if(cnt==2&&leap==1){ printf("YES\n"); }else{ printf("...
a.cc: In function 'int main()': a.cc:9:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | while(gets(a)){ | ^~~~ | getw
s757415285
p04043
C++
#include<iostream> #include<string> #include<algorithm> 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 && ==5 && c==5) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:12:19: error: expected primary-expression before '==' token 12 | else if(a==7 && ==5 && c==5) cout<<"YES"; | ^~
s803734513
p04043
C++
#include<stdio.h> #include<string.h> int main() { char a[10]={}; int c,i,cnt=0,leap=0; while(gets(a)){ c=strlen(a); for(i=0;i<c;i++){ if(a[i]==' '){ continue; }else if(a[i]=='5'){ cnt++; }else if(a[i]=='7'){ leap++; } }if(cnt==2&&leap==1){ printf("YES\n"); }else{ printf("NO\n")...
a.cc: In function 'int main()': a.cc:7:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | while(gets(a)){ | ^~~~ | getw
s404247271
p04043
C++
#include<stdio.h> int main(void) { int A,B,C; if(A==5 & B==5 & C==7) puts("YES"); else if(A==5 & B==7 & C==5) puts("YES"); else if(A==7 & B==5 & C==5) puts("YES"); else puts("NO); return 0; }
a.cc:14:10: warning: missing terminating " character 14 | puts("NO); | ^ a.cc:14:10: error: missing terminating " character 14 | puts("NO); | ^~~~~ a.cc: In function 'int main()': a.cc:16:3: error: expected primary-expression before 'return' 16 | return 0; | ^~~~...
s176722368
p04043
C
#include<stdio.h> int main(void) { int A,B,C; if(A==5 & B==5 & C==7) puts("YES"); else if(A==5 & B==7 & C==5) puts("YES"); else if(A==7 & B==5 & C==5) puts("YES"); else puts("NO); return 0; }
main.c: In function 'main': main.c:14:10: warning: missing terminating " character 14 | puts("NO); | ^ main.c:14:10: error: missing terminating " character 14 | puts("NO); | ^~~~~ main.c:16:3: error: expected expression before 'return' 16 | return 0; | ^~~~~~ mai...
s878349860
p04043
C
#include<stdio.h> int main(void) { int A,B,C; if(A==5 & B==5 & C==7) puts("YES"); else if(A==5 & B==7 & C==5) puts("YES"); else if(A==7 & B==5 & C==5) puts("YES; else puts("NO); return 0; }
main.c: In function 'main': main.c:12:10: warning: missing terminating " character 12 | puts("YES; | ^ main.c:12:10: error: missing terminating " character 12 | puts("YES; | ^~~~~ main.c:13:3: error: expected expression before 'else' 13 | else | ^~~~ main.c:14:10...
s937445030
p04043
C++
#include<iostream> using namespace std; int soat3(int& a,int& b,int& c){ if(a<b)swap(a,b); if(a<c)swap(a,c); if(b<c)swap(b,c); } int main(){ int a,b,c; cin >> a >> b >> c; soat3(a,b,c); if(a == 7 && b == 5 && c == 5){ cou << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int soat3(int&, int&, int&)': a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type] 9 | } | ^ a.cc: In function 'int main()': a.cc:18:5: error: 'cou' was not declared in this scope 18 | cou << "YES" << endl; | ^~~
s089510235
p04043
Java
import java.util.Scanner; public class IrohaandHaiku{ 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==5||c==5){ if(a==7||b==7||c==7){ if(a+b+c==17){ System.out.println("Yes"...
Main.java:2: error: class IrohaandHaiku is public, should be declared in a file named IrohaandHaiku.java public class IrohaandHaiku{ ^ 1 error
s023588982
p04043
C++
#include <algorithm> #include <array> #include <assert.h> #include <chrono> #include <bitset> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <random> #include <queue> #include <set> #include <stack> #include <unordered_map> #includ...
a.cc: In function 'int main()': a.cc:76:19: error: expected primary-expression before '{' token 76 | cout << (a == {5, 5, 7} ? "YES" : "NO") << endl; | ^ a.cc:76:18: error: expected ')' before '{' token 76 | cout << (a == {5, 5, 7} ? "YES" : "NO") << endl; | ~ ...
s333727679
p04043
C++
#include <bits/stdc++.h> using namespace std; /* https://beta.atcoder.jp/contests/abc103/tasks/abc103_b */ #define li long long int #define rep(i, to) for (li i = 0; i < ((li)(to)); i++) #define repp(i, start, to) for (li i = (li)(start); i < ((li)(to)); i++) #define pb push_back #define sz(v) ((li)(v).size()) #d...
a.cc: In function 'std::string solve()': a.cc:94:12: error: request for member 'begin' in 'v', which is of non-class type 'long long int [100100]' 94 | sort(v.begin(), v.end()) | ^~~~~ a.cc:94:23: error: request for member 'end' in 'v', which is of non-class type 'long long int [100100]' 94 |...
s254666938
p04043
Java
package ABC_B; import java.util.Arrays; import java.util.Scanner; public class IrohaLovesStrings { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int l = sc.nextInt(); String[] array = new String[n]; for(int i =0; i < n; i++) { array[i] = sc.next()...
Main.java:6: error: class IrohaLovesStrings is public, should be declared in a file named IrohaLovesStrings.java public class IrohaLovesStrings { ^ 1 error
s769980915
p04043
C
#include<stdio.h> int main(){ int i,n[4],m; for(i=0;i<3;i++){ scanf("%d",&n[i]); if(n[i]!==7||5)m++; } if(m==0&&n[0]+n[1]+n[2]==19)printf("Yes"); else printf("No"); return 0; }
main.c: In function 'main': main.c:6:18: error: expected expression before '=' token 6 | if(n[i]!==7||5)m++; | ^
s312145156
p04043
C
#include<stdio.h> int main(){ int i,a[],n; for(i=0;i<3;i++){ scanf("%d",&a[i]); if(a[i]!=7||5)n++; } if(n==0&&a[0]+a[1]+a[2]==19)printf("Yes"); else printf("No"); return 0; }
main.c: In function 'main': main.c:3:11: error: array size missing in 'a' 3 | int i,a[],n; | ^
s257746610
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { stirng s; cin >> s; int a=0,b=0; for(int i=0;i<3;i++){ if(s.at(i) == '5'){ a++; } if(s.at(i) == '7'){ b++; } } if(a == 2 && b == 1){ cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'stirng' was not declared in this scope 5 | stirng s; | ^~~~~~ a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^
s803921218
p04043
Java
import java.util.*; public class atcoder002{ 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 == 5 && c == 7){ System.out.println("YES"); }else if(a == 5 && b == 7 && c == 5){ ...
Main.java:3: error: class atcoder002 is public, should be declared in a file named atcoder002.java public class atcoder002{ ^ 1 error
s262997100
p04043
C++
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int orde(const void* a, const void* b){ //const char *x = a, *y = b; return strcmp(a,b); /*if (x[0] < y[0]) return -1; if (x[0] > y[0]) return 1; return 0; */ } int main(){ int n, l; scanf("%d %d", &n,...
a.cc: In function 'int orde(const void*, const void*)': a.cc:9:19: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive] 9 | return strcmp(a,b); | ^ | | | const void* In file included from a.cc:4: /usr/include/string....
s102882694
p04043
C++
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int orde(const void* a, const void* b){ //const char *x = a, *y = b; return strcmp(a,b); /*if (x[0] < y[0]) return -1; if (x[0] > y[0]) return 1; return 0; */ } int main(){ int n, l; scanf("%d %d", &n,...
a.cc: In function 'int orde(const void*, const void*)': a.cc:9:19: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive] 9 | return strcmp(a,b); | ^ | | | const void* In file included from a.cc:4: /usr/include/string....
s420754770
p04043
C++
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int orde(const void* a, const void* b){ //const char *x = a, *y = b; return strcmp(a,b); /*if (x[0] < y[0]) return -1; if (x[0] > y[0]) return 1; return 0; */ } int main(){ int n, l; scanf("%d %d", &n,...
a.cc: In function 'int orde(const void*, const void*)': a.cc:9:19: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive] 9 | return strcmp(a,b); | ^ | | | const void* In file included from a.cc:4: /usr/include/string....
s790861249
p04043
C
#include <stdio.h> int main(){ int cin = 0, set = 0, readed; if(int i = 0; i < 3; ++i){ scanf("%d", &readed); if(readed == 5) cin++; if(readed == 7) set++; } if(cin == 2 && set == 1){ printf("YES"); }else printf("NO"); }
main.c: In function 'main': main.c:4:12: error: expected expression before 'int' 4 | if(int i = 0; i < 3; ++i){ | ^~~
s905876484
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:6:14: error: expected primary-expression before '>' token 6 | cin>>A>>B>>>C; | ^
s985172498
p04043
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a; for(int i = 0; i < 3; i+=1){ cin>>a[i]; } a=a.sort(a.begin( ),a.end( )); if(a[1]=5 && a[2]=5 && a[3]=7){ cout<<"YES"<<endl; } else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:9:7: error: 'class std::vector<int>' has no member named 'sort' 9 | a=a.sort(a.begin( ),a.end( )); | ^~~~ a.cc:10:23: error: lvalue required as left operand of assignment 10 | if(a[1]=5 && a[2]=5 && a[3]=7){
s492049433
p04043
Java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner (System.in); String input = scanner.nextLine(); Main solver = new Main(); System.out.println(solver.solve(input)); } public String solve(String input) { String answer; String abc[] = input.split(" "); int ...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner (System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner (System.in); ^ symbol: class Scanner location: class Main Main.java:23: warning: [...
s251640352
p04043
C++
#include <bits/stdc++.h> typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); vector<int> abc(3); for (int i = 0; i < 3; ++i) cin >> abc[i]; sort(abc.begin(),abc.end()); if (abc[0] == 5 && abc[1] == 5 && abc[2] == 7) cout << "YES\n"; els...
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin.tie(0); | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: not...
s452064822
p04043
C++
#include <bits/stdc++.h> typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); vector<int> abc(3); for (int i = 0; i < 3; ++i) cin >> abc[i]; sort(abc.begin(),abc.end()); if (abc[0] == 5 && abc[1] == 5 && abc[2] == 7) { cout << "YES\n"; } e...
a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin.tie(0); | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: not...
s356326589
p04043
C++
#include <bits/stdc++.h> int main() { cin.tie(0); ios::sync_with_stdio(false); vector<int> abc(3); for (int i = 0; i < 3; ++i) cin >> abc[i]; sort(abc.begin(),abc.end()); if (abc[0] == 5 && abc[1] == 5 && abc[2] == 7) { cout << "YES\n"; } else { cout <...
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin.tie(0); | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: not...
s567708990
p04043
C++
#include <bits/stdc++.h> int main() { cin.tie(0); ios::sync_with_stdio(false); vector<int> abc(3); for (int i = 0; i < 3; ++i) cin >> abc[i]; sort(abc.begin(),abc.end()); if (abc[0] == 5 && abc[1] == 5 && abc[2] == 7) cout << "YES\n"; else cout << "NO\n"; ...
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin.tie(0); | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: not...
s731748759
p04043
C++
int main() { int A,B,C; cin >> A >> B >> C; 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; } retu...
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope 4 | cin >> A >> B >> C; | ^~~ a.cc:6:9: error: 'cout' was not declared in this scope 6 | cout << "YES" << endl; | ^~~~ a.cc:6:26: error: 'endl' was not declared in this scope 6 | ...
s900137770
p04043
Java
import java.util.*; public class Main{ public static void main{String[] args){ Scanner sc=new Scanner(System.in); int[] ABC=new int[3]; for(int i=0;i<3;i++){ ABC[i]=sc.nextInt(); } Arrays.sort(ABC); boolean flg=false; if(ABC[0]==5){ if(ABC[1]==5){ if(ABC[2]==7){ ...
Main.java:4: error: '(' expected public static void main{String[] args){ ^ Main.java:4: error: ';' expected public static void main{String[] args){ ^ Main.java:25: error: reached end of file while parsing } ^ 3 errors
s555631785
p04043
C++
#include<bits/stdc++.h> using namespace std; int main(){ 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){ cout<<"YES"<<endl;} else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:7:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]' 7 | sort(a.begin(),a.end()); | ^~~~~ a.cc:7:20: error: request for member 'end' in 'a', which is of non-class type 'int [3]' 7 | sort(a.begin(),a.end()); | ...
s325943581
p04043
C
#include<stdio.h> int main(void) { int A, B, C; int max, min,minn; scanf("%d %d %d", &A, &B, &C); if(A <= B&&C <= B) { max = B; min = A; minx = C; } else if(A <= C&&B <= C) { max = C; min = A; minx = B; } else { max = A; min = C; minx = B; } if(max == 7 &&...
main.c: In function 'main': main.c:12:5: error: 'minx' undeclared (first use in this function); did you mean 'minn'? 12 | minx = C; | ^~~~ | minn main.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
s133742013
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}; vec = sort(vec.begin(), vec.end()); if (vec == {5, 5, 7}) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:36: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'void') 9 | vec = sort(vec.begin(), vec.end()); | ^ In file included from /usr/include/c++/14/vector:72, from /usr/include/c++/14/functiona...
s329580934
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}; vec = vec.sort(begin(), end()); if (vec == {5, 5, 7}) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:13: error: 'class std::vector<int>' has no member named 'sort' 9 | vec = vec.sort(begin(), end()); | ^~~~ a.cc:9:23: error: no matching function for call to 'begin()' 9 | vec = vec.sort(begin(), end()); | ~~~~~^~ In file include...
s945490707
p04043
C++
#include <bits/stdc++.h> using nameplace std; int main() { int A, B, C; cin >> A >> B >> C; vector<int> vec ={A, B, C}; vec = vec.sort(begin(), end()); if (vec == {5, 5, 7}) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc:2:7: error: expected nested-name-specifier before 'nameplace' 2 | using nameplace 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 /us...
s333703359
p04043
C
#include "sdtio.h"; int main() { int a = 0; int b = 0; int c = 0; scanf("%d%d%d", &a, &b, &c); if (a + b + c == 17) { printf("YES"); } else { printf("NO"); } }
main.c:1:19: warning: extra tokens at end of #include directive 1 | #include "sdtio.h"; | ^ main.c:1:10: fatal error: sdtio.h: No such file or directory 1 | #include "sdtio.h"; | ^~~~~~~~~ compilation terminated.
s732545677
p04043
C
#include "sdtio.h" int main() { int a = 0; int b = 0; int c = 0; scanf("%d%d%d", &a, &b, &c); if (a + b + c == 17) { printf("YES"); } else { printf("NO"); } }
main.c:1:10: fatal error: sdtio.h: No such file or directory 1 | #include "sdtio.h" | ^~~~~~~~~ compilation terminated.
s188621199
p04043
C++
#include<iostream> using namespace std; int main(){ int num[3]; int j5 = 0, j7 = 0; cin >> num[0] >> num[1] >> num[2]; for(int i = 0; i < 3; i++){ if(num[i] == 5) j5++; else if(num[i] == 7) j7++ } if(j5 == 2 && j7 == 1) cout << "YES" << endl; else cout << "NO" << endl; ...
a.cc: In function 'int main()': a.cc:11:34: error: expected ';' before '}' token 11 | else if(num[i] == 7) j7++ | ^ | ; 12 | } | ~
s214845842
p04043
C++
#include<iostream> using namespace std; int main(){ int num[3]; int j5 = 0, j7 = 0; cin >> num[0] >> num[1] >> num[2]; if(int i = 0; i < 3; i++){ if(num[i] == 5) j5++; else if(num[i] == 7) j7++ } if(j5 == 2 && j7 == 1) cout << "YES" << endl; else cout << "NO" << endl; ...
a.cc: In function 'int main()': a.cc:9:28: error: expected ')' before ';' token 9 | if(int i = 0; i < 3; i++){ | ~ ^ | ) a.cc:9:30: error: 'i' was not declared in this scope 9 | if(int i = 0; i < 3; i++){ | ...