submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s091804845 | p04043 | Java | String x = sc.nextLine(); | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String x = sc.nextLine();
^
(use --enable-preview to enable unnamed classes)
1 error
|
s029263118 | p04043 | Java | String x = sc.nextLine(); | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String x = sc.nextLine();
^
(use --enable-preview to enable unnamed classes)
1 error
|
s497199543 | p04043 | Java | import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class A42 {
static InputStream is;
static PrintWriter out;
static String INPUT = "";
static void solve()
... | Main.java:8: error: class A42 is public, should be declared in a file named A42.java
public class A42 {
^
1 error
|
s406303409 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> X(3);
int count5 = 0;
int count7 = 0;
for (int i = 0; i < 3; i++) {
cin >> X.at(i);
}
for (int i = 0; i < 3; i++) {
if (X(i) == 5) {
count5++;
}
if (X(i) == 7) {
count7++;
}
}
if (count5 == 2 && coun... | a.cc: In function 'int main()':
a.cc:12:10: error: no match for call to '(std::vector<int>) (int&)'
12 | if (X(i) == 5) {
| ~^~~
a.cc:15:10: error: no match for call to '(std::vector<int>) (int&)'
15 | if (X(i) == 7) {
| ~^~~
|
s145050018 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> X(3);
int count5 = 0;
int count7 = 0;
for (int i = 0; i < 3; i++) {
cin >> X(i);
}
for (int i = 0; i < 3; i++) {
if (X.at(i) == 5) {
count5++;
}
if (X.at(i) == 7) {
count7++;
}
}
if (count5 == 2 && c... | a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
9 | cin >> X(i);
| ~^~~
|
s842704217 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> X(3);
int count5 = 0;
int count7 = 0;
for (int i = 0; i < 3; i++) {
cin >> X(i);
}
for (int i = 0; i < 3; i++) {
if (X(i) == 5) {
count5++;
}
if (X(i) == 7) {
count7++;
}
}
if (count5 == 2 && count7 ... | a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
9 | cin >> X(i);
| ~^~~
a.cc:12:10: error: no match for call to '(std::vector<int>) (int&)'
12 | if (X(i) == 5) {
| ~^~~
a.cc:15:10: error: no match for call to '(std::vector<... |
s313929251 | p04043 | C++ | #include<iostream>
using namespace std;
int main()
{
// 整数の入力
int a, b, c;
cin >> a >> b >>c;
string s;
if(a == 5 && b == 7 && c == 5){
s = "YES" }
else {
s = "NO" }
// 文字列の入力
cout << s << endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
// 整数の... | a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
10 | s = "YES" }
| ^~
| ;
a.cc:12:15: error: expected ';' before '}' token
12 | s = "NO" }
| ^~
| ;
a.cc: At global scope:
a.cc:19:5: error... |
s398666220 | p04043 | C++ | #include<iostream>
using namespace std;
int main()
{
// 整数の入力
int a, b, c;
cin >> a >> b >>c;
string s;
if(a == 5 && b == 7 && c == 5){
s = "YES" }
else {
s = "NO" }
// 文字列の入力
cout << s << endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
// 整数の... | a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
10 | s = "YES" }
| ^~
| ;
a.cc:12:15: error: expected ';' before '}' token
12 | s = "NO" }
| ^~
| ;
a.cc: At global scope:
a.cc:19:5: error... |
s869844559 | p04043 | C++ | #include<iostream>
using namespace std;
int main()
{
// 整数の入力
int a, b, c;
cin >> a >> b >>c;
string s;
if(a == 5 && b == 7 && c == 5){
s = "YES" }
else {
s = "NO" }
// 文字列の入力
cout << s << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
10 | s = "YES" }
| ^~
| ;
a.cc:12:15: error: expected ';' before '}' token
12 | s = "NO" }
| ^~
| ;
|
s988736880 | p04043 | C | include<stdio.h>
int main(void){
int x[3];
for(int i = 0;i < 3;i++){
scanf("%d",&x[i]);
}
if(x[0]*x[1]*x[2] == 175){
printf("YES");
}else{
printf("NO");
}
return 0;
}
| main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s398719281 | p04043 | C++ | #include | a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include
| ^
|
s530923274 | p04043 | C++ | #include <bits/stdc++.h>
int main()
{
int a,b,c;
map<int,int>M;
M[5]=0;
M[7]=0;
M[a]++;
M[b]++;
M[c]++;
if(M[5]==2&&M[7]==1)
{
cout<< "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'map' was not declared in this scope
6 | map<int,int>M;
| ^~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/map:63,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
from a.cc:... |
s969970960 | p04043 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (a == 7 && b == 5 && c == morning 5)) {
cout << "YES";
} else {
cout << "NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:97: error: 'morning' was not declared in this scope
8 | if ((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (a == 7 && b == 5 && c == morning 5)) {
| ^~~~~~~... |
s663893068 | p04043 | C | clude <stdio.h>
int main(){
int a,b,c;
int answer;
answer=0;
scanf("%d %d %d",&a,&b,&c);
if(a==7){
if(b==5&&c==5) answer =1;
}
else if(b==7){
if(a==5&&c==5) answer =1;
}
else if(c==7){
if(b==5&&a==5) answer =1;
}
... | main.c:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | clude <stdio.h>
| ^
|
s512019732 | p04043 | C++ | #include <bits/stdc++.h>
int main(){
vector<int> vec(3);
int five_count=0;
int seven_count=0;
for(int i=0; i<3; ++i){
cin >> vec.at(i);
}
for(int i=0; i<3; ++i){
if(vec.at(i)==5){
++five_count;
}else if(vec.at(i)==7){
++seven_count;
... | a.cc: In function 'int main()':
a.cc:3:5: error: 'vector' was not declared in this scope
3 | vector<int> vec(3);
| ^~~~~~
a.cc:3:5: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:64,
from /usr/inc... |
s769978985 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int a[3] = {0, 0, 0};
cin >> a[0] >> b[0] >> c[0];
int fn = 0;
int sn = 0;
for(int i = 0; i < 3; i++)
{
if(a[i] == 5)
{
fn++;
if(fn > 2)
{
cout << "NO" << endl;
... | a.cc: In function 'int main()':
a.cc:7:20: error: 'b' was not declared in this scope
7 | cin >> a[0] >> b[0] >> c[0];
| ^
a.cc:7:28: error: 'c' was not declared in this scope
7 | cin >> a[0] >> b[0] >> c[0];
| ^
|
s608087801 | p04043 | C++ | #include <iostream>
int main()
{
int a[3] = {0, 0, 0};
cin >> a[0] >> b[0] >> c[0];
int fn = 0;
int sn = 0;
for(int i = 0; i < 3; i++)
{
if(a[i] == 5)
{
fn++;
if(fn > 2)
{
cout << "NO" << endl;
return 0;
... | a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> a[0] >> b[0] >> c[0];
| ^~~
| 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; ... |
s315019253 | p04043 | C++ | #include<bits/stdc++.h>
using namespaces std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if((a==5)&&(b==5)&&(c==7))
cout<<"YES";
else if((a==7)&&(b==5)&&(c==5))
cout<<"YES";
else if((a==5)&&(b==7)&&(c==5))
cout<<"YES";
else
cout<<"NO";
... | a.cc:2:11: error: expected nested-name-specifier before 'namespaces'
2 | using namespaces std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>a>>b>>c;
| ^~~
| std::cin
In file... |
s054267884 | p04043 | C++ | #include<iostream>
using namespaces std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if((a==5)&&(b==5)&&(c==7))
cout<<"YES";
else if((a==7)&&(b==5)&&(c==5))
cout<<"YES";
else if((a==5)&&(b==7)&&(c==5))
cout<<"YES";
else
cout<<"NO";
retu... | a.cc:2:11: error: expected nested-name-specifier before 'namespaces'
2 | using namespaces std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>a>>b>>c;
| ^~~
| std::cin
In file... |
s916146502 | p04043 | C++ | #include<bits/stdc++.h>
using namespaces std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if((a==5)&&(b==5)&&(c==7))
cout<<"YES";
else if((a==7)&&(b==5)&&(c==5))
cout<<"YES";
else if((a==5)&&(b==7)&&(c==5))
cout<<"YES";
else
cout<<"NO";
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
2 | using namespaces std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from /usr/i... |
s337310772 | 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 \n" ;
}
else if (A==5 && B==7 && C ==5)
{
cout << "YES\n" ;
}
else if (A==7 && B==5 && C==5)
{
cout << ... | a.cc:6:1: error: expected unqualified-id before '{' token
6 | {
| ^
|
s480893408 | p04043 | C++ |
#include "bits/stdc++.h"
template<typename T>
T get_value(std::istream& is);
int getMinNum_div(int _nOriginal, const std::vector<int>& _avoid)
{
for (int i = _nOriginal; i < 100000; i++)
{
bool bFound = false;
int c, d;
c = i;
while (c > 0 && !bFound)
{
div_t dv = div(c, 10);
if (std::binary_sear... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s014608241 | p04043 | C | #include <stdio.h>
int main(void)
{
int first,second,third;
scanf("%d,%d,%d",&first,&second,&third);
if(first==5&&second==7&&third==5)printf("YES");
if(first=!5||second=!7||third=!5)printf("NO");
return 0;
} | main.c: In function 'main':
main.c:8:32: error: lvalue required as left operand of assignment
8 | if(first=!5||second=!7||third=!5)printf("NO");
| ^
|
s524292918 | p04043 | C | #include <stdio.h>
int main(void)
{
int first,second,third;
scanf("%d,%d,%d",&first,&second,&third);
if(first==5&&second==7&&third==5)printf("YES");
if(first=!5||second=!7||third=!5)printf("NO");
return 0;
} | main.c: In function 'main':
main.c:8:32: error: lvalue required as left operand of assignment
8 | if(first=!5||second=!7||third=!5)printf("NO");
| ^
|
s395988238 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int five=0;
int seven=0;
for(int i=0;i<3;i++){
int num;
cin>>num;
if(num==5) five++;
if(num==7) seven++;
}
if(five==2&&seven==1)
cout<<"YES\n";
else cout<"NO\n";
return 0;
} | a.cc: In function 'int main()':
a.cc:15:12: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
15 | else cout<"NO\n";
| ~~~~^~~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic... |
s524919413 | p04043 | C++ | #include <string>
#include <sstream>
#include <iostream>
#include <fstream>
//#include <stdlib.h>
#include <queue>
#include <list>
#include <vector>
#include <array>
#include <algorithm>
bool compare(const std::string& _lhs, const std::string& _rhs)
{
for (int i = 0; i < _lhs.size(); i++)
{
if (i >= _rhs.size() ) ... | a.cc: In function 'int main()':
a.cc:49:64: error: 'ostream_iterator' is not a member of 'std'
49 | std::copy(inputVector.begin(), inputVector.end(), std::ostream_iterator<std::string>(os));
| ^~~~~~~~~~~~~~~~
a.cc:11:1: note: 'std::ostream... |
s206517463 | p04043 | C++ | #include <string>
#include <sstream>
#include <iostream>
#include <queue>
#include <list>
#include <vector>
#include <array>
#include <algorithm>
bool compare(const std::string& _lhs, const std::string& _rhs)
{
for (int i = 0; i < _lhs.size(); i++)
{
if (i >= _rhs.size() ) return false;
if (_lhs[i] > _rhs[i]) re... | a.cc: In function 'int main()':
a.cc:47:64: error: 'ostream_iterator' is not a member of 'std'
47 | std::copy(inputVector.begin(), inputVector.end(), std::ostream_iterator<std::string>(os));
| ^~~~~~~~~~~~~~~~
a.cc:9:1: note: 'std::ostream_... |
s154560887 | p04043 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a,b,c ;
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
if(a==5 && b ==5 && c==7){
System.out.println("YES");
}else if(a==5 && b ==7 && c==5){
... | Main.java:20: error: reached end of file while parsing
}
^
1 error
|
s209240588 | p04043 | C++ | bla | a.cc:1:1: error: 'bla' does not name a type
1 | bla
| ^~~
|
s714302975 | p04043 | C++ | s = input()
if s == '5 5 7' or s == '5 7 5' or s == '7 5 5':
print('YES')
else:
print('NO') | a.cc:2:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | if s == '5 5 7' or s == '5 7 5' or s == '7 5 5':
| ^~~~~~~
a.cc:2:25: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
2 | if s == '5 5 7' or s == '5 7 5' or s == '7 5 5':... |
s659287853 | p04043 | C | #include<stdio.h>
int main(void){
int a,b,c;
int trd;
scanf_s("%d %d %d",&a,&b,&c);
if(a>b) {
trd=a;a=b;b=trd;}
if(a==5){
if((b==5 && c==7) || (b==7 && c==5)) printf("YES\n");}
else printf("NO\n");
return 0;
} | main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | scanf_s("%d %d %d",&a,&b,&c);
| ^~~~~~~
| scanf
|
s379843530 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int fv = 0; svn = 0;
vector<int> a(3);
for(int i = 0; i < 3; i++)
cin >> a[i];
for(int i = 0; i < 3; i++){
if(a[i] == 5)
fv++;
else if(a[i] == 7)
svn++;
else {}
}
if(fv == 2 && svn == 1)
cout << "YES" << endl;
else
cout <<... | a.cc: In function 'int main()':
a.cc:4:13: error: 'svn' was not declared in this scope; did you mean 'sin'?
4 | int fv = 0; svn = 0;
| ^~~
| sin
|
s663488859 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define F(i,a,b) for(i=a;a<=b;i++)
#define arr(a,n) for( i=0;i<n;i++)cin>>a[i];
#define fi first
#define se second
#define mp make_pair
#define mod 1000000007
#define YES cout<<"YES... | a.cc: In function 'int main()':
a.cc:44:12: error: 'n' was not declared in this scope
44 | sort(a,a+n);
| ^
|
s860325500 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> v;
for(int i=0;i<3;i++)
int x=0;cin >> x; v.push_back(x);
sort(v.begin(),v.end());
if(v[0]==5 && v[1]==5 && v[2]==7){cout <<"YES"<<endl;}
else{cout << "NO";}
}
| a.cc: In function 'int main()':
a.cc:7:20: error: 'x' was not declared in this scope
7 | int x=0;cin >> x; v.push_back(x);
| ^
|
s712721383 | p04043 | C++ | #include<iostream>
using namespace std;
int main()
{
int a, b, c;
vector<int> arr(3);
cin >> arr[0] >> arr[1] >> arr[2];
sort(arr.begin(), arr.end());
if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'vector' was not declared in this scope
7 | vector<int> arr(3);
| ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
1 | #include<iostream>
+++ |+#include <vector>
... |
s397212994 | p04043 | C++ | #include<iostream>
using namespace std;
int main()
{
int a, b, c;
vector<int> arr(3);
cin>>arr[0]>>arr[1]>>arr[2];
sort(arr.begin(), arr.end());
if(arr[0] == 5 && arr[1] == 5 && arr[2] == 7)
{
cout<<"YES"<<endl;
}
else
{
cout<<"NO"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
7 | vector<int> arr(3);
| ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
1 | #include<iostream>
+++ |+#include <vector>
2 | using... |
s642917724 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define endl "\n"
#define pb push_back
#define all(a) (a).begin(),(a).end()
#define rev(a) (a).rbegin(),(a).rend()
#define pll pair<ll,ll>
#define rep(i,a,b) for(long long... | a.cc: In function 'int main()':
a.cc:53:19: error: 'n' was not declared in this scope; did you mean 'yn'?
53 | sort(arr, arr+n);
| ^
| yn
|
s557615163 | p04043 | Java | import java.util.*;
import java.util.ArrayList;
public class Main {
public static void main(String[] args){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a+b+c == 15){
if(a == 5 || b == 5|| c == 5){
if(a == 7||b==7||c==7){
System.... | Main.java:5: error: cannot find symbol
int a = sc.nextInt();
^
symbol: variable sc
location: class Main
Main.java:6: error: cannot find symbol
int b = sc.nextInt();
^
symbol: variable sc
location: class Main
Main.java:7: error: cannot find symbol
int c = sc.ne... |
s188105510 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int A,B,C;
cin>>A>>B>>C;
if(A=7||5&&B=7||5&&C=7||5)
cout<<"YES";
else
cout<<"NO";
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:15: error: lvalue required as left operand of assignment
7 | if(A=7||5&&B=7||5&&C=7||5)
| ~^~~~~~
|
s981797791 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a;
int b;
int 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:15:6: error: expected '}' at end of input
15 | }
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s389596053 | p04043 | C++ | nums = [int(i) for i in input().split()]
if len(nums) == 3:
if nums.count(5) == 2 and nums.count(7) == 1:
print("YES")
else:
print("NO") | a.cc:1:1: error: 'nums' does not name a type
1 | nums = [int(i) for i in input().split()]
| ^~~~
|
s417967795 | p04043 | C | #include <stdio.h>
int main(void){
int a1,b2,c3,five=0,seven=0;
scanf(%d%d%d,&a1,&b2,&c3);
if(a1==5){
five++;
}else if(a1==7){
seven++;
}
if(b2==5){
five++;
}else if(b2==7){
seven++;
}
if(c3==5){
five++;
}else if(c3==7){
seven++;
... | main.c: In function 'main':
main.c:4:11: error: expected expression before '%' token
4 | scanf(%d%d%d,&a1,&b2,&c3);
| ^
|
s622993406 | p04043 | C++ | #include<bits/stdc++.h>
#define ll long long
#define hell 1000000007
#define F first
#define re 15000000
#define S second
#define pb push_back
#define all(a) (a).begin(),(a).end()
#define rep(i,a,b) for(ll int i = a;i<b;i++)
#define pi 3.1415926536
#define Mod 998244353
#define endl '\n'
//char a[2000][2000];
us... | a.cc: In function 'void gen(int, std::string)':
a.cc:152:15: error: no matching function for call to 'std::vector<int>::push_back(std::string&)'
152 | check.pb(s);
| ~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:64,
... |
s491594915 | p04043 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a*b*c=5*5*7)cout<<"YES";
else cout<<"NO";
} | a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
8 | if(a*b*c=5*5*7)cout<<"YES";
| ~~~^~
|
s992724487 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,i;
cin >> a >> b >> c;
if(a>b){
swap = a;
a = b;
b = swap;
}
if(b>c){
swap = a;
a = b;
b = swap;
}
if(a==5 && b==5 && c==7){
cout << "YES" <<endl;
}else{
cout << "NO" <<endl;
}
}
#include <bits/stdc+... | a.cc: In function 'int main()':
a.cc:8:12: error: overloaded function with no contextual type information
8 | swap = a;
| ^
a.cc:10:9: error: cannot resolve overloaded function 'swap' based on conversion to type 'int'
10 | b = swap;
| ^~~~
a.cc:13:12: error: overloaded func... |
s471302362 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,i;
cin >> a >> b >> c;
if(a>b){
swap = a;
a = b;
b = swap;
}
if(b>c){
swap = a;
a = b;
b = swap;
}
if(a==5 && b==5 && c==7){
cout << "YES" <<endl;
}else{
cout << "NO" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:12: error: overloaded function with no contextual type information
8 | swap = a;
| ^
a.cc:10:9: error: cannot resolve overloaded function 'swap' based on conversion to type 'int'
10 | b = swap;
| ^~~~
a.cc:13:12: error: overloaded func... |
s406541542 | p04043 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> vec(3);
for (int i = 0; i < 3; i++) cin >> vec.at(i);
sort(vec.begin(), vec.end());
if (vec[0] == vec[1] && vec[0] == 5 && vec[2] == 7) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
8 | sort(vec.begin(), vec.end());
| ^~~~
| short
|
s217920835 | p04043 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(){
int num;
vector<int> syllables;
for(int i=1; i<=3; i++){
cin >> num;
syllables.push_back(num);
}
sort(syllables.begin(), syllables.end());
if(syllables[0] == 5 && syllables[1] == 5 && syllables[2] == 7)
... | a.cc: In function 'int main()':
a.cc:15:5: error: 'sort' was not declared in this scope; did you mean 'short'?
15 | sort(syllables.begin(), syllables.end());
| ^~~~
| short
|
s060765971 | p04043 | C++ | #include<bits/stdc++.h>
// Competetive Template:
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ldb;
#define pb push_back
#define pf push_front
#define popb pop_back
#define popf pop_front
#define ba back
#define si size()
#define be begin()
#define en end()
#define le length()... | a.cc: In function 'int main()':
a.cc:54:13: error: 'v' was not declared in this scope
54 | cin>>t; v.pb(t);
| ^
a.cc:57:8: error: 'v' was not declared in this scope
57 | sort(v.be, v.en);
| ^
|
s449010694 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> w(3);
for(int i=0;i<3;i++){
cin >> w.at(i);
}
bool answer = 0
if((w.at(1)==5 && w.at(2)==5 && w.at(3)==7)||
(w.at(1)==5 && w.at(2)==7 && w.at(3)==5)||
(w.at(1)==7 && w.at(2)==5 && w.at(3)==5)){
answer = 1 }
if(a... | a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'if'
10 | if((w.at(1)==5 && w.at(2)==5 && w.at(3)==7)||
| ^~
|
s085425106 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> w.at(3);
for(int i=0;i<3;i++){
cin >> w.at(i);
}
bool answer = 0
if((w.at(1)==5 && w.at(2)==5 && w.at(3)==7)||
(w.at(1)==5 && w.at(2)==7 && w.at(3)==5)||
(w.at(1)==7 && w.at(2)==5 && w.at(3)==5)){
answer = 1 }
i... | a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before '.' token
5 | vector<int> w.at(3);
| ^
a.cc:7:12: error: 'w' was not declared in this scope
7 | cin >> w.at(i);
| ^
a.cc:10:5: error: expected ',' or ';' before 'if'
10 | if((w.at(1)=... |
s312231956 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> w(3);
for(int i=0;i<3;i++){
cin >> w.at(i) >> endl;
}
bool answer = 0
if((w.at(1)==5 && w.at(2)==5 && w.at(3)==7)||
(w.at(1)==5 && w.at(2)==7 && w.at(3)==5)||
(w.at(1)==7 && w.at(2)==5 && w.at(3)==5)){
answer = 1 ... | a.cc: In function 'int main()':
a.cc:7:20: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>')
7 | cin >> w.at(i) >> endl;
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/includ... |
s079535758 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> w.at(3);
for(int i=0;i<3;i++){
cin >> w.at(i) >> endl;
}
bool answer = 0
if((w.at(1)==5 && w.at(2)==5 && w.at(3)==7)||
(w.at(1)==5 && w.at(2)==7 && w.at(3)==5)||
(w.at(1)==7 && w.at(2)==5 && w.at(3)==5)){
answer =... | a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before '.' token
5 | vector<int> w.at(3);
| ^
a.cc:7:12: error: 'w' was not declared in this scope
7 | cin >> w.at(i) >> endl;
| ^
a.cc:10:5: error: expected ',' or ';' before 'if'
10 | if((... |
s919341180 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
map<int> m;
int a;
for(int i=0;i<3;++i){
cin >> a;
++m[a];
}
if(m[5] == 2 && m[7] == 1) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:10: error: wrong number of template arguments (1, should be at least 2)
5 | map<int> m;
| ^
In file included from /usr/include/c++/14/map:63,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
from a.cc:1:
/usr/inclu... |
s845826106 | p04043 | C | int main(void){
char A;
char B;
char C;
scanf("%c,%c,%c",&A,&B,&C);
if ( A == array[5], B == array[7], C == array[5]){
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%c,%c,%c",&A,&B,&C);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int main(void){
main.c:... |
s952887139 | p04043 | C | include<stdio.h>
int main(void){
char A;
char B;
char C;
scanf("%c,%c,%c",&A,&B,&C);
if ( A == array[5], B == array[7], C == array[5]){
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s462093447 | p04043 | C | include<stdio.h>
int main(void){
int A;
int B;
int C;
scanf("%d%d%d",&A,&B,&C);
if ( A == 5, B == 7, C == 5){
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s824732761 | p04043 | C++ | #include<iostream>
#include<vector>
int five_count = 0;
int seven_count = 0;
int main() {
std::vector<std::string> lines(3);
for (int i=0; i<3; i++) {
std::cin >> lines[i];
if (lines[i].size() == 5) five_count++;
else if (lines[i]size() == 7) seven_count++;
}
... | a.cc: In function 'int main()':
a.cc:14:26: error: expected ')' before 'size'
14 | else if (lines[i]size() == 7) seven_count++;
| ~ ^~~~
| )
a.cc:14:37: error: could not convert 'lines.std::vector<std::__cxx11::basic_string<char> >::operator[](((std... |
s045819697 | p04043 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int a[3] = 0;
cin >> a[0] >> a[1] >> a[2];
sort(a, a+3);
if(a[0] == 5 && a[1] == 5 && a[2] == 7)
cout << "YES";
else
cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:20: error: array must be initialized with a brace-enclosed initializer
8 | int a[3] = 0;
| ^
|
s711780971 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec(3);
for (int i=0; i<3; i++){
cin >> vec.at(i);
}
sort(vec.begin(),vec.end());
if (vec.at(0)==5 && vec.at(1)==5 && vec.at(2)==7){
return "YES";
}
else {
return "NO";
}
}
| a.cc: In function 'int main()':
a.cc:15:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
15 | return "YES";
| ^~~~~
| |
| const char*
a.cc:18:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
18 | return "NO"... |
s091225425 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c
if(a == 5 && b == 5 & c == 7)
cout<<"YES"<<endl;
else if(a == 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:15: error: expected ';' before 'if'
6 | cin>>a>>b>>c
| ^
| ;
7 | if(a == 5 && b == 5 & c == 7)
| ~~
a.cc:9:3: error: 'else' without a previous 'if'
9 | else if(a == 5 && b == 7 & c == 5)
| ^~~~
|
s041628392 | p04043 | C++ | a=[int(i) for i in 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=[int(i) for i in input().split()]
| ^
|
s569335749 | p04043 | C++ | a=[int(i) for i in 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=[int(i) for i in input().split()]
| ^
a.cc:5:1: error: expected unqualified-id before 'else'
5 | else print(NO);
| ^~~~
|
s702501283 | p04043 | C++ | a=[int(i) for i in 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=[int(i) for i in input().split()]
| ^
|
s213324070 | p04043 | C++ | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]
| a.cc:1:1: error: 'a' does not name a type
1 | a=[int(i) for i in input().split()]
| ^
|
s279965146 | p04043 | Java | public class Main{
public static void main(String [] args)throws Exception{
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
String [] inp = br.readLine();
int a = Integer.parseInt(inp[0]);
int b = Integer.parseInt(inp[1]);
int c = Integer.parseInt(inp[2]);
if(a<5||a>7||b<... | Main.java:4: error: cannot find symbol
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:4: error: cannot find symbol
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
... |
s652454757 | 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 << "OK" << endl;
}
if(A=5,B=7,C=5){
cout << "OK" << endl;
}
if(A=7,B=5,C=5){
cout << "OK" << endl;
}
else if{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:22:10: error: expected '(' before '{' token
22 | else if{
| ^
| (
|
s861230189 | p04043 | Java | package app;
import java.util.*;
public class App {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
int five = 0;
int seven = 0;
for(int i = 0; i < a.length; i++){
// System.out.println(i + "文字目... | Main.java:3: error: class App is public, should be declared in a file named App.java
public class App {
^
1 error
|
s561770853 | p04043 | Java | package app;
import java.util.*;
public class App {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
for(int i = 0; i < a.length; i++){
System.out.println(i + "文字目を入力してください");
a[i] = sc.nextInt();
... | Main.java:5: error: class App is public, should be declared in a file named App.java
public class App {
^
1 error
|
s101329274 | p04043 | Java | package app;
import java.util.*;
public class App {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
for(int i = 0; i < a.length; i++){
System.out.println(i + "文字目を入力してください");
a[i] = sc.nextInt();
... | Main.java:5: error: class App is public, should be declared in a file named App.java
public class App {
^
1 error
|
s614302188 | p04043 | C++ | #include <iostream>
#include <conio.h>
using namespace std;
int main(void)
{
int sevencnt = 0, fivecnt = 0;
int num[3];
for (int i = 0; i < 3; i++)
{
cin >> num[i];
}
for (int i = 0; i < 3; i++)
{
if (num[i] == 7)
{
sevencnt++;
}
else if (num [i] == 5)
{
fivecnt++;
}
}
if (fivecnt ==... | a.cc:2:10: fatal error: conio.h: No such file or directory
2 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s391274498 | p04043 | C++ | #incloud <iostream>
void input();
using namespace std;
int main(void)
{
int sevencnt =0,fivecnt =0;
int num[3]
for(int i; i < 3; i++)
{
cin << num[i];
}
for(int i; i < 3; i++)
{
if(num[i] == 7)
{
sevencnt++;
}
else if(num i == 5)
{
five... | a.cc:1:2: error: invalid preprocessing directive #incloud; did you mean #include?
1 | #incloud <iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:10:5: error: expected initializer before 'for'
10 | for(int i; i < 3; i++)
| ^~~
a.cc:10:16: error: 'i' was not declared i... |
s537917657 | p04043 | C | <stdio.h>
int main(int A,B,C){
int i=0;
if(A==5){
if(B==5){
if(C==7){
printf("YES");
i++;
}
}else if(B==7){
if(C==5){
printf("YES");
i++;
}
}
... | main.c:1:1: error: expected identifier or '(' before '<' token
1 | <stdio.h>
| ^
|
s194859998 | 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:12:25: error: expected ';' before '}' token
12 | cout<<"NO"<<endl
| ^
| ;
13 | }
| ~
|
s120081333 | p04043 | C++ | //include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <... | a.cc: In function 'int main()':
a.cc:76:23: error: expected ';' before ':' token
76 | cin >> A >> B >> C:
| ^
| ;
a.cc:79:9: error: 'act' was not declared in this scope
79 | act=true;
| ^~~
a.cc:82:9: error: 'act' was not declared i... |
s133669810 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
// types
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<ld,ld> pdd;
typedef vector<ll> vll;
// macros
#define ALL(a) a.begin(),a.end()
#define SZ(a) ((int)a.size())
#define FI first
#define SE second
#define ... | a.cc: In function 'int main()':
a.cc:44:3: error: 'mat' was not declared in this scope
44 | mat<ll, ll> s;
| ^~~
a.cc:44:9: error: expected primary-expression before ',' token
44 | mat<ll, ll> s;
| ^
a.cc:44:13: error: expected primary-expression before '>' token
44 | mat<ll, ll> s;... |
s559899252 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
// types
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<ld,ld> pdd;
typedef vector<ll> vll;
// macros
#define ALL(a) a.begin(),a.end()
#define SZ(a) ((int)a.size())
#define FI first
#define SE second
#define ... | a.cc: In function 'int main()':
a.cc:44:3: error: 'mat' was not declared in this scope
44 | mat<ll, ll> s;
| ^~~
a.cc:44:9: error: expected primary-expression before ',' token
44 | mat<ll, ll> s;
| ^
a.cc:44:13: error: expected primary-expression before '>' token
44 | mat<ll, ll> s;... |
s194201063 | p04043 | C++ | #include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int> haiku(3);
sort(haiku.begin(),haiku.end());
if(haiku[0] == 7 && haiku[1] == 5 ){
if(haiku[2] == 5)cout << "YES" <<endl;
else cout << "NO" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'?
7 | sort(haiku.begin(),haiku.end());
| ^~~~
| short
|
s874482030 | p04043 | C | #include<stdio.h>
int main() {
int A, B, C = 0;
scanf_s("%d %d %d", &A, &B, &C);
if (A==B==5,C==7 || B==C==5,A==7 || A==C==5,B==7 ) {
printf("YES");
}
else {
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | scanf_s("%d %d %d", &A, &B, &C);
| ^~~~~~~
| scanf
|
s567962152 | p04043 | C | #include<stdio.h>
int main() {
int A, B, C = 0;
scanf_s("%d %d %d", &A, &B, &C);
if (A==B==5,C==7 ||B==C==5,A==7 || A==C==5,B==7 ) {
printf("YES");
}
else {
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | scanf_s("%d %d %d", &A, &B, &C);
| ^~~~~~~
| scanf
|
s766454454 | p04043 | C | #include<stdio.h>
int main() {
int A, B, C = 0;
scanf_s("%d %d %d", &A, &B, &C);
if (A==B==5,C==7 ||B==C==5,A==7 || A==C==5,B==7 ) {
printf("YES");
}
else {
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | scanf_s("%d %d %d", &A, &B, &C);
| ^~~~~~~
| scanf
|
s857236232 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b=0,c=0;
for(int i=0;i<3;i++){
cin>>a;
if(a==5){
b++;
}
else if(a==7){
c++;
}
cout<<a;
}
if(b==2&&c==1){
cout << "YES";
}
else{
cout << "NO";
}
| a.cc: In function 'int main()':
a.cc:20:4: error: expected '}' at end of input
20 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s380257024 | p04043 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
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]==a[2]&&a[1]==7){
cout << "YES";
}
else{
cout << "NO";
}
return 0;
} | a.cc:5:5: error: cannot declare '::main' to be a global variable
5 | int main{
| ^~~~
a.cc:6:16: error: expected primary-expression before 'a'
6 | vector <int> a(3);
| ^
a.cc:6:16: error: expected '}' before 'a'
a.cc:5:9: note: to match this '{'
5 | int main{
| ... |
s993846241 | p04043 | C++ | // /^>》, -―‐‐<^}
// ./:::::/,≠´:::::;:::ヽ
// /::::::〃:::::::::/:丿ハ
// ./:::::::i{l|:::::/ }::::}
// /:::::::::瓜イ-‐ ´‐ ,'::ノ
// ./:::::::::|ノヘ{、 (フ _ノノ:::イ
// |:::::::::::|/}` ス/ ̄ ̄ ̄ ̄ ̄/
//. |:::::::::|(_::::つ/ FMV / カタカタ
//. ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\/_____/ ̄ ̄ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s531530710 | p04043 | C++ | // /^>》, -―‐‐<^}
// ./:::::/,≠´:::::;:::ヽ
// /::::::〃:::::::::/:丿ハ
// ./:::::::i{l|:::::/ }::::}
// /:::::::::瓜イ-‐ ´‐ ,'::ノ
// ./:::::::::|ノヘ{、 (フ _ノノ:::イ
// |:::::::::::|/}`ス/ ̄ ̄ ̄ ̄ ̄/
//. |:::::::::|(_::::つ/ FMV / カタカタ
//. ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\/_____/ ̄ ̄ ̄ ̄ ̄ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s353242460 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++) //repマクロ
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) //多倍長
#define all(x) (x).begin(), (x).end() //先頭と最後を渡す
#define SZ(x) ((int)(x).size()) ... | a.cc: In function 'int main()':
a.cc:51:19: error: expected ')' before 'a'
51 | scanf("%d %d %d" a[0], a[1], a[2]);
| ~ ^~
| )
|
s111561738 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++) //repマクロ
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) //多倍長
#define all(x) (x).begin(), (x).end() //先頭と最後を渡す
#define SZ(x) ((int)(x).size()) ... | a.cc: In function 'int main()':
a.cc:51:3: error: expected initializer before 'scanf'
51 | scanf("%d %d %d" a[0], a[1], a[2]);
| ^~~~~
a.cc:52:6: error: 'a' was not declared in this scope
52 | if(a[0] > a[1]){
| ^
a.cc:57:7: error: 'a' was not declared in this scope
57 | if (a[0] > a[2... |
s422695948 | p04043 | C++ | #include <iosteam>
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;
}
}
| a.cc:1:10: fatal error: iosteam: No such file or directory
1 | #include <iosteam>
| ^~~~~~~~~
compilation terminated.
|
s398346055 | p04043 | C | #include<stdio.h>
int main() {
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
if (((A == B) && (A != C)) || ((A == C) && (A != B)) || ((B == C) && (B != A)) {
printf("yes")
}
else {
printf("no")
} | main.c: In function 'main':
main.c:5:95: error: expected ')' before '{' token
5 | if (((A == B) && (A != C)) || ((A == C) && (A != B)) || ((B == C) && (B != A)) {
| ~ ^~
| ... |
s128575715 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int A, B, C;
cin >> A >> B >> C;
if (A + B + C == 17 && (max({ A, B, C }) == 7) && (min({ A, B, C }) == 5)
){cout << "YES" << endl;
}
else cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:14:35: error: expected '}' at end of input
14 | else cout << "NO" << endl;
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s574539432 | p04043 | Java | import java.io.*;
class Main {
public static void main() {
String a,b,c;
try{
BufferedReader br
= new BufferedReader(new InputStreamReader(System.in));
a = br.readLine();
b = br.readLine();
c = br.readLine();
String s = a+b+c;
} catch(Exception e) {
}
if(s ... | Main.java:17: error: cannot find symbol
if(s == "557" || s == "575" || s == "755") {
^
symbol: variable s
location: class Main
Main.java:17: error: cannot find symbol
if(s == "557" || s == "575" || s == "755") {
^
symbol: variable s
location: class Main
Main.java:17: erro... |
s581244226 | p04043 | Java | import java.io.*;
class Main {
public static void main() {
String a,b,c;
BufferedReader br
= new BufferedReader(new InputStreamReader(System.in));
a = br.readLine();
b = br.readLine();
c = br.readLine();
String s = a+b+c;
if(s == "557" || s == "575" || s == "755") {
S... | Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
a = br.readLine();
^
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
b = br.readLine();
^
Main.java:10: error: unreported exception IO... |
s108817640 | p04043 | Java | import java.io.*;
class Main {
public static void main() {
int a,b,c;
String buf;
BufferedReader br
= new BufferedReader(new InputStreamReader(System.in));
buf = br.readLine();
a = Integer.parseInt(buf);
buf = br.readLine();
b = Integer.parseInt(buf);
buf = br.readLine();
c =... | Main.java:15: error: incompatible types: int cannot be converted to String
String s1 = a+b+c;
^
Main.java:16: error: cannot find symbol
if(s == 557 || s == 575 || s == 755) {
^
symbol: variable s
location: class Main
Main.java:16: error: cannot find symbol
if(s == 557 || s ==... |
s213331680 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int A, B, C;
cin >> A, B, C;
if (A + B + C == 17 && max(A, B, C) == 7 && min(A, B, C) == 5)cout << 'YES' << endl;
else cout << 'NO' << ;
return 0;
} | a.cc:9:79: warning: multi-character character constant [-Wmultichar]
9 | if (A + B + C == 17 && max(A, B, C) == 7 && min(A, B, C) == 5)cout << 'YES' << endl;
| ^~~~~
a.cc:10:22: warning: multi-character character constant [-... |
s208720806 | p04043 | C++ | #include <iostream>
int main()
{
int arr[3];
for (int i = 0 ; i < 3 ; ++i)std::cin >> arr[3];
int 5c = 0 , 7c = 0;
bool d = false;
for (int i :arr)
{
if (i!= 7 && i != 5)
{
std::cout << "NO";
d = true;
break;
}
else
{
if (i == 5)
{
if (5c > 2)
... | a.cc: In function 'int main()':
a.cc:7:7: error: expected unqualified-id before numeric constant
7 | int 5c = 0 , 7c = 0;
| ^~
a.cc:21:13: error: unable to find numeric literal operator 'operator""c'
21 | if (5c > 2)
| ^~
a.cc:27:11: error: unable to find numeric literal o... |
s846627083 | p04043 | Java | public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
sc.close();
if(A + B + C == 19 && (( A == 7 || A == 5 ) && ( B == 7 || B == 5 ) && ( C == 7 || C == 5 ))){
System.out.println("YES");
}else {
System... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]){
^
(use --enable-preview to enable unnamed classes)
1 error
|
s846221144 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
string ans = "NO";
if (a == 5 && b == 7 && c == 7) ans = "YES";
if (a == 7 && b == 5 && c == 7) ans = "YES";
if (a == 7 && b == 7 && c == 5) ans = "YES";
}
cout << ans << endl;
} | a.cc:12:3: error: 'cout' does not name a type
12 | cout << ans << endl;
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s470358191 | 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=395){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:5:21: error: lvalue required as left operand of assignment
5 | if(a+b+c=17&&a*b*c=395){
| ^
|
s592916117 | p04043 | C++ | #include <iostream>
using namespace std;
int main(void){
// Your code here!
int a,b,c;
cin>>a>>b>>c;
if (a==7&&b==5&&c==5||a==&&b==7&&c==5||a==5&&b==5&&c==7){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if (a==7&&b==5&&c==5||a==&&b==7&&c==5||a==5&&b==5&&c==7){
| ~^~~~~
a.cc:7:32: error: label 'b' used but not defined
7 | if (a==7&&b==5&&c==5||a==&&b... |
s050334890 | p04043 | C++ | int main() {
int five(0), seven(0), temp, t(3);
while (t--) {
scanf("%d", &temp);
if (temp != 5 && temp != 7) {
std::cout << "NO\n";
break;
} else {
temp == 5 ? five ^= 5 : seven ^= 7;
}
}
std::cout << (!five && seven ? "YES\n" : "NO\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
5 | scanf("%d", &temp);
| ^~~~~
a.cc:7:12: error: 'cout' is not a member of 'std'
7 | std::cout << "NO\n";
| ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.