submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s869414446 | p04043 | Java | import java.util.Scanner;
class Main{
public static void main(String args [])
{
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int array[] = new int[3];
array[0]=a;
array[1]=b;
array[2]=c;
int five =0,seven=0;
for(int... | Main.java:24: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
|
s588634738 | p04043 | Java | import java.util.Scanner;
class Main{
public static void main(String args [])
{
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int array[] = new int[3];
array[0]=a;
array[1]=b;
array[2]=c;
int five =0,seven=0;
for(int ... | Main.java:20: error: bad operand types for binary operator '&&'
if(five==2 && seven=1) System.out.println("YES");
^
first type: boolean
second type: int
1 error
|
s192490137 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int s= 0,a,b,c;
cin>>a>>b>>c;
if(a ==5 && b==5 || b == 5 && c == 5 || a == 5 && c = 5){
s ++;
}
if(a == 7||b==7||c==7){
s++;
}
if(s == 2)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:46: error: lvalue required as left operand of assignment
6 | if(a ==5 && b==5 || b == 5 && c == 5 || a == 5 && c = 5){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
|
s086364715 | p04043 | Java | import java.util.Arrays;
import java.util.Scanner;
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
Arrays.sort(arr);
... | Main.java:4: 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
|
s888332460 | p04043 | Java | import java.util.Arrays;
import java.util.Scanner;
public class Amondai {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
... | Main.java:4: error: class Amondai is public, should be declared in a file named Amondai.java
public class Amondai {
^
1 error
|
s062287449 | p04043 | C++ | import java.util.Arrays;
import java.util.Scanner;
public class Amondai {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
... | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Arrays;
| ^~~~~~
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.Scanner;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-t... |
s068219252 | p04043 | C++ | package rensyuu;
import java.util.Arrays;
import java.util.Scanner;
public class Amondai {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA... | a.cc:1:1: error: 'package' does not name a type
1 | package rensyuu;
| ^~~~~~~
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.Arrays;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.uti... |
s416185542 | p04043 | C++ | #include<iostream>
int main(){
int a,b,c;
cin >> a >> b >> c;
int N = 0;
int M = 0;
int count(int d){
if(d == 5){
N++;
}else if(d == 7){
M++;
}
}
count(a);
count(b);
count(c);
if(N ==2){
if(M == 1){
cout >> Yes >> endl;
}else{
cout >> No >> en... | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s270013563 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int N, L;
cin >> N >> L;
string s[N];
for (int i = 0; i < N; i++) cin >> s[i];
sort(s, s + N);
for (int i = 0; i < N; i++) cout << s[i];
cout << << endl;
} | a.cc: In function 'int main()':
a.cc:14:11: error: expected primary-expression before '<<' token
14 | cout << << endl;
| ^~
|
s638453754 | p04043 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int N, L;
cin >> N >> L;
vector<string> str(N);
for (int i = 0; i < N; i++) cin >> str.at(i);
sort(str.begin(), str.end() );
for (int i = 0; i < N; i++) cout << str.at(i);
cout << "" << endl;
}
| a.cc: In function 'int main()':
a.cc:13:3: error: 'sort' was not declared in this scope; did you mean 'short'?
13 | sort(str.begin(), str.end() );
| ^~~~
| short
|
s690999454 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a==5)or(a==7))
and ((b==5)or(b==7))
and ((c==5)or(c==7))
and (a+b+c==17)cout<<"YES";
else cout<<"NO";
}
| a.cc: In function 'int main()':
a.cc:8:9: error: expected identifier before '(' token
8 | and ((b==5)or(b==7))
| ^
|
s593010876 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==5)or(a==7)
if(b==5)or(b==7)
if(c==5)or(c==7)
if(a+b+c==17)cout<<"YES"
else cout<<"NO"
} | a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'or' token
7 | if(a==5)or(a==7)
| ^~
|
s206906910 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
if( A == 5){
if(B == 5 && C == 7 || B == 7 && C == 5){
cout << "YES" << endl;
}
else if(A == 7){
if(B == 5 && C == 5){
cout << "YES" << endl;
}
else{
... | a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s064465725 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
if( A == 5){
if(B == 5 && C == 7 || B == 7 && C == 5){
cout >> "YES" >> endl;
}
else if(A == 7){
if(B == 5 && C == 5){
cout >> "YES" >> endl;
}
else{
... | a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | cout >> "YES" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
... |
s330306307 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
if( A == 5){
if(B == 5 && C == 7 || B == 7 && C == 5){
cout >> 'YES' >> endl;
}
else if(A == 7){
if(B == 5 && C == 5){
cout >> 'YES' >> endl;
}
else{
... | a.cc:9:21: warning: multi-character character constant [-Wmultichar]
9 | cout >> 'YES' >> endl;
| ^~~~~
a.cc:13:21: warning: multi-character character constant [-Wmultichar]
13 | cout >> 'YES' >> endl;
| ^~~~~
a.cc:16:17: warning: multi-... |
s056959814 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[];
cin >> a[0] >> a[1] >> a[2];
int count_5 = 0;
int count_7 = 0;
for( int i = 0; i < 3; i++ ) {
if( a[i] == 5 )
count_5++;
else if( a[i] == 7 )
count_7++;
}
if( count_5 == 2 && count_7 == 1 )
cout << "YES" << endl;... | a.cc: In function 'int main()':
a.cc:6:7: error: storage size of 'a' isn't known
6 | int a[];
| ^
|
s267020853 | p04043 | C++ | cnt=[0 for i in range(11)]
for i in input().split():
cnt[int(i)]+=1
if cnt[5]==2 and cnt[7]==1:
print('YES')
else:
print('NO')
| a.cc:5:11: warning: multi-character character constant [-Wmultichar]
5 | print('YES')
| ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
7 | print('NO')
| ^~~~
a.cc:1:1: error: 'cnt' does not name a type; did you mean 'int'?
1 | cnt=[0 for i ... |
s370228804 | p04043 | Java | import java.util.Scanner;
public class AtcoderABC42A {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = 0;
int b = 0;
for (int i = 0; i < 3; i++) {
int value = input.nextInt();
if (value == 5)
a++;
... | Main.java:3: error: class AtcoderABC42A is public, should be declared in a file named AtcoderABC42A.java
public class AtcoderABC42A {
^
1 error
|
s447721789 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
vector<int> a;
for(int i=0;i<3;i++){
cin>>a.at(i);
}
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:8:26: error: expected ';' before 'if'
8 | sort(a.begin(),a.end())
| ^
| ;
9 | if(a.at(0)=5&&a.at(1)==5&&a.at(2)==7){
| ~~
a.cc:12:3: error: 'else' without a previous 'if'
12 ... |
s870143671 | p04043 | C | #inlcude <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a+b+c == 17){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <stdio.h>
| ^~~~~~~
| include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d %d %d", &a, &b, &c);
| ^~... |
s299554823 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
vector<int> vec(3);
vec.at(0) = A;
vec.at(1) = B;
vec.at(2) = 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" ... | a.cc: In function 'int main()':
a.cc:14:61: error: expected ';' before 'cout'
14 | if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 )
| ^
| ;
15 | cout << "YES" << endl... |
s058441431 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
vector<int> vec(3);
vec.at(0) = A;
vec.at(1) = B;
vec.at(2) = 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... | a.cc: In function 'int main()':
a.cc:14:61: error: expected ')' before '{' token
14 | if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 ) {
| ~ ^~
| )
a.cc:19:2: error: expected ... |
s882663503 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
int count5 = 0, count7 = 0;
if( A = 5 ) {
count5++;
}
if( B = 5 ) {
count5++;
}
if( C = 5 ) {
count5++;
}
if( A = 7 ) {
count7++;
}
if( B = 7 ) {
count5++;
}
if( C = 7 ) {
... | a.cc: In function 'int main()':
a.cc:28:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
28 | if( count5 == 2 && count == 1)
| ~~~~~~^~~~
|
s075854134 | p04043 | C++ | #include <iostream>
#include <vector>
using namespace std;
// define
#define ALL(x) x.begin(), x.end()
// functions
int ceil(int a, int b) {return (a + b - 1) / b;}
int round(int a, int b) {return (a + b / 2) / b;}
int gcd(int a, int b) {return b ? gcd(b, a % b) : a;}
int lcm(int a, int b) {return a * b / gcd(a, b);... | a.cc: In function 'int main()':
a.cc:19:3: error: 'sort' was not declared in this scope; did you mean 'short'?
19 | sort(ALL(v));
| ^~~~
| short
|
s540219414 | p04043 | C++ | #include<iostream>
#include<vector>
#include<algorithm>
int main(){
vector<int> a;
int A;
cin >> A; a.emplace_back(A);
cin >> A; a.emplace_back(A);
cin >> A; a.emplace_back(A);
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:5:9: error: 'vector' was not declared in this scope
5 | vector<int> a;
| ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note: ... |
s303771918 | p04043 | C++ | a = list(map(int, raw_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, raw_input().split()))
| ^
|
s979834577 | 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()))
| ^
|
s044257929 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int>X(3);
cin >> X;
sort(X.begin(),X.end());
if(X.at(0) == X.at(1) && X.at(1) == 5 && X.at(2) == 7){
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 'std::vector<int>')
5 | cin >> X;
| ~~~ ^~ ~
| | |
| | std::vector<int>
| std::istream {aka std::basic_istream<char>}
In file ... |
s849269849 | 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:72: error: lvalue required as left operand of assignment
7 | if((a==5 && b==5 && c==7) || (a==5 && b==7 && c==5) || (a==7 && b==5 && c=5))cout<<"YES"<<endl;
| ~~~~~~~~~~~~~^~~~
|
s341156849 | p04043 | C++ | abc = list(map(int, input().split()))
print("YES" if sorted(abc) == [5,5,7] else "NO") | a.cc:1:1: error: 'abc' does not name a type
1 | abc = list(map(int, input().split()))
| ^~~
|
s771665575 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A >> B >> C >>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A >> B >> C >>;
| ^~
| ;
|
s175548601 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A >> B >> C >>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A >> B >> C >>;
| ^~
| ;
|
s078465618 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A>> B>> C>>;
| ^~
| ;
|
s549425727 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 = A*B*C){
if(17 = A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A>> B>> C>>;
| ^~
| ;
a.cc:8:6: error: lvalue required as left operand of assignment
8 | if(175 = A*B*C){
| ^~~
a.cc:9:8: error: lvalue required as left operand of assignment
9 | if(17 =... |
s751474156 | p04043 | C++ | #include <bits/stdc++.h>
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES";
}
}
else{
cout <<"NO";
}
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin A>> B>> C>>;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note... |
s930184080 | p04043 | C++ | #include <bits/stdc++.h>
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin A>> B>> C>>;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note... |
s120035549 | p04043 | C++ | #include <bits/stdc++.h>
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 = A*B*C){
if(17 = A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin A>> B>> C>>;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note... |
s974250878 | 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">>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;}
} | a.cc: In function 'int main()':
a.cc:7:10: 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_... |
s261978223 | 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">>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;}
} | a.cc: In function 'int main()':
a.cc:6:34: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ~~~~^~~~~~~
| | |
... |
s470402474 | 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:13:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
13 | {cout>>"YES">>endl;}
| ~~~~^~~~~~~
| | |
| | const char [4]
| std::ost... |
s315270561 | p04043 | Java | import java.util.Scanner;
public class Main{
public static void main (String args[]){
int n=0;
// System.out.println("Aを入力してください");
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
... | Main.java:36: error: reached end of file while parsing
}
^
1 error
|
s279293300 | p04043 | Java | import java.util.Scanner;
public class Main{
public static void Main (Stirng args[]){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
... | Main.java:3: error: cannot find symbol
public static void Main (Stirng args[]){
^
symbol: class Stirng
location: class Main
1 error
|
s739668336 | p04043 | Java | import java.util.Scanner;
public class Main{
public static void Main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
... | Main.java:3: error: cannot find symbol
public static void Main (Stirng[] args){
^
symbol: class Stirng
location: class Main
1 error
|
s607091025 | p04043 | Java | import java.util.Scanner;
public class Main{
public static void Main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
... | Main.java:3: error: cannot find symbol
public static void Main (Stirng[] args){
^
symbol: class Stirng
location: class Main
Main.java:15: error: incomparable types: boolean and int
if(A == B== 7){
^
2 errors
|
s422110388 | p04043 | Java | import java.until.Scanner;
public class Main{
public static void Main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
... | Main.java:1: error: package java.until does not exist
import java.until.Scanner;
^
Main.java:3: error: cannot find symbol
public static void Main (Stirng[] args){
^
symbol: class Stirng
location: class Main
Main.java:9: error: cannot find symbol
... |
s753642605 | p04043 | Java | import java.until.Scanner;
public class Main{
public static void main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
... | Main.java:1: error: package java.until does not exist
import java.until.Scanner;
^
Main.java:3: error: cannot find symbol
public static void main (Stirng[] args){
^
symbol: class Stirng
location: class Main
Main.java:9: error: cannot find symbol
... |
s205641800 | p04043 | Java | import java.until.Scanner;
public class Index{
public static void main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
... | Main.java:2: error: class Index is public, should be declared in a file named Index.java
public class Index{
^
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
^
Main.java:3: error: cannot find symbol
public static void main (Stirng[] args)... |
s039975446 | p04043 | Java |
public class Index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
scanner scan ... | Main.java:34: error: class, interface, enum, or record expected
}
^
1 error
|
s330056152 | p04043 | Java |
public class Index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
BufferedRe... | Main.java:33: error: class, interface, enum, or record expected
}
^
1 error
|
s968681838 | p04043 | Java | ソースコード
Copy
Copy
public class index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
... | Main.java:1: error: class, interface, enum, or record expected
??????
^
Main.java:35: error: class, interface, enum, or record expected
}
^
2 errors
|
s802743537 | p04043 | Java | public class index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
BufferedReader in = new BufferedReader( new Inpu... | Main.java:28: error: reached end of file while parsing
}
^
1 error
|
s105586455 | p04043 | C++ | #include<iostream>
#include<cstdio>
#include<vector>
#include<queue>
#include<map>
#include<unordered_map>
#include<stack>
#include<string>
#include<algorithm>
#include<functional>
#include<cstring>
#include<utility>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
/**** Type Define ****/
typedef long lo... | a.cc:179:12: error: 'seven' does not name a type; did you mean 'sigevent'?
179 | int five=0;seven=0;
| ^~~~~
| sigevent
a.cc: In function 'int main()':
a.cc:186:17: error: 'seven' was not declared in this scope; did you mean 'setenv'?
186 | seven++;
| ... |
s385685541 | p04043 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Map<Integer, Integer> seen = new HashMap<>();
for (int ix = 0; ix < 3; ix++) {
int value = scanner.nextInt();
seen.put(value, seen.getOrDefault(value, 0) + 1);
}
... | Main.java:12: error: cannot find symbol
bool result = seen.containsKey(5)
^
symbol: class bool
location: class Main
1 error
|
s352415653 | p04043 | Java | public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Map<Integer, Integer> seen = new HashMap<>();
for (int ix = 0; ix < 3; ix++) {
int value = scanner.nextInt();
seen.put(value, seen.getOrDefault(value, 0) + 1);
}
return seen.contains... | Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error... |
s867431524 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n, l;
cin >> n >> l;
vector<string> s(n);
for(int i=0; i<s.size(); i++){
cin >> s.push_back(i);
}
sort(s.begin(), s.end());
for(auto e:s){
cout << e;
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:9:27: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back(int&)'
9 | cin >> s.push_back(i);
| ~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14... |
s611728465 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int x[3];
int i= 0;
int counter7 = 0;
int counter5 = 0;
while(i < 3){
cin >> x[i];
i++;
}
i = 0;
}
while(i < 3){
if(x[i]==5){
counter5 = counter5 + 1;
}
else if(x[i]== 7){
counter7 = counter7 + 1;
}
i++;
}
if(counter5 == 2 && ... | a.cc:20:9: error: expected unqualified-id before 'while'
20 | while(i < 3){
| ^~~~~
a.cc:29:9: error: expected unqualified-id before 'if'
29 | if(counter5 == 2 && counter7 == 1){
| ^~
a.cc:32:9: error: expected unqualified-id before 'else'
32 | else{
| ... |
s036993575 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> a(3);
for(int i=0;i<3;i++){
cin>>a[i];
}
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:13:4: error: expected '}' at end of input
13 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s092103477 | p04043 | C++ | #include <iostream>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int c5 = 0;
int c7 = 0;
for (int i = 0; i < 3; i++) {
if (a[i] == 5) c5++;
else if (a[i] == 7) c7++;
}
cout << (c5 == 2 && c7 == 1) ? "YES" : "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:13:47: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
13 | cout << (c5 == 2 && c7 == 1) ? "YES" : "NO" << endl;
| ~~~~~^~~~~~~
|
s624435438 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
return 0;
}
| a.cc:15:1: error: expected unqualified-id before 'return'
15 | return 0;
| ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s814235180 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
}
| a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s140569022 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
else{
cout << "NO" << endl;
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
10 | else{
| ^~~~
a.cc:8:16: note: to match this '{'
8 | if (D == 175){
| ^
a.cc: At global scope:
a.cc:14:3: error: expected unqualified-id before 'return'
14 | return 0;
| ^~~~~~
a.cc:... |
s924934383 | p04043 | C++ | #include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<math>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
else{
cout << "NO" << endl;
}
}
return 0;
}
| a.cc:4:9: fatal error: math: No such file or directory
4 | #include<math>
| ^~~~~~
compilation terminated.
|
s892400164 | p04043 | C++ | #include<bits/stdc++.h>
#include<iostream>
#include<Algorithm>
#include<math>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
else{
cout << "NO" << endl;
}
}
return 0;
} | a.cc:3:9: fatal error: Algorithm: No such file or directory
3 | #include<Algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s334004906 | p04043 | C++ | #include<iostream>
#include<Algorithm>
using namespace std;
int main(){
int A[3];
cin >> A[0];
cin >> A[1];
cin >> A[0];
sort(A,A+3);
if (A[0] == 5 && A[1] == 5 && A[2] == 7){
cout << "Yes";
}
}
| a.cc:2:9: fatal error: Algorithm: No such file or directory
2 | #include<Algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s449960848 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> N(3);
for(int i = 0; i < 3; i++){
cin >> N.at(i);
}
sort(N.begin(), N.end());
if(N.at(0) == 5 && N.at(1) == 5 && N.at(2) == 7){
cout << "YES" << endl;
}
else{
cout "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:14:9: error: expected ';' before string constant
14 | cout "NO" << endl;
| ^~~~~
| ;
|
s479349631 | p04043 | Java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
System.out.println("YES");
}else{
System.out.println("NO");... | Main.java:7: error: cannot find symbol
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
^
symbol: method equal(String)
location: variable s of type String
Main.java:7: error: cannot find symbol
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
... |
s929128474 | p04043 | Java | public class Hello{
public static void Main(){
string[] input = System.Console.ReadLine().Split(' ');
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
int C = int.Parse(input[2]);
if((A == 5 && B == 5 && C == 7) || (A == 7 && B == 5 && C == 5) || (A == 7 &&... | Main.java:5: error: class expected
int A = int.Parse(input[0]);
^
Main.java:5: error: ';' expected
int A = int.Parse(input[0]);
^
Main.java:5: error: not a statement
int A = int.Parse(input[0]);
^
Main.java:5: error: ';'... |
s180814641 | p04043 | C++ | #include (bits/stdc++.h)
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:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include (bits/stdc++.h)
| ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> A >> B >> C;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably... |
s827702686 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a*b*c==175&&a+b+c==17)cout<<YES<<endl;
else cout<<NO<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:40: error: 'YES' was not declared in this scope
8 | if(a*b*c==175&&a+b+c==17)cout<<YES<<endl;
| ^~~
a.cc:9:20: error: 'NO' was not declared in this scope
9 | else cout<<NO<<endl;
| ^~
|
s850316026 | p04043 | Java | read a b c
five=0
seven=0
for i in $a $b $c
do
if [ $i -eq 5 ]; then
five=`expr $five + 1`
fi
if [ $i -eq 7 ]; then
seven=`expr $seven + 1`
fi
done
if [ $five -eq 2 ]; then
if [ $seven -eq 1 ]; then
echo "YES"
else
echo "NO"
fi
else
echo "NO"
fi | Main.java:1: error: class, interface, enum, or record expected
read a b c
^
Main.java:7: error: illegal character: '`'
five=`expr $five + 1`
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
if [ $i -eq 5 ]; then
^
(use --enable-preview to enabl... |
s798410946 | p04043 | C++ | #include<iostream>
int main(){
int cnt[11];
for(int i=0;i<=10;i++){
cnt[i] = 0;
}
cnt[a]++; cnt[b]++; cnt[c]++;
if(cnt[5]==2 && cnt[7]==1){
printf("Yes");
}else printf("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:7: error: 'a' was not declared in this scope
9 | cnt[a]++; cnt[b]++; cnt[c]++;
| ^
a.cc:9:17: error: 'b' was not declared in this scope
9 | cnt[a]++; cnt[b]++; cnt[c]++;
| ^
a.cc:9:27: error: 'c' was not declared in this scope
9 | ... |
s209554271 | p04043 | C++ | #include<iostream.h>
int cnt[11];
for(int i=0;i<=10;i++){
cnt[i] = 0;
}
cnt[a]++; cnt[b]++; cnt[c]++;
if(cnt[5]==2 && cnt[7]==1){
printf("Yes");
}else printf("No"); | a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s001792262 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int a[3];
cin >> a[0] >> a[1] >> a[2];
int flag_5 = 0;
int flag_7 = 0;
for(int i = 0; i < 3; i++){
if(a[i] ==5){
flag_5++;
}
else if(a[i] ==7){
flag_7++;
}
}
if(flag5 ==2 && flag_7 == 1){
cout << "YES" << endl;
}
... | a.cc: In function 'int main()':
a.cc:19:6: error: 'flag5' was not declared in this scope; did you mean 'flag_5'?
19 | if(flag5 ==2 && flag_7 == 1){
| ^~~~~
| flag_5
|
s274327507 | p04043 | C++ | lst = list(map(int, input().split()))
c5 = c7 = 0
for x in lst:
if x == 5:
c5 += 1
elif x == 7:
c7 += 1
if c5 == 2 and c7 == 1:
print("YES")
else:
print("NO") | a.cc:1:1: error: 'lst' does not name a type
1 | lst = list(map(int, input().split()))
| ^~~
|
s792650625 | p04043 | C | #include <stdio.h>
int main(){
int a,b,c,d[8]={0};
scanf("%d%d%d",&a,&b,&c);
d[a]++;
d[b]++;
d[c]++;
if (c[5]==2 && c[7]==1){
printf("YES\n");
}
else printf("NO\n");
return 0;
} | main.c: In function 'main':
main.c:8:6: error: subscripted value is neither array nor pointer nor vector
8 | if (c[5]==2 && c[7]==1){
| ^
main.c:8:17: error: subscripted value is neither array nor pointer nor vector
8 | if (c[5]==2 && c[7]==1){
| ^
|
s099759818 | p04043 | C | #include<stdio.h>
int main(void){
int a[3],cnt5=0,cnt7=0,i;
scanf("%d%d%d",a[0]a[1]a[2]);
for(i=0;i<3;i++){
if(a[i]==5) cnt5++;
else if(a[i]==7) cnt7++;
}
if((cnt5==2) && (cnt7==1)) printf("YES\n");
else printf("NO\n");
return 0;
} | main.c: In function 'main':
main.c:5:22: error: expected ')' before 'a'
5 | scanf("%d%d%d",a[0]a[1]a[2]);
| ~ ^
| )
|
s831567536 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
#define LEN 3
int main(void)
{
int A[3];
int buf_for_5 = 0;
int buf_for_7 = 0;
cin >> A[0] >> A[1] >> A[2];
for(i=0; i<LEN; i++)
{
if(A[i] == 5)
{
if(buf_for_5 < 2)
{
buf_for_5++;
}
}
if(A[i] == 7)
{
if(b... | a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
13 | for(i=0; i<LEN; i++)
| ^
a.cc:35:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
35 | count << "NO" << endl;
| ~~~~~~^~~~~~... |
s888437080 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int x[11]={};
x[a]++; x[b]++; x[c]++;
if(x[5]==2 %%x[7]==1)
cout<<"YES";
else cout<<"NO";
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '%' token
9 | if(x[5]==2 %%x[7]==1)
| ^
|
s337367305 | p04043 | C++ | #include <iostream>
#include <vector>
#include <vector>
using namespace std;
int main(void){
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
if(a[0] == a[1] && a[1] == 5 && a[2] == 7) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
9 | sort(a, a + 3);
| ^~~~
| short
|
s310676657 | p04043 | C++ | include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
bool flag=false;
if(a==7 and b==5 and c==5) flag=true;
if(a==5 and b==7 and c==5) flag=true;
if(a==5 and b==5 and c==7) flag=true;
if(flag) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin>>a>>b>>c;
| ^~~
a.cc:11:12: error: 'cout' was not declared in this scope
11 | if(flag) cout<<"YES"<<endl;
| ... |
s495088928 | p04043 | C++ | #include<iostream>
using namespace std;
int main()
{
int a;
int cnt5 = 0, cnt7 = 0;
for(int i = 0;i < 3;i++){
cin >> a;
if(a == 5) cnt5++;
else if(a == 7) cnt7++;
}
if(cnt5 == 2 && cnt == 1) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:21: error: 'cnt' was not declared in this scope; did you mean 'cnt7'?
14 | if(cnt5 == 2 && cnt == 1) cout << "YES" << endl;
| ^~~
| cnt7
|
s865840953 | p04043 | C | #include<stdio.h>
int main(void){
int A=0,B=0,C=0,count=0;
scanf("%d %d %d",&A,&B,&C);
if(A==7||A==5)
count+=A;
if(B==7||B==5)
count+=B;
if(C==7||C==5)
count+=C;
if(count==17)
printf("YES");
else
printf("NO");
return 0; | main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
18 | return 0;
| ^~~~~~
|
s316507908 | p04043 | C++ | #include<iostream>
int main()
{
int a,b,c;
cin >> a >> b >> c;
List<int> log = new List<int>();
for(int i = 0;i < 3;i++)
{
}
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | 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... |
s066347809 | p04043 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
int a,b,c;
cin >> a >> b >> c;
if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
else cout ... | a.cc: In function 'int main()':
a.cc:14:64: error: expected ';' before 'cout'
14 | if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
| ^~~~
| ;
a.cc:15:5... |
s484238885 | p04043 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
cin >> a >> b >> c;
if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
else cout <<"NO";
ret... | a.cc: In function 'int main()':
a.cc:12:12: error: 'a' was not declared in this scope
12 | cin >> a >> b >> c;
| ^
a.cc:12:17: error: 'b' was not declared in this scope
12 | cin >> a >> b >> c;
| ^
a.cc:12:22: error: 'c' was not declared in this scope
12 | cin... |
s963918220 | p04043 | C | #include<stdio.h>
int main(void)
{
int,n,five=0,seven=0;
for(int i = 0;i < 3;i++)
{
scanf("%d",&n);
switch(n)
{
case 5:
five += 1;
break;
case 7:
seven += 1;
break;
default:
continue;
}
}
if(five == 2 && seven == 1){printf("YES");}
e... | main.c: In function 'main':
main.c:5:6: error: expected identifier or '(' before ',' token
5 | int,n,five=0,seven=0;
| ^
main.c:8:17: error: 'n' undeclared (first use in this function)
8 | scanf("%d",&n);
| ^
main.c:8:17: note: each undeclared identifier is reported only o... |
s623002843 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pii pair<ll,ll>
#define vpii vector<pair<ll,ll> >
#define F first
#define S second
#define ld long double
#define built __builtin_popcountll
#define mst(a,i) memset(a,i,sizeof(a)... | a.cc: In function 'int main()':
a.cc:34:34: error: lvalue required as left operand of assignment
34 | if(a[0]==a[1] && a[0]==5 && a[2]=7) cout << "YES";
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
|
s191991329 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
vector<int> vec;
vec = {A, B, C} ;
sort( vec.begin( ), vec.end( ) );
if (vec = {7, 5, 5}) {
cout << "YES" << endl;
}
even if {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:12:25: error: could not convert 'vec.std::vector<int>::operator=(std::initializer_list<int>{((const int*)(& const int [3]{7, 5, 5})), 3})' from 'std::vector<int>' to 'bool'
12 | if (vec = {7, 5, 5}) {
| ~~~~^~~~~~~~~~~
| ... |
s487951333 | p04043 | Java | hewjhqrke | Main.java:1: error: reached end of file while parsing
hewjhqrke
^
1 error
|
s330878277 | p04043 | C++ | #include <iostream>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#d... | a.cc: In function 'int main()':
a.cc:30:9: error: no matching function for call to 'sort(std::vector<int>&)'
30 | sort(a);
| ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:9:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter... |
s083298994 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#define M 1000000000000000000LL
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=(s);i<(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);i--)
#define all(a... | a.cc:9:19: error: extended character is not valid in an identifier
9 | #define REP(i,s,n) for(int i=(s);i<(n);i++)
| ^
a.cc:20:16: error: extended character is not valid in an identifier
20 | #define pvec(v) rep(i,v.size()){cout << v[i] << " ";}
| ^
a.cc: In funct... |
s186034203 | p04043 | C++ | #include<iostream>
#include<string>
using namespace std;
int main (){
string input;for(int i=0;i<3;i++){cin>>input[i];}
bool five =false, seven = false;
int fcnt = 0;
for(int i=0; i<3; i++){
if(s[i] == '7'){
seven =true;
}
else if(s[i] == '5') {
fcnt += 1;
}
if(fcnt==2){
... | a.cc: In function 'int main()':
a.cc:10:8: error: 's' was not declared in this scope
10 | if(s[i] == '7'){
| ^
|
s530651399 | p04043 | C++ | int main(){
int a,b,c;
cin>>a>>b>>c;
int x=a*b*c;
if (x==175){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
3 | cin>>a>>b>>c;
| ^~~
a.cc:6:7: error: 'cout' was not declared in this scope
6 | cout<<"YES"<<endl;
| ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope
6 | cout<<"YES"<<endl;
... |
s537448034 | p04043 | C++ | int a,b,c;
cin>>a>>b>>c;
int x=a*b*c;
if (x==175){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
} | a.cc:2:1: error: 'cin' does not name a type
2 | cin>>a>>b>>c;
| ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
4 | if (x==175){
| ^~
a.cc:7:1: error: expected unqualified-id before 'else'
7 | else{
| ^~~~
|
s165782205 | p04043 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int a,c5 = 0,c7 = 0;
for(int i=0;i<3;i++){
cin >> a;
if(a == 5)c5++;
else if(a==7)c7++;
else break;
}
cout << (c5==2 && c7==1 ? "YES" : "NO") << endl;
returen 0;
} | a.cc: In function 'int main()':
a.cc:20:3: error: 'returen' was not declared in this scope
20 | returen 0;
| ^~~~~~~
|
s240475208 | p04043 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int a,c5 = 0,c7 = 0;
for(int i=0;i<3;i++){
cin >> a;
if(a == 5)c5++;
else if(a==7)c7++;
else break;
}
cout << (n5==2 && n7==1 ? "YES" : "NO") << endl;
returen 0;
} | a.cc: In function 'int main()':
a.cc:18:12: error: 'n5' was not declared in this scope; did you mean 'c5'?
18 | cout << (n5==2 && n7==1 ? "YES" : "NO") << endl;
| ^~
| c5
a.cc:18:21: error: 'n7' was not declared in this scope; did you mean 'c7'?
18 | cout << (n5==2 && n7==1 ?... |
s791092716 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,n5 = 0,n7 = 0;
for(int i=0;i<3;i++){
cin >> a;
if(a == 5)n5++;
else if(b == 7)n7++;
else break;
}
cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:11: error: 'b' was not declared in this scope
11 | else if(b == 7)n7++;
| ^
a.cc:15:14: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ~~~~~~~~~~ ^~... |
s362382559 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin >> a;
cin >> b;
cin >> c;
if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
cout << "YES" << endl;
}else{cout << "NO" << endl;}
return 0;
} | a.cc:11:24: error: extended character is not valid in an identifier
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
| ^
a.cc:11:28: error: extended character is not valid in an identifier
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c... |
s931717399 | p04043 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namesoace 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:5:7: error: expected nested-name-specifier before 'namesoace'
5 | using namesoace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
10 | for(int i=0; i<3;i++) cin >>a[i];
| ^~~
... |
s220952963 | p04043 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namesoace 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[0] == 7) cout <<"YES" <<endl;
else cout <<"NO" <<endl;
} | a.cc:5:7: error: expected nested-name-specifier before 'namesoace'
5 | using namesoace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
10 | for(int i=0; i<3;i++) cin >>a[i];
| ^~~
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.