submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s658629935 | p04043 | C++ | 1. #include <iostream>
2.
3. using namespace std;
4.
5. int main()
6. {
7. int A,B,C;
8. cin >>A>>B>>C;
9. if (((A==5)||(A==7))&&((B==5)||(B==7))&&((C==5)||(C==7))&&(A+B+C==17))
10. cout << "YES";
11. else cout << "NO";
12. return 0;
13. }
| a.cc:1:9: error: stray '#' in program
1 | 1. #include <iostream>
| ^
a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 1. #include <iostream>
| ^~
a.cc:4:1: error: expected unqualified-id before numeric constant
4 | 4.
| ^~
|
s023291067 | p04043 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> x(3);
for( int i = 0;i <3; ++i ){
cin >> x[i];
}
sort(x.begin(),x.end());
if( x[0] == 5 && x[1] == 5 && x[2] == 7 ){
cout << "YES";
}
else {
cou... | a.cc: In function 'int main()':
a.cc:19:7: error: 'coutn' was not declared in this scope
19 | coutn << endl;
| ^~~~~
|
s225657379 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int x[3];
for( int i = 0;i <3; ++i ){
cin >> x[i];
}
sort(x);
if( x[0] == 5 && x[1] == 5 && x[2] == 7 ){
cout << "YES";
}
else {
cout << "NO";
}
coutn << endl;
return... | a.cc: In function 'int main()':
a.cc:9:7: error: 'sort' was not declared in this scope; did you mean 'short'?
9 | sort(x);
| ^~~~
| short
a.cc:16:7: error: 'coutn' was not declared in this scope
16 | coutn << endl;
| ^~~~~
|
s809174333 | p04043 | C++ | include <iostream>
using namespace std;
int main()
{
int x[3];
for( int i = 0;i <3; ++i ){
cin >> x[i];
}
sort(x);
if( x[0] == 5 && x[1] == 5 && x[2] == 7 ){
cout << "YES";
}
else {
cout << "NO";
}
coutn << 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:7:5: error: 'cin' was not declared in this scope
7 | cin >> x[i];
| ^~~
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
9 | sort(x);
... |
s678520570 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> abc;
for(int i=0;i<3;i++){
cin << abc.at(i);
}
sort(abc.begin(),abc.end());
if(abc.at(0)==7&&(abc.at(1)==5&&abc.at(2)==5)) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
9 | cin << abc.at(i);
| ~~~ ^~ ~~~~~~~~~
| | |
| | ... |
s837335647 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> abc;
for(int i=0;i<3;i++){
cin << abc.at(i);
}
sort(abc.begin(),abc.end());
if(abc.at(0)==7&&abc.at(1)==5&&abc.at(2)==5) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
9 | cin << abc.at(i);
| ~~~ ^~ ~~~~~~~~~
| | |
| | ... |
s624871181 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> abc(3);
for(int i=0;i<3;i++){
cin << abc.at(i);
}
sort(a.begin(),a.end());
if(a.at(0)==7&&a.at(1)==5&&a.at(2)==5) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
9 | cin << abc.at(i);
| ~~~ ^~ ~~~~~~~~~
| | |
| | ... |
s244183097 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
if (A == 5 && B == 7 && C == 5){
cout << "YES" << endl;
}
else if (B == 5 && A == 7 && C == 5){
cout << "YES" << endl;
}
else if (A == 5 && C == 7 && B == 5){
cout << "YES" << endl;
}
else{
cout << "N... | a.cc:22:1: error: extended character is not valid in an identifier
22 |
| ^
a.cc:22:1: error: extended character is not valid in an identifier
a.cc:22:1: error: '\U00003000\U00003000' does not name a type
22 |
| ^~~~
|
s576045143 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int arr[3],count=0;
for(int i=0;i<n;i++)
cin>>arr[i];
map<int,int> mp;
for(int i=0;i<n;i++)
mp[arr[i]]++;
for(auto it=mp.begin();it!=mp.end();it++)
{
if(it->first==5)
{
if(it->second==2)
count=1;
else
coun... | a.cc: In function 'int main()':
a.cc:7:17: error: 'n' was not declared in this scope
7 | for(int i=0;i<n;i++)
| ^
a.cc:10:17: error: 'n' was not declared in this scope
10 | for(int i=0;i<n;i++)
| ^
|
s321973666 | p04043 | C | #include <stdio.h>
int main(){
int a,i=0;
int cnt_7,cnt_5;
while(i<2){
scanf("%d\n",&a);
if(a==7&&cnt_7==0)
cnt_7++;
else if(a==7&&cnt_7==1){
printf("NO");
return 0;
}
else if(a==5&&cnt_5==2){
printf("NO");
return 0;
}
else if(a==5&&cnt_5!=2){
... | main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
26 | }
| ^
|
s503319119 | p04043 | C | #include <stdio.h>
int main(){
int a,i=0;
int cnt_7,cnt_5;
while(i<2){
scanf("%d\n",a);
if(a==7||cnt_7==0)
cnt_7++;
else if(a==7||cnt_7==1){
printf("NO");
return 0;
}
else if(b==5||cnt==2){
printf("NO");
return 0;
}
else if(b==5||cnt!=2){
... | main.c: In function 'main':
main.c:13:14: error: 'b' undeclared (first use in this function)
13 | else if(b==5||cnt==2){
| ^
main.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:20: error: 'cnt' undeclared (first use in this function);... |
s442591234 | p04043 | C | #include <stdio.h>
#include <string.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||(A==5 && B==7 && C==7)){
printf("YES");}
else{
printf("NO");
}
return 0... | main.c: In function 'main':
main.c:6:125: error: expected expression before '||' token
6 | if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||(A==5 && B==7 && C==7)){
| ... |
s442319407 | p04043 | C | #include <stdio.h>
#include <string.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
printf("YES");}
else{
printf("NO");
}
return 0;... | main.c: In function 'main':
main.c:6:125: error: expected expression before '||' token
6 | if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
| ... |
s817832073 | p04043 | C | #include <stdio.h>
#include <string.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
printf("YES");}
else{
printf("NO");
}
return 0;... | main.c: In function 'main':
main.c:6:6: error: expected expression before '{' token
6 | if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
| ^
main.c:6:125: error: expected expression before '||' token
... |
s434146143 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(0);
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int cnt = 0;
for (int i = 0, a; i < 3; ++i) {
cin >> a;
if (a == 5)
cnt++;
}
cout << (cnt... | a.cc: In function 'int main()':
a.cc:17:25: error: expected primary-expression before '?' token
17 | cout << (cnt >= ? "YES" : "NO");
| ^
|
s072338384 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using llv = vector<long long>;
using lv = vector<lint>;
using Llist = l... | a.cc: In function 'void Main()':
a.cc:31:27: error: expected primary-expression before '[' token
31 | rep(i,3) cin >> lv[i];
| ^
a.cc:32:16: error: expected primary-expression before '.' token
32 | sort(lv.begin(),lv.end());
| ^
a.cc:32:27: erro... |
s819922901 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using llv = vector<long long>;
using lv = vector<lint>;
using Llist = l... | a.cc: In function 'void Main()':
a.cc:31:27: error: expected primary-expression before '[' token
31 | rep(i,3) cin >> lv[i];
| ^
a.cc:32:16: error: expected primary-expression before '.' token
32 | sort(lv.begin(),lv.end());
| ^
a.cc:32:27: erro... |
s729221562 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using Vecint = vector<lint>;
using Llist = list<lint>;
ll pow(ll k,ll ... | a.cc: In function 'void Main()':
a.cc:35:22: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and 'char')
35 | cout << "No" >> '\n';
| ~~~~~~~~~~~~ ^~ ~~~~
| | |
| | char
| std::basic_ostrea... |
s555448628 | 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" >> ;
}
if else (A==5 && B==7 && C==5){
cout << "YES" >> ;
}
if else (A==7 && B==5 && C==5){
cout << "YES" >> ;
}
else {
cout << "NO" >> ;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before ';' token
9 | cout << "YES" >> ;
| ^
a.cc:11:6: error: expected '(' before 'else'
11 | if else (A==5 && B==7 && C==5){
| ^~~~
| (
a.cc:14:6: error: expected '(' before 'else'
... |
s878867713 | 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" >> ;end1
}
if else (A==5 && B==7 && C==5){
cout << "YES" >> ;end1
}
if else (A==7 && B==5 && C==5){
cout << "YES" >> ;end1
}
else {
cout << "NO" >> ;end1
}... | a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before ';' token
9 | cout << "YES" >> ;end1
| ^
a.cc:9:22: error: 'end1' was not declared in this scope
9 | cout << "YES" >> ;end1
| ^~~~
a.cc:11:6: error: expected '(' before... |
s970824298 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if((a != 5 && a != 7) || (b != 5 && b != 7) || (c != 5 && c != 7)){
cout << "NO";
}
else if((a + b + c) != 17){
count << "NO";
}
else{
count << "YES";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:9: error: 'count' was not declared in this scope
12 | count << "NO";
| ^~~~~
a.cc:15:9: error: 'count' was not declared in this scope
15 | count << "YES";
| ^~~~~
|
s788408373 | p04043 | C++ | using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if((a != 5 && a != 7) || (b != 5 && b != 7) || (c != 5 && c != 7)){
cout << "NO";
}
else if((a + b + c) != 17){
count << "NO";
}
else{
count << "YES";
}
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin >> a >> b >> c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:7:9: ... |
s584521411 | p04043 | Java | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner snanner = new Scanner(System.in);
int A = scanner.nextInt();
int B = scanner.nextInt();
int C = scanner.nextInt();
if( A * B * C == 175 ){
System.out.println("YES");
} else {
Sy... | Main.java:9: error: cannot find symbol
int A = scanner.nextInt();
^
symbol: variable scanner
location: class Main
Main.java:10: error: cannot find symbol
int B = scanner.nextInt();
^
symbol: variable scanner
location: class Main
Main.java:11: error: cannot find symbol
int... |
s530901773 | p04043 | Java | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner snanner = new Scanner(System.in);
int A = scanner.nextInt();
int B = scanner.nextInt();
int C = scanner.nextInt();
if( A * B * C == 175 ){
System.out.println("YES");
} else {
System.out.println("NO");
}
... | Main.java:17: error: reached end of file while parsing
}
^
1 error
|
s389218733 | p04043 | Java | import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int L = scan.nextInt();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
... | Main.java:10: error: cannot find symbol
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:10: error: cannot find symbol
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
... |
s131953799 | p04043 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int L = scan.nextInt();
... | Main.java:17: error: unreported exception IOException; must be caught or declared to be thrown
str[i] = reader.readLine();
^
Main.java:25: error: unreported exception IOException; must be caught or declared to be thrown
reader.close();
^
2 errors
|
s801849265 | p04043 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int L = scan.nextInt();
... | Main.java:20: error: cannot find symbol
Arrays.sort(str);
^
symbol: variable str
location: class Main
Main.java:22: error: cannot find symbol
for(String out : str){
^
symbol: variable str
location: class Main
2 errors
|
s781949652 | p04043 | Java | import java.util.Scanner;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int cnt1 = 0;
int cnt2 = 0;
for(int i = 0; i < 3; i++){
int num = scan.nextInt();
if(num == 5){
cnt1++;
}
else if(num == 7){
cnt2++;
}
}
if(cnt1 == 2 && cnt2 == 1){
... | Main.java:3: 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
|
s978495332 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
int count = 0;
if(A == 7)count ++;
if(B == 7)count ++;
if(C == 7)count ++;
if(count == 1)cout << YES << endl;
else cout << NO << endl;
} | a.cc: In function 'int main()':
a.cc:13:25: error: 'YES' was not declared in this scope
13 | if(count == 1)cout << YES << endl;
| ^~~
a.cc:14:16: error: 'NO' was not declared in this scope
14 | else cout << NO << endl;
| ^~
|
s711655375 | 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 if
{
cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
7 | cin >> A >> B >> C ;
| ^~~
a.cc:9:25: error: 'C' was not declared in this scope
9 | if ( (A==5 && B==5 && C==7) ||
| ^
a.cc:13:6: error: expected primary-expression before ')' tok... |
s206698659 | p04043 | C++ | #!/bin/bash
read s
s=(`echo $s | tr ' ' '\n' | sort`)
if((s[0]==5&&s[1]==5&&s[2]==7))
then echo "YES"
else
echo "NO"
fi | a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/bin/bash
| ^
a.cc:3:4: error: stray '`' in program
3 | s=(`echo $s | tr ' ' '\n' | sort`)
| ^
a.cc:3:33: error: stray '`' in program
3 | s=(`echo $s | tr ' ' '\n' | sort`)
| ^
a.cc:2:1: error: 'r... |
s798596598 | p04043 | C++ | #iclude<bits/stdc++.h>
using namespace std;
int main(){
int n,l;
cin >> n >> l;
vector<string> s(n);
for(int i = 0; i < n; i++)cin >> s.at(i);
sort(s.begin(),s.end());
for(int i = 0;i < n; i++)cout << s.at(i);
cout << endl;
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
1 | #iclude<bits/stdc++.h>
| ^~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> n >> l;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<... |
s824893687 | p04043 | C++ | clude<bits/stdc++.h>
using namespace std;
int main(){
int n,l;
cin >> n >> l;
vector<string> s(n);
for(int i = 0; i < n; i++)cin >> s.at(i);
sort(s.begin(),s.end());
for(int i = 0;i < n; i++)cout << s.at(i);
cout << endl;
return 0;
} | a.cc:1:1: error: 'clude' does not name a type
1 | clude<bits/stdc++.h>
| ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> n >> l;
| ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
7 | vector<string> s(n);
| ^~~~~~
a... |
s520851933 | p04043 | C | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a==5 && b==5 && c==7) || (b==5&&c==5 && a==7) || (a==5 && c==5 && b==7))
cout<<"YES";
else
cout<<"NO";
return 0;
} | main.c:1:13: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s241110833 | p04043 | C | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a==5 & b==5) || (b==5&&c==5) || (a==5 && c==5))cout<<"YES";
else cout<<"NO";
return 0;
} | main.c:1:13: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s239134740 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c
vector<int> v(3);
cin>>v[0]>>v[1]>>v[2];
sort(v.begin(),v.end());
if(v[0]== 5 and v[1]==5 and v[2]==7){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:7:4: error: expected initializer before 'vector'
7 | vector<int> v(3);
| ^~~~~~
a.cc:9:8: error: 'v' was not declared in this scope
9 | cin>>v[0]>>v[1]>>v[2];
| ^
|
s392537540 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c
vector<int> v(3);
cin>>v[0]>>v[1]>>v[2];
sort(v.begin(),v.end());
if(v[0]== 5 and v[1]==5 and v[2]==7){
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:4: error: expected initializer before 'vector'
7 | vector<int> v(3);
| ^~~~~~
a.cc:9:8: error: 'v' was not declared in this scope
9 | cin>>v[0]>>v[1]>>v[2];
| ^
a.cc:16:3: error: expected '}' before 'else'
16 | else
| ^~~~
a.cc:13:39... |
s776545266 | p04043 | C++ |
int a , b ;
char op ;
cin >> a >> op >> b ;
if (op == '+')
{
cout << a + b ;
}
else
cout << a - b ;
| a.cc:4:5: error: 'cin' does not name a type
4 | cin >> a >> op >> b ;
| ^~~
a.cc:5:5: error: expected unqualified-id before 'if'
5 | if (op == '+')
| ^~
a.cc:10:5: error: expected unqualified-id before 'else'
10 | else
| ^~~~
|
s481386955 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
int main()
{
string ans;
int a, b, c;
cin >> a >> b >> c;
if (a != 5 || a != 7 || b != 5 || b != 7 || c != 5 || c != 7 ||)
{
ans = "NO";
cout << ans... | a.cc: In function 'int main()':
a.cc:11:68: error: expected primary-expression before ')' token
11 | if (a != 5 || a != 7 || b != 5 || b != 7 || c != 5 || c != 7 ||)
| ^
|
s093569542 | p04043 | Java | import java.util.Arrays;
import java.util.Scanner;
public class Main10 {
public static void main(String[]args){
Scanner scan = new Scanner(System.in);
int[] A = new int[3];
for(int i = 0;i<3;i++){
A[i] = scan.nextInt();
}
Arrays.sort(A);//昇順にソート
if(A[0]==5&&A[1]==5&&A[2]==7)
System.out.p... | Main.java:4: error: class Main10 is public, should be declared in a file named Main10.java
public class Main10 {
^
1 error
|
s209068159 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int A ,B ,C ;
cin >> A , B , C;
if ( A ,B == 5 && C == 7 || B , C == 5 && A == 7 || A , C == 5 && B == 7 )
cout << "YES";
else
cout << "NO";
return 0;
| a.cc: In function 'int main()':
a.cc:19:14: error: expected '}' at end of input
19 | return 0;
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s504115689 | p04043 | C | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==5&&b==5&&c=7){printf("YES");
}else if(a==5&&b==7&&c=5){printf("YES");
}else if(a==7&&b==5&&c=5){printf("YES");
}else(printf("NO");)
return 0;
} | main.c: In function 'main':
main.c:8:19: error: lvalue required as left operand of assignment
8 | if(a==5&&b==5&&c=7){printf("YES");
| ^
main.c:9:25: error: lvalue required as left operand of assignment
9 | }else if(a==5&&b==7&&c=5){printf("YES");
| ^
ma... |
s574161330 | p04043 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a==5 & b==5) || (b==5&&c==5) || (a==5 && c==5)))cout<<"YES";
else cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:54: error: expected primary-expression before ')' token
8 | if((a==5 & b==5) || (b==5&&c==5) || (a==5 && c==5)))cout<<"YES";
| ^
|
s167969034 | p04043 | Java | q | Main.java:1: error: reached end of file while parsing
q
^
1 error
|
s830431973 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
cout<<"enter your poem 3 times"<<endl;
cin>> a>>b>>c;
if ( a = 5 && b = 5 && c = 7 )
cout << "yes";
else
cout <<"NO";
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
9 | if ( a = 5 && b = 5 && c = 7 )
| ~~^~~~
|
s173886783 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a = 7 && b = 5 && c = 5){
cout << "Yes" << endl;
}
else if(a = 5 && b = 7 && c = 5){
cout << "Yes" << endl;
}
else if(a = 5 && b = 5 && c = 7){
cout << "Yes" << endl;
}
else{
cout... | a.cc: In function 'int main()':
a.cc:8:21: error: lvalue required as left operand of assignment
8 | if(a = 7 && b = 5 && c = 5){
| ~~^~~~
a.cc:12:27: error: lvalue required as left operand of assignment
12 | else if(a = 5 && b = 7 && c = 5){
| ~~^~~~
a.c... |
s128006633 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a = 7 && b = 5 $$ c = 5){
cout << "Yes" << endl;
}
else if(a = 5 && b = 7 $$ c = 5){
cout << "Yes" << endl;
}
else if(a = 5 && b = 5 $$ c = 7){
cout << "Yes" << endl;
}
else{
cout... | a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
8 | if(a = 7 && b = 5 $$ c = 5){
| ~~^~~~
a.cc:8:20: error: expected ')' before '$$'
8 | if(a = 7 && b = 5 $$ c = 5){
| ~ ^~~
| )
a.cc:12:18: error: ... |
s435797376 | p04043 | C++ | #include <iostream>
using namespace std;
int main()
char A , B ,C;
cin >> A >> B >> C;
if ( 1<= A , B ,C <=10)
cout << "YES";
else
cout << "NO";
| a.cc:6:3: error: expected initializer before 'char'
6 | char A , B ,C;
| ^~~~
a.cc:7:1: error: 'cin' does not name a type
7 | cin >> A >> B >> C;
| ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
8 | if ( 1<= A , B ,C <=10)
| ^~
a.cc:10:3: error: expected unqualified-id before... |
s609848187 | p04043 | C++ | #include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;
int main() {
int v[3];
rep(i,3) cin >> v[i];
sort(all(v));
if(v == {5,5,7}) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:4:18: error: request for member 'begin' in 'v', which is of non-class type 'int [3]'
4 | #define all(a) a.begin(),a.end()
| ^~~~~
a.cc:10:10: note: in expansion of macro 'all'
10 | sort(all(v));
| ^~~
a.cc:4:28: error: request for mem... |
s922405647 | p04043 | C++ | #include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;
int main() {
vector<int> v(3);
rep(i,3) cin >> v[i];
sort(all(v));
if(v == {5,5,7}) cout << "YES" << endl;
else cout << "NO" << ... | a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '{' token
11 | if(v == {5,5,7}) cout << "YES" << endl;
| ^
a.cc:11:12: error: expected ')' before '{' token
11 | if(v == {5,5,7}) cout << "YES" << endl;
| ~ ^~
| )
|
s551494372 | p04043 | C | #include <stdio.h>
#include <string.h>
int main(){
int line[3];
int count5 = 0;
int count7 = 0;
int i;
if(!((scanf("%d",&line[0])==1)
&& (scanf("%d",&line[1])==1)
&& (scanf("%d",&line[2])==1))){
return -1;
}
for(i=0;i<3,i++){
if(line[i]==5){
count5++;
}
if(line[i]==7){
count7++;
... | main.c: In function 'main':
main.c:14:17: error: expected ';' before ')' token
14 | for(i=0;i<3,i++){
| ^
| ;
|
s442664135 | p04043 | C | #include <stdio.h>
#include <string.h>
int main(){
int line[3];
int count5 = 0;
int count7 = 0;
int i;
if(!((scanf("%d",&line[0])==1)
&& (scanf("%d",&line[1])==1)
&& (scanf("%d",&line[2])==1)){
return -1;
}
for(i=0;i<3,i++){
if(line[i]==5){
count5++;
}
if(line[i]==7){
count7++;
... | main.c: In function 'main':
main.c:11:38: error: expected ')' before '{' token
11 | && (scanf("%d",&line[2])==1)){
| ^
| )
main.c:9:5: note: to match this '('
9 | if(!((scanf("%d",&line[0])==1)
| ^
main.c:28... |
s215285037 | p04043 | C | #include <stdio.h>
#include <string.h>
int main(){
int line[3];
int count5 = 0;
int count7 = 0;
int i;
if(!((scanf("%d",&line[0])==1)
&& (scanf("%d",&line[1])==1)
&& (scanf("%d",&c),&line[2]))){
return -1;
}
for(i=0;i<3,i++){
if(line[i]==5){
count5++;
}
if(line[i]==7){
count7++;
... | main.c: In function 'main':
main.c:11:25: error: 'c' undeclared (first use in this function)
11 | && (scanf("%d",&c),&line[2]))){
| ^
main.c:11:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: expected ';' before ')'... |
s000297129 | p04043 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
int count5 = 0;
int count7 = 0;
Scanner sc = new Scanner(System.in);
Stirng[] line = sc.nextLine().split(" ");
for(String n:line){
if(n.equals("5")){
count5++;
}
if(n.equals("7")){
coun... | Main.java:9: error: cannot find symbol
Stirng[] line = sc.nextLine().split(" ");
^
symbol: class Stirng
location: class Main
1 error
|
s079552636 | p04043 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
int count5 = 0;
int count7 = 0;
Scanner sc = new Scanner(System.in);
String[] line = sc.readLine().split(" ");
for(String n:line){
if(n.equals("5")){
count5++;
}
if(n.equals("7")){
coun... | Main.java:9: error: cannot find symbol
String[] line = sc.readLine().split(" ");
^
symbol: method readLine()
location: variable sc of type Scanner
1 error
|
s990855170 | p04043 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
int count5 = 0;
int count7 = 0;
Scanner sc = new Scanner(System.in);
Stirng[] line = sc.nextLine().split(" ");
for(String n:line){
if(n.equals("5")){
count5++;
}
if(n.equals("7")){
coun... | Main.java:9: error: cannot find symbol
Stirng[] line = sc.nextLine().split(" ");
^
symbol: class Stirng
location: class Main
1 error
|
s742824793 | p04043 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
int count5 = 0;
int count7 = 0;
Scanner sc = new Scanner(System.in);
Stirng[] line = sc.readLine().split(" ");
for(String n:line){
if(n.equals("5")){
count5++;
}
if(n.equals("7")){
coun... | Main.java:9: error: cannot find symbol
Stirng[] line = sc.readLine().split(" ");
^
symbol: class Stirng
location: class Main
Main.java:9: error: cannot find symbol
Stirng[] line = sc.readLine().split(" ");
^
symbol: method readLine()
location: variable sc of type Scanner
2 ... |
s702437746 | p04043 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
int count5 = 0;
int count7 = 0;
Scanner sc = new Scanner(System.in);
Stirng[] line = sc.readLine().split(" ");
for(String n:line){
if(n.equals("5")){
count5++;
}
if(n.equals("7")){
count7... | Main.java:21: error: ';' expected
System.out.println("NG")
^
1 error
|
s654349337 | p04043 | C | #include <stdio.h>
int Main(){
int a;
int b;
int c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)){
printf("OK");
} else {
printf("NG");
}
return 1;
} | /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
|
s003913404 | p04043 | C | #include <stdio.h>
int Main(){
int a;
int b;
int c;
scanf("%d",a);
scanf("%d",b);
scanf("%d",c);
if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)){
printf("OK");
} else {
printf("NG");
}
return 1;
} | /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
|
s401300736 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin>>A >> B>> C;
if(A+B+C=17&&A*B*C=175){
cout <<"Yes"<<endl;
}
else{
cout <<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:14: error: lvalue required as left operand of assignment
7 | if(A+B+C=17&&A*B*C=175){
| ~~^~~~~~~
|
s441927267 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin>>A >> B>> C;
if(A+B+C=17&&ABC=175){
cout <<"Yes"<<endl;
else{
cout <<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:16: error: 'ABC' was not declared in this scope
7 | if(A+B+C=17&&ABC=175){
| ^~~
a.cc:9:3: error: expected '}' before 'else'
9 | else{
| ^~~~
a.cc:7:24: note: to match this '{'
7 | if(A+B+C=17&&ABC=175){
| ... |
s818819422 | p04043 | C | #include<stdio.h>
int main(void){
int a[3],cnt5=cnt7=0;
for(int i=0;i<3;i++){
scanf("%d",a[i]);
if(a[i]==5){
cnt5++;
}
if(a[i]==7){
cnt7++;
}
}
if(cnt5==1&&cnt7==1){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:3:17: error: 'cnt7' undeclared (first use in this function); did you mean 'cnt5'?
3 | int a[3],cnt5=cnt7=0;
| ^~~~
| cnt5
main.c:3:17: note: each undeclared identifier is reported only once for each function it appears in
|
s738266082 | 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 {
... | a.cc: In function 'int main()':
a.cc:19:4: error: expected '}' at end of input
19 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s583878103 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
#freopen("input.txt","r",stdin);
#freopen("output.txt","w",stdout);
#freopen("error.txt","w",stderr);
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";
else cout<<"NO";
return 0;
} | a.cc:5:10: error: invalid preprocessing directive #freopen
5 | #freopen("input.txt","r",stdin);
| ^~~~~~~
a.cc:6:10: error: invalid preprocessing directive #freopen
6 | #freopen("output.txt","w",stdout);
| ^~~~~~~
a.cc:7:10: error: invalid preprocessing directive #f... |
s215881462 | p04043 | C++ | a = input()
b = input()
c = input()
if((a+b+c)==17):
if(a==5):
if(b==7 or c==7):
print('YES')
elif(a==7):
if(b==5 and c==5):
print('YES')
else:
print('NO')
else:
print('NO')
| a.cc:8:13: warning: multi-character character constant [-Wmultichar]
8 | print('YES')
| ^~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
11 | print('YES')
| ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
13... |
s048905956 | p04043 | C | #include<stdio.h>
int main(void) {
int a[2], i, sum = 0;
for (i = 0; i < 3; i++) {
scanf("%d" &a[i]);
}
for (i = 0; i < 3; i++) {
if (a[i] != 5 || a[i] != 7) {
puts("No");
return 0;
}
sum += a[i];
}
if (sum == 12)
puts("Yes");
else
puts("No");
return 0;
} | main.c: In function 'main':
main.c:7:28: error: invalid operands to binary & (have 'char *' and 'int')
7 | scanf("%d" &a[i]);
| ~~~~ ^~~~~
| | |
| char * int
|
s763375277 | p04043 | C | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d,%d,%d",a,b,c);
if(a==7||b==7||c==7)
else if((a==5&&b==5)||(b==5&&c==5)||(c==5&&a==5))
printf("YES");
else printf("NO");
return 0;
} | main.c: In function 'main':
main.c:7:9: error: expected expression before 'else'
7 | else if((a==5&&b==5)||(b==5&&c==5)||(c==5&&a==5))
| ^~~~
|
s290093510 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
#define mod(cans) cans%10**9+7
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define cin_pl(n,x) rep(i,n){cin>>x[i];}
#define all(a) (a).begin(),(a).... | a.cc: In function 'int main()':
a.cc:50:19: error: 'i' was not declared in this scope
50 | if(p[0]==5&&p[i]==5&&p[2]==7)cout<<"YES";
| ^
|
s654021629 | p04043 | C++ | #include<bit/stdc++.h>
using namespace std;
int main() {
int arr[3];
cin >> arr[0] >> arr[1] >> arr[2];
sort(arr, arr+3);
cout (arr[0] == 5 && arr[1] == 5 && arr[2] == 7)
} | a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
1 | #include<bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s316574270 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
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\n";
}
else {
cout << "NO\n";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:18:22: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [5]')
18 | cout < "YES\n";
| ~~~~ ^ ~~~~~~~
| | |
| | const char [... |
s959864428 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); ++i)
int main(){
vi a(3);
bool f1=false,sv=false,f2=false;
rep(i,3){
cin>>a.at(i);
if(a.at(i)==5){
if(!f1)f1=true;
else f2=true;
}else if(a.at(i)==7)sv=true;
}
if(f1&&sv&&f2)
cout<<"YES\n"s;
else
cout<<"N... | a.cc: In function 'int main()':
a.cc:6:9: error: 'vi' was not declared in this scope
6 | vi a(3);
| ^~
a.cc:9:22: error: 'a' was not declared in this scope
9 | cin>>a.at(i);
| ^
|
s438237885 | p04043 | C++ | include <bits/stdc++.h>
using namespace std;
int main()
{
int c[11] = {0};
int A, B, C;
cin >> A >> B >> C;
c[A]++;
c[B]++;
c[C]++;
if (c[5] == 2 && c[7] == 1)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
8 | cin >> A >> B >> C;
| ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
13 | cout << "Y... |
s582865091 | p04043 | C++ | #include<iostream>
#include<vector>
#include <cmath>
#include <map>
#include <cctype>
#include <algorithm>
#include <string>
using namespace std;
int main(void){
string a;
int a[2] ;
a[0] = 0;
a[1] = 0;
for(int i = 0; i < 3 ; i++){
cin >> a ;
size_t n = a.size();
if(n == 5){... | a.cc: In function 'int main()':
a.cc:11:9: error: conflicting declaration 'int a [2]'
11 | int a[2] ;
| ^
a.cc:10:12: note: previous declaration as 'std::string a'
10 | string a;
| ^
a.cc:21:19: error: expected ';' before ':' token
21 | a[1]++:
| ... |
s894542702 | p04043 | C | #include<iostream>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if ((a + b + c) != 17){
cout << "NO";
}
else {
cout << "YES";
}
return 0;
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s184836643 | 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\n" ;
}
else
{
cout << "NO\n" ;
... | a.cc:3:24: error: expected ';' before 'int'
3 | using namespace std
| ^
| ;
4 |
5 | int main()
| ~~~
|
s153309779 | 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\n" ;
}
else
{
cout << "NO\n" ;
}
return 0 ;
} | a.cc:3:20: error: expected ';' before 'int'
3 | using namespace std
| ^
| ;
4 |
5 | int main()
| ~~~
a.cc: In function 'int main()':
a.cc:9:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream... |
s152936657 | p04043 | Java | import java.util.Scanner;
public class IroHaAndHaiku {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
System.out.println((
(A == 5 && B... | Main.java:3: error: class IroHaAndHaiku is public, should be declared in a file named IroHaAndHaiku.java
public class IroHaAndHaiku {
^
1 error
|
s919975444 | p04043 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a + b + c == 19){
if(a == 7 && b == 7)
cout << "YES" << endl;
else if(a == 7 && c == 7)
cout << "YES" << endl;
else if(b == 7 && c == 7)
cout << "YES" << endl;
else
cout << "NO" << endl;... | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s677342998 | p04043 | C++ | #include<iostream>
#include<vector>
using namespace std;
int main () {
vector<int> data_array(cin);
if (data_array.size != 3) cout << "NO";
int value5 = 0;
int value7 = 0;
for (int& element : data_array) {
if (element == 5) value5++;
if (ele... | a.cc: In function 'int main()':
a.cc:6:33: error: no matching function for call to 'std::vector<int>::vector(std::istream&)'
6 | vector<int> data_array(cin);
| ^
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/st... |
s877507378 | p04043 | C++ | #include<iostream>
#include<vector>
int main () {
vector<int> data_array(cin);
if (data_array.size != 3) cout << "NO";
int value5 = 0;
int value7 = 0;
for (int& element : data_array) {
if (element == 5) value5++;
if (element == 7) value7++;
}
if (value5 == 2 and value7 == 1) cout << "YES... | a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
5 | vector<int> data_array(cin);
| ^~~~~~
a.cc:5:3: 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: ... |
s924673221 | p04043 | C++ |
#include <bits/stdc++.h>
class kin{
public:
inline void open(FILE *,int);
inline void close(void);
inline void scan(void);
inline kin &operator>>(char &);
inline kin &operator>>(int &);
inline kin &operator>>(long long &);
inline kin &operator>>(double &);
inline kin &operator>>(long double &);
inline kin &o... | a.cc: In instantiation of 'void kin::get(T*, int) [with T = int]':
a.cc:47:8: required from here
47 | in.get(d,3);
| ~~~~~~^~~~~
a.cc:197:39: error: no match for 'operator>' (operand types are 'kin' and 'int')
197 | for(int i=0;i<num;++i) (*this)>var[i];
| ... |
s709548513 | p04043 | C | #include <stdio.h>
#include <stdlib.h>
int
main(int argc. char *argv[])
{
int n1, n2, n3;
scanf("%d %d %d", &n1, &n2, &n3);
if (n1*n2*n3 == 5*7*5)
printf("YES\n");
else
printf("NO\n");
} | main.c:5:14: error: expected ';', ',' or ')' before '.' token
5 | main(int argc. char *argv[])
| ^
|
s623090693 | p04043 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
if((a-5)*(b-5)*(c-7) == 0 || (a-5)*(b-7)*(c-5) == 0 || (a-7)*(b-5)*(c-5) == 0) {
System.out.print("YES");
}else{
... | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s829298725 | p04043 | Java | import java.util.*;
public class ABC042A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N, count5, count7;
count5 = count7 = 0;
for (int i = 0; i < 3; i++) {
N = sc.nextInt();
if (N == 5) {
++count5;
... | Main.java:3: error: class ABC042A is public, should be declared in a file named ABC042A.java
public class ABC042A {
^
1 error
|
s121002324 | p04043 | Java | import java.util.Scanner;
public class ABC_042 {
public static void main(String[] args) {
//整数を三つ受けとる
int number1 = 0;
int number2 = 0;
int number3 = 0;
//
String anser = "NO";
Scanner scan = new Scanner(System.in);
number1 = scan.nextInt();
number2 = scan.nextInt();
numb... | Main.java:3: error: class ABC_042 is public, should be declared in a file named ABC_042.java
public class ABC_042 {
^
1 error
|
s752535178 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a[3];
for(int i=0;i<3;++i){
cin >> a[i];
}
int cnt=3;
int p=2;
int q=1;
for(int i=0;i<3;++i{
if(a[i]==5 && p!=0) { --cnt; --p; }
if(a[i]==7 && q!=0) { --cnt; --q; }
}
if(cnt==0) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:12:28: error: expected ')' before '{' token
12 | for(int i=0;i<3;++i{
| ~ ^
| )
|
s009840938 | p04043 | Java | import java.util.Scanner;
public class MySample {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
int sum = 0;
if(a == 5 || a == 7) {
sum += a;
}
if(b == 5 || b == ... | Main.java:3: error: class MySample is public, should be declared in a file named MySample.java
public class MySample {
^
1 error
|
s116680257 | p04043 | Java | import java.util.Scanner;
public class AtCoder {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
String[] strContena = str.split(" ");
int sum = 0;
if(strContena[0] == "5" || strContena[0] == "7") {
sum += Integer.pa... | Main.java:3: error: class AtCoder is public, should be declared in a file named AtCoder.java
public class AtCoder {
^
1 error
|
s900911397 | p04043 | C++ | #include <iostream>
#include <stdio.h>
int main()
{
int a;
int seven, five;
seven = five = 0;
for ( int i = 0; i < 3; ++i ) {
cin >> a;
if ( a == 7 ) ++seven;
if ( a == 5 ) ++five;
}
if ( seven == 2 && five == 1 ) cout << "Yes\n";
else "No\n";
}
| a.cc: In function 'int main()':
a.cc:12:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
12 | cin >> a;
| ^~~
| 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... |
s325234640 | p04043 | Java | import java.util.Arrays;
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int[] abc = new int[3];
int five =0;
int seven = 0;
String ans = "NO";
for(int i=0;i<3;i++){
int abc[i] = sc.nextInt();
if(abc[... | Main.java:11: error: ']' expected
int abc[i] = sc.nextInt();
^
Main.java:11: error: ';' expected
int abc[i] = sc.nextInt();
^
2 errors
|
s582722779 | p04043 | Java | import java.util.Scanner;
public class Iroha{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
for(int i=0; i<3; i++){
a[i] = sc.nextInt();
}
String yon = "NO";
if(a[0] == 5){
if(a[1] == 5... | Main.java:3: error: class Iroha is public, should be declared in a file named Iroha.java
public class Iroha{
^
1 error
|
s064329716 | p04043 | Java | import java.util.Scanner;
public class Iroha{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
for(int i=0; i<3; i++){
a[i] = sc.nextInt();
}
String yon = "NO";
if(a[0] == 5){
if(a[1] == 5... | Main.java:3: error: class Iroha is public, should be declared in a file named Iroha.java
public class Iroha{
^
1 error
|
s730378197 | p04043 | C | #incude<stdio.h>
it main(void){
int a[3];
scanf("%d %d %d",a[0],a[1],a[2]);
int i;
int count5=0,count7=0;
for(i=0;i<3;i++){
if(a[i]!=5||a[i]!=7){
printf("NO");
break;
}
else if(a[i]==5){
count5++;
}
else if(a[i]==7){
count7++;
}
}
if(count5==2&&count7==1){
... | main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
1 | #incude<stdio.h>
| ^~~~~~
| include
main.c:2:1: error: unknown type name 'it'; did you mean 'int'?
2 | it main(void){
| ^~
| int
main.c: In function 'main':
main.c:4:3: error: implicit declaration of... |
s147085807 | p04043 | C++ | #include <bits/stdc++>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
if(a+b+c==17 && a*b*c == 175)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | a.cc:1:10: fatal error: bits/stdc++: No such file or directory
1 | #include <bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s237575965 | p04043 | C++ | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int)n; ++i)
#define INF 100000000
int main() {
vector<int> q;
rep(i,3) cin >> q.push_back();
sort(q.begin(), q.end());
rep(i,3){
if(i < 2 && q.at(i) != 5){
cout << "NO" << endl;
return 0;... | a.cc: In function 'int main()':
a.cc:11:30: error: no matching function for call to 'std::__debug::vector<int>::push_back()'
11 | rep(i,3) cin >> q.push_back();
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/14/vector:76,
from /usr/include/c++/14/functional:64,
... |
s654839682 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a,a+3)
if(a[0]==5 && a[1]==5 && a[2]==7)
cout << "YES";
else
cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'if'
7 | sort(a,a+3)
| ^
| ;
8 | if(a[0]==5 && a[1]==5 && a[2]==7)
| ~~
a.cc:10:2: error: 'else' without a previous 'if'
10 | else
| ^~~~
|
s303526276 | p04043 | C++ | //大文字->小文字 tolower(),逆はtoupper()
//int a = stoi(c); 文字列をintへ
//途中の出力をそのまま残さない
//数値計算 基本はdouble
//map<キー,値> p は辞書。p[キー] = 値
#include <bits/stdc++.h>
#define ALL(a) (a).begin(),(a).end()
#define ll long long int
using namespace std;
// Nの桁数
ll dig(ll N) {
ll dig = 0;
while (N) {
dig++;
N /= 10;
}
return dig;
}
/... | a.cc: In function 'int main()':
a.cc:34:13: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>')
34 | cin >> a[0] >> a[1] >> a[2];
| ~~~ ^~ ~~~~
| | |
| | std::vector<int>
| ... |
s890707453 | p04043 | C | #include<stdio.h>
int main(void)
{
int A,B,C;
g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
puts("整数を入力してください。");
printf("a:\n");
scanf("%d",&A);
printf("b:\n");
scanf("%d",&B);
printf("c:\n");
scanf("%d",&C);
if(A+B+C==17)
puts("YES");
else
puts("NO");
return 0;
} | main.c: In function 'main':
main.c:5:3: error: 'g' undeclared (first use in this function)
5 | g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
| ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:8: error: 'O2' undeclared (first use in this fu... |
s435779416 | p04043 | C |
int main(void)
{
int A,B,C;
puts("整数を入力してください。");
printf("a:\n"); scanf("%d",&A);
printf("b:\n"); scanf("%d",&B);
printf("c:\n"); scanf("%d",&C);
if(A+B+C==17)
puts("YES");
else
puts("NO");
return 0;
}
#include<stdio.h>
int main(void)
{
int A,B,C;
puts("整数を入力してください。");
print... | main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
6 | puts("整数を入力してください。");
| ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
+++ |+#include <stdio.h>
1 |
main.c:7:3: error: implicit declaration of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.