submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s682714400 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main{
int a,b,c;
cin >> a >> b >> c;
if((a=5&&b=5&&c=7)||(a=5&&b=7&&c=5)||(a=7&&b=5&&c=5)){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
}
| a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
4 | int a,b,c;
| ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:3: erro... |
s707782036 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main{
int a,b,c;
cin >> a >> b >> c;
if((a=5&&b=5&&c=7)||(a=5&&b=7&&c=5)||(a=7&&b=5&&c=5)){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
4 | int a,b,c;
| ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:3: erro... |
s759385048 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main{
int a,b,c;
cin >> a >> b >> c;
if((a=5&&b=5&&c=7)||(a=5&&b=7&&c=5)||(a=7&&b=5&&c=5)){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
5 | int a,b,c;
| ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
4 | int main{
| ^
a.cc:6:3: erro... |
s544310945 | p04043 | C++ | A = int(input())
B = int(input())
C = int(input())
print("YES" if A+B+C == 17 else "NO") | a.cc:1:1: error: 'A' does not name a type
1 | A = int(input())
| ^
|
s092743235 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int count5 = 0;
int count7 = 0;
int a = 0;
for(int i= 0; i < 3; i++){
cin >> a;
if(a == 5){
count5++;
} else if (a == 7) {
count7++;
}
}
if(count5 == 2 && count7 == 1) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
} | a.cc:7:1: error: expected unqualified-id before 'for'
7 | for(int i= 0; i < 3; i++){
| ^~~
a.cc:7:15: error: 'i' does not name a type
7 | for(int i= 0; i < 3; i++){
| ^
a.cc:7:22: error: 'i' does not name a type
7 | for(int i= 0; i < 3; i++){
| ^
a.cc:15:... |
s332674694 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
vector<string>N(A);
for(int i=0;i<A;i++){
cin >> N.at(i);
}
sort(N.begin(),N.end())
string ans;
for (int i = 0; i < N; i++){
ans += N.at(i);
}
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before 'string'
11 | sort(N.begin(),N.end())
| ^
| ;
12 | string ans;
| ~~~~~~
a.cc:13:23: error: no match for 'operator<' (operand types are 'int' and 'std::... |
s697632722 | p04043 | C++ | #include<bits/stdc++.h>
using namepace std;
int main(){
int x,y,z; cin>>x>>y>>z; int tt = 0; int co = 0;
if(x == 5) co++;
else if (x == 7) tt++;
if(y == 5) co++;
else if (y == 7) tt++;
if(z == 5) co++;
else if (z == 7) tt++;
if(co == 2 && tt == 1) cout<<"YES"<<"\n";
else cout<<"NO"<<"\n";
} | a.cc:2:7: error: expected nested-name-specifier before 'namepace'
2 | using namepace std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:4:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int x,y,z; cin>>x>>y>>z; int tt = 0; int co = 0;
| ^~~
| ... |
s630302746 | 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){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '>>' token
6 | int A >> B >> C;
| ^~
a.cc:7:10: error: 'A' was not declared in this scope
7 | cin >> A >> B >> C;
| ^
a.cc:7:15: error: 'B' was not declared in this scope
7 | cin >> A >> B >> C;
... |
s595341490 | 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:6:10: error: 'a' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:20: error: 'c' was not declared in this scope
6 | cin >> a >> b >>... |
s715281569 | p04043 | C++ | a,b,c = sorted(map(int, input().split()))
print("YES" if a==b==5 and c ==7 else "NO") | a.cc:1:1: error: 'a' does not name a type
1 | a,b,c = sorted(map(int, input().split()))
| ^
|
s552338759 | p04043 | Java | import java.util.ArrayList;
import java.util.Scanner;
public class Atc {
public static void main(String[] args) {
Integer x = 5;
Integer y = 7;
boolean b = false;
Scanner sc = new Scanner(System.in);
ArrayList<Integer> inputs = new ArrayList<>() {
{
... | Main.java:4: error: class Atc is public, should be declared in a file named Atc.java
public class Atc {
^
1 error
|
s632809577 | p04043 | Java | import java.util.ArrayList;
import java.util.Scanner;
public class Atc {
public static void main(String[] args) {
Integer x = 5;
Integer y = 7;
boolean isOk = false;
Scanner sc = new Scanner(System.in);
ArrayList<Integer> inputs = new ArrayList<>() {
{
... | Main.java:4: error: class Atc is public, should be declared in a file named Atc.java
public class Atc {
^
1 error
|
s023657433 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int arr[3];
for(int i=0; i<3; i++) cin >> arr[i];
sort(arr, arr+3);
if(arr[0] == 5 && arr[1] == 5 && arr[2] == 7) cout << "YES" << endl;
else cout << "NO" << endl; | a.cc: In function 'int main()':
a.cc:9:29: error: expected '}' at end of input
9 | else cout << "NO" << endl;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s790066187 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a[3];
int se=0;,go=0;
for(int i=0;i<3;i++){
cin >> a[i];
if(a[i]==7) se++;
else if(a[i]==5) go++;
}
cout << (se==1&&go==2?"YES":"NO") << endl;
}
| a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before ',' token
5 | int se=0;,go=0;
| ^
a.cc:5:13: error: 'go' was not declared in this scope
5 | int se=0;,go=0;
| ^~
|
s537590368 | p04043 | C++ | #include<iostream>
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int A, B, C; cin >> A >> B >> C;
if(A*B*C == 5*7*5) cout << "YES";
else cout << "NO";
} | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
3 | cin.tie(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; ///< Linke... |
s120423534 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n, l;
cin >> n >> l;
string a[l];
vector<string> s;
for (int i = 0; i < n; i++) {
cin >> s.at(i);
}
//ソート
bool isEnd = false;
while (!isEnd) {
isEnd = true;
for (i = 0; i < n-1; i++) {
if (string(s.at(i)).compare(s... | a.cc: In function 'int main()':
a.cc:19:10: error: 'i' was not declared in this scope
19 | for (i = 0; i < n-1; i++) {
| ^
a.cc:27:10: error: 'i' was not declared in this scope
27 | for (i = n-1; i > 0; i--) {
| ^
a.cc:38:8: error: 'i' was not declared in this scope
38 | ... |
s341560401 | p04043 | C++ | #include <iostream>
using namespace std;
int s[7];
int main()
{
int a, b, c;
cin >> a >> b >> c;
s[a]++;
s[b]++;
s[c]++;
if(s[5]==2 && s[7]==1) cout << "YES;
else cout << "NO" << endl;
return 0;
} | a.cc:19:34: warning: missing terminating " character
19 | if(s[5]==2 && s[7]==1) cout << "YES;
| ^
a.cc:19:34: error: missing terminating " character
19 | if(s[5]==2 && s[7]==1) cout << "YES;
| ^~~~~
a.cc: In function 'int main()':
... |
s809476006 | p04043 | C++ | #include<iostream>
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a == 5) {
if ((b == 5 && c == 7) || (b == 7 && c == 5)) {
cout << "YES" << endl;
}
} else if (a == 7) {
if (b == c == 5) {
cout << "YES" << endl;
}
} else {
cout << "NO" << endl;
}
} | 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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s949040701 | 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(b==7&&a==5&&c==5){
cout <<"YES"<<endl;
}
else if(c==7&&b==5&&a==5){
cout <<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:17:4: error: expected '}' at end of input
17 | }
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s409222073 | p04043 | C++ | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int n, l;
cin >> n >> l;
vector<string> strlist(n);
int i;
for(i=0;i<n;i++){
cin >> strlist[i];
}
sort(strlist.begin(), strlist.end());
string gattai="";
for(i=0;i<n;i++){
gattai = gattai + strlist[i];
}
cout << gattai;
ret... | a.cc: In function 'int main()':
a.cc:17:1: error: 'sort' was not declared in this scope; did you mean 'short'?
17 | sort(strlist.begin(), strlist.end());
| ^~~~
| short
|
s946787312 | p04043 | C++ | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int n, l;
cin >> n >> l;
vector<string> strlist(n);
int i;
for(i=0;i<n;i++){
cin >> strlist[i];
}
sort(strlist);
string gattai="";
for(i=0;i<n;i++){
gattai = gattai + strlist[i];
}
cout << gattai;
return 0;
} | a.cc: In function 'int main()':
a.cc:17:1: error: 'sort' was not declared in this scope; did you mean 'short'?
17 | sort(strlist);
| ^~~~
| short
|
s408183977 | p04043 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
// cout
int a,b,c,d;
// string s;
cin >> a >> b >> c;
d = a*b*c
if(d == 25*7){
cout << "yes";
}else{
cout << "no";
}
// cin >> b >> c;
// cin >>s;
// cout << (a+b+c) <<" "<< s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'if'
11 | d = a*b*c
| ^
| ;
12 | if(d == 25*7){
| ~~
a.cc:14:2: error: 'else' without a previous 'if'
14 | }else{
| ^~~~
|
s869141052 | p04043 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
// cout
int a,b,c;
// string s;
cin >> a >> b >> c;
d = a*b*c
if(d == 25*7){
cout << "yes";
}else{
cout << "no";
}
// cin >> b >> c;
// cin >>s;
// cout << (a+b+c) <<" "<< s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:1: error: 'd' was not declared in this scope
11 | d = a*b*c
| ^
a.cc:14:2: error: 'else' without a previous 'if'
14 | }else{
| ^~~~
|
s580274909 | p04043 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
// cout
int a,b,c;
// string s;
cin >> a >> b >> c;
d = a*b*c
if(d == 25*7){
cout << "yes"
}else{
cout << "no"
}
// cin >> b >> c;
// cin >>s;
// cout << (a+b+c) <<" "<< s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:1: error: 'd' was not declared in this scope
11 | d = a*b*c
| ^
a.cc:14:2: error: 'else' without a previous 'if'
14 | }else{
| ^~~~
a.cc:15:21: error: expected ';' before '}' token
15 | cout << "no"
| ^
| ... |
s643110884 | p04043 | C++ | #include <stdio.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if ((a + b + c) == 17) {
cout<<"YES"<<endl;
} else {
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
8 | cin>>a>>b>>c;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <stdio.h>
+++ |+#include <iostream>
2 |
a.cc:11:9: er... |
s342664754 | p04043 | C++ | #import <stdio.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:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import <stdio.h>
| ^~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
8 | cin>>a>>b>>c;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fix... |
s716709495 | p04043 | C | #include<stdio.h>
int main(){
int a,b,c;
int s;
scanf("%d %d %d",&a,&b,&c);
s=100*a+10*b+c;
if(s==557||s==575||s==755){
printf("YES")
}else{
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
8 | printf("YES")
| ^
| ;
9 | }else{
| ~
|
s250066340 | p04043 | C++ | #include <iostream>
int main() {
int a, b, c;
cin >> a >> b >> c;
if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==5&&b==5&&c==7)) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; //... |
s075356195 | p04043 | C++ | #inclide<bits/stdc++.h>
using namespace std;
main(){
int a[4] = {0};
scanf("%d %d %d" , &a[0] , &a[1] , &a[2]);
sort(a , a + 3);
if((a[0] == a[1]) && (a[0] == 5) && (a[2] == 7)){
cout << "YES\n";
}
else {
cout << "NO\n";
}
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
1 | #inclide<bits/stdc++.h>
| ^~~~~~~
| include
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
5 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' ... |
s003886806 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c,x;
cin>>a>>b>>c;
x=a+b+c;
if (x == 17){
cout<<"YES"<<endl;
}
else if(x != 17){
cout<<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
18 | }
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s964819800 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c,x;
cin>>a>>b>>c;
x=a+b+c;
if (a)
else if (x == 17){
cout<<"YES"<<endl;
}
else if(x != 17){
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before 'else'
13 | else if (x == 17){
| ^~~~
|
s758762866 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c,x;
cin>>a>>b>>c;
x=a+b+c;
if (a)
else if (x == 17){
cout<<"YES"<<endl;
}
else if(x != 17){
cout<<"NO"<<endl;
}
else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before 'else'
13 | else if (x == 17){
| ^~~~
|
s034823945 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
vector<int> value(3);
for(int i=0; i<3; i++)
cin >> value.at(i);
int five=0,seven=0;
for(int i=0; i<3; i++){
if(value.at(i)==7)
seven++;
else if(value.at(i)==5)
five+;
}
if(five==2 && seven==1)
cout << "YES" << endl;
els... | a.cc: In function 'int main()':
a.cc:13:12: error: expected primary-expression before ';' token
13 | five+;
| ^
|
s620180714 | p04043 | Java | package score100;
import java.util.Scanner;
public class IrohaAndHaiku {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a == b && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7... | Main.java:5: error: class IrohaAndHaiku is public, should be declared in a file named IrohaAndHaiku.java
public class IrohaAndHaiku {
^
1 error
|
s762470580 | p04043 | Java | package score100;
import java.util.Sca入れ替えnner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a == b && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7){
... | Main.java:3: error: cannot find symbol
import java.util.Sca????nner;
^
symbol: class Sca????nner
location: package java.util
Main.java:8: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:8: error: cannot find symbol
S... |
s616127962 | p04043 | Java | package score100;
import java.util.Scanner;
public class IrohaAndHaiku {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a == b && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7... | Main.java:5: error: class IrohaAndHaiku is public, should be declared in a file named IrohaAndHaiku.java
public class IrohaAndHaiku {
^
1 error
|
s688685991 | p04043 | C++ | package score100;
import java.util.Scanner;
public class IrohaAndHaiku {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a == b && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7... | a.cc:1:1: error: 'package' does not name a type
1 | package score100;
| ^~~~~~~
a.cc:3:1: error: 'import' does not name a type
3 | import java.util.Scanner;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
5 | pub... |
s178853192 | p04043 | C++ | #include <iostream>
#include <string>
int main() {
int A, B, C;
if ( A + B == 10 ){
if ( C == 7 ){
cout << "YES" << endl;
}
}
if ( A + C == 10 ){
if ( B == 7 ){
cout << "YES" << endl;
}
}
if ( B + C == 10 ){
if ( A == 7 ){
cout << "YES" << endl;
}
}
else {
... | a.cc: In function 'int main()':
a.cc:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout << "YES" << endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cou... |
s030411842 | p04043 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >>c;
if(a == 5){
if(b == 5){
if(c == 7){
cout << "YES";
return 0;
}
}if(b == 7){
if(c == 5){
cout << "YES";
return 0;
}
}if(a == 7){
if(b == 5){
if(c == ... | a.cc: In function 'int main()':
a.cc:31:2: error: expected '}' at end of input
31 | }
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s946381038 | p04043 | C++ | #include <iostream>
useing namespace std;
int main(){
int a,b,c;
cin >> a >> b >>c;
if(a == 5){
if(b == 5){
if(c == 7){
cout << "YES";
return 0;
}
}if(b == 7){
if(c == 5){
cout << "YES";
return 0;
}
}if(a == 7){
if(b == 5){
if(c ==... | a.cc:3:1: error: 'useing' does not name a type
3 | useing namespace std;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> a >> b >>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iost... |
s856619368 | p04043 | C++ | #include <iostream>
use namespace std;
int main(){
int a,b,c;
cin >> a >> b >>c;
if(a == 5){
if(b == 5){
if(c == 7){
cout << "YES";
return 0;
}
}if(b == 7){
if(c == 5){
cout << "YES";
return 0;
}
}if(a == 7){
if(b == 5){
if(c == 5)... | a.cc:3:1: error: 'use' does not name a type
3 | use namespace std;
| ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> a >> b >>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:1... |
s188815039 | p04043 | C++ | a, b, c = map( int, input() )
if a+b+c != 17:
print( "NO" )
iCountFive = 0
if a = 5:
iCountFive += 1
if b = 5:
iCountFive += 1
if c = 5:
iCountFive += 1
iCountSeven = 0
if a = 7:
iCountSeven += 1
if b = 7:
iCountSeven += 1
if c = 7:
iCountSeven += 1
if iCountFive == 2 and iCountSeven == 1:
print(... | a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = map( int, input() )
| ^
|
s322696975 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> line1(3);
vector<int> p(3) = {5, 5, 7};
for(int i = 0; i < 3; i++){
cin >> line1.at(i);
}
sort(line1.begin(), line1.end());
if(line1 == p){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:20: error: expected ',' or ';' before '=' token
5 | vector<int> p(3) = {5, 5, 7};
| ^
|
s222166966 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> line1(3);
for(int i = 0; i < 3; i++){
cin >> line1.at(i);
}
sort(line1.begin(), line1.end());
vector<int> p(3) = {5, 5, 7};
if(line1 == p){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:20: error: expected ',' or ';' before '=' token
9 | vector<int> p(3) = {5, 5, 7};
| ^
|
s270725134 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> line1(3);
for(int i = 0; i < 3; i++){
cin >> line1.at(i);
}
sort(line1.begin(), line1.end());
vector<int> p(3) = {5, 5, 7}
if(line1 == p){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:20: error: expected ',' or ';' before '=' token
9 | vector<int> p(3) = {5, 5, 7}
| ^
|
s140297649 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> line1(3);
for(int i = 0; i < 3; i++){
cin >> line1.at(i);
}
sort(line1.begin(), line1.end());
if(line1 == {5, 5, 7}){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '{' token
9 | if(line1 == {5, 5, 7}){
| ^
a.cc:9:14: error: expected ')' before '{' token
9 | if(line1 == {5, 5, 7}){
| ~ ^~
| )
|
s804265751 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> line1(3);
for(int i = 0; i < 3; i++){
cin >> line1(i);
}
sort(line1.begin(), line1.end());
if(line1 == {5, 5, 7}){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:17: error: no match for call to '(std::vector<int>) (int&)'
6 | cin >> line1(i);
| ~~~~~^~~
a.cc:9:15: error: expected primary-expression before '{' token
9 | if(line1 == {5, 5, 7}){
| ^
a.cc:9:14: error: expected ')' before '{' t... |
s234391595 | p04043 | C++ | #include <oistream>
using namespace std;
int main(){
vector<int> line1(3);
for(int i = 0; i < 3; i++){
cin >> line1(i);
}
sort(line1.begin(), line1.end());
if(line1 == {5, 5, 7}){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc:1:10: fatal error: oistream: No such file or directory
1 | #include <oistream>
| ^~~~~~~~~~
compilation terminated.
|
s494798624 | 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";
else if(A==5 && B==7 && C==5)
cout<<"YES';
else if(A==7 && B==5 && C==5)
cout<<"YES";
else
cout<<"NO";
return 0;
} | a.cc:11:11: warning: missing terminating " character
11 | cout<<"YES';
| ^
a.cc:11:11: error: missing terminating " character
11 | cout<<"YES';
| ^~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before 'else'
12 | else if(A==7 && B==... |
s743586973 | 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";
else if(a==5 && b==7 && c==5)
cout<<"YES';
else if(a==7 && b==5 && c==5)
cout<<"YES";
else
cout<<"NO";
return 0;
} | a.cc:11:11: warning: missing terminating " character
11 | cout<<"YES';
| ^
a.cc:11:11: error: missing terminating " character
11 | cout<<"YES';
| ^~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before 'else'
12 | else if(a==7 && b==... |
s734352574 | p04043 | C++ | // Created by liszt on 2019/08/01.
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c; cin>>a >>b >>c;
if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)¥¥(a==7&&b==5&&c==5)){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
} | a.cc:7:46: error: extended character ¥ is not valid in an identifier
7 | if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)¥¥(a==7&&b==5&&c==5)){
| ^
a.cc:7:46: error: extended character ¥ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:46: error: e... |
s306849131 | p04043 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
int a,b,c;
int f_num=0,s_num=0;
cin>>a>>b>>c;
if(a==5){
f_num++
}
if(b==5){
f_num++
}
if(c==5){
f_num++
}
if(a==7){
f_num++
}
if(b==7){
f_num++
}
if(c==7){
f_num++
}
if(f_num==2&&s_num=1... | a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
10 | f_num++
| ^
| ;
11 | }
| ~
a.cc:13:12: error: expected ';' before '}' token
13 | f_num++
| ^
| ;
14 | }
| ~
... |
s699548262 | 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";
}else if (a == 5, b == 7, c == 5) {
cout << "YES";
}else if (a == 7, b == 5, c == 5) {
cout << "YES";
}
else {
cout << "NO";
}
| a.cc: In function 'int main()':
a.cc:16:10: error: expected '}' at end of input
16 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s170399046 | p04043 | C | //set many funcs template
//Ver.20190714
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | main.c:16:5: warning: conflicting types for built-in function 'round'; expected 'double(double)' [-Wbuiltin-declaration-mismatch]
16 | int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
| ^~~~~
main.c:8:1: note: 'round' is declared in header '<math.h>'
7 | #include<time.h>
+++ |+#in... |
s714118119 | p04043 | Java | package atCoder;
import java.util.Scanner;
public class Atcoder {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();
if(a+b+c==17) {
System.out.println("YES");
}else {
System.out.println("NO");... | Main.java:5: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder {
^
1 error
|
s156466640 | p04043 | C++ | #include "Test.h"
#include <iostream>
using namespace std;
int main() {
char a;
char b;
char c;
cin >> a >> b >> c;
int sum = atoi(&a)+ atoi(&b) + atoi(&c) ;
if (sum == 17 && (a == '5' || a == '7') && (b == '5' || b == '7') && (c == '5' || c == '7')) {
cout << "YES";
}
else {
cout << "NO";
}
return 0;
} | a.cc:1:10: fatal error: Test.h: No such file or directory
1 | #include "Test.h"
| ^~~~~~~~
compilation terminated.
|
s276132984 | p04043 | Java | import java.util.*;
public calss Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
boolean isAB5C7 = (a==5 && b==5 && c==7);
boolean isBC5A7 = (a==7 && b==5 && c==5);
boolean isCA5B7 = (a==5 && b==7 && ... | Main.java:3: error: class, interface, enum, or record expected
public calss Main{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
^
(use --enable-preview to enable unnamed classes)
Main.java:20: error: class, inter... |
s813178830 | p04043 | Java | import java.util.*;
calss Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
boolean isAB5C7 = (a==5 && b==5 && c==7);
boolean isBC5A7 = (a==7 && b==5 && c==5);
boolean isCA5B7 = (a==5 && b==7 && c==5);
... | Main.java:3: error: class, interface, enum, or record expected
calss Main{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
^
(use --enable-preview to enable unnamed classes)
Main.java:20: error: class, interface, enum, or... |
s947006140 | p04043 | C++ | #include<bits/stdc++.h>
int main(){
int a,b,c
cin>>a>>b>>c;
if(1=<a&&c>=10){
if((a==5&&b==5&&a==7)||(a==5&&c==5&&b==7)||(b==5&&c==5&&a==7)){
cout<<YES<<endl;
}
else{
cout<<NO<<endl;
}
else{
cout<<no<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:4:5: error: expected initializer before 'cin'
4 | cin>>a>>b>>c;
| ^~~
a.cc:5:8: error: expected primary-expression before '<' token
5 | if(1=<a&&c>=10){
| ^
a.cc:5:12: error: 'c' was not declared in this scope
5 | if(1=<a&&c>=10){
| ... |
s098063343 | p04043 | C | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((a==5&&b==7&&C==5)||(b==5&&c==7&&a==5)||(c==5&&a==7&&b==5)){
printf("YES\n");
}
else{
printf("NO\n");
}
} | main.c: In function 'main':
main.c:5:19: error: 'C' undeclared (first use in this function)
5 | if((a==5&&b==7&&C==5)||(b==5&&c==7&&a==5)||(c==5&&a==7&&b==5)){
| ^
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
|
s446007616 | p04043 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(){
int l, i=0;
vector<int> a;
vector<int> b = {5, 5, 7};
while(i<3){
cin >> l;
a.push_back(l);
i++;
}
sort(a.begin(), a.end());
if(a==b)
cout << "YES";
else
cout << "NO"... | a.cc: In function 'int main()':
a.cc:16:5: error: 'sort' was not declared in this scope; did you mean 'short'?
16 | sort(a.begin(), a.end());
| ^~~~
| short
|
s076373278 | p04043 | C | #include <stdio.h>
int main(){
int a[3];
scanf("%d %d %d",&a[0],&a[1],&a[2]);
int five=0,sevne=0;
int i;
for(i=0;i<3;i++){
if(a[i]==5){
five++;
}else if(a[i]==7){
sevne++;}
}
if(five==2 && sevne==1){
printf("YES\n");
}else{
printf("NO\n")
}
return(0);
}
| main.c: In function 'main':
main.c:17:17: error: expected ';' before '}' token
17 | printf("NO\n")
| ^
| ;
18 | }
| ~
|
s416808783 | p04043 | C | #include <stdio.h>
int main(){
int a[3];
scanf("%d %d %d",a);
int five=0,sevne=0;
int i;
for(i=0;i<3;i++){
if(a[i]==5){
five++;
}else if(a[i]==7){
sevne++;}
}
if(five==2 && sevne==1){
printf("YES\n");
}else{
printf("NO\n")
}
return(0);
} | main.c: In function 'main':
main.c:17:17: error: expected ';' before '}' token
17 | printf("NO\n")
| ^
| ;
18 | }
| ~
|
s523638675 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,ans=0;
cin>>a>>b>>c;
vextor<int>v={a,b,c};
for(int i = 0;i<3;i++)
if(v.at(i)=='5')ans++;
if(ans==2)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'vextor' was not declared in this scope
6 | vextor<int>v={a,b,c};
| ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
6 | vextor<int>v={a,b,c};
| ^~~
a.cc:8:8: error: 'v' was not declared in this scope
8 | if(v.a... |
s808695056 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int temp;
int l1,l2;
l1=0;
l2=0;
for(int i=0;i<3;i++)
{
cin >> temp;
if(temp==5)
l1++;
else if(temp==7)
l2++;
}
if((l1==2)&&(l2==1)))
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:17:23: error: expected primary-expression before ')' token
17 | if((l1==2)&&(l2==1)))
| ^
|
s132588272 | p04043 | C++ | A=list(map(int,input().split()))
a,b,c,d,e=A[0],A[1],A[2],0,0
if a==5:
d+=1
if b==5:
d+=1
if c==5:
d+=1
if a==7:
e+=1
if b==7:
e+=1
if c==7:
e+=1
if d==2 and e==1:
print('YES')
else:
print('NO') | a.cc:16:11: warning: multi-character character constant [-Wmultichar]
16 | print('YES')
| ^~~~~
a.cc:18:11: warning: multi-character character constant [-Wmultichar]
18 | print('NO')
| ^~~~
a.cc:1:1: error: 'A' does not name a type
1 | A=list(map(int,input().split()))
... |
s767909098 | p04043 | C | #include <stdio.h>
int main(){
int i,L,n,max=0;
char s[101][101];
scanf("%d%d",&n,&L);
for(i=0;i<n;i++){
for(int j = 0; j < L; j++){
scanf("%c",s[i][j]);
}
}
sort(s,s+n);
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
printf("%s",s[i][j]);
}
}
printf("\n");
return 0;
}
| main.c: In function 'main':
main.c:14:1: error: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
14 | sort(s,s+n);
| ^~~~
main.c:16:22: error: 'l' undeclared (first use in this function)
16 | for(int j = 0; j < l; j++){
| ^
main.c:16:22: note: each undec... |
s679584893 | p04043 | C | #include <stdio.h>
int main(void){
int A,B,C,;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
if(A+B+C==17&&A==7||B==7||C==7&&A==B||B==C||C==A)
printf("YES\n");
else
printf("NO\n");
return 0;
}
| main.c: In function 'main':
main.c:5:13: error: expected identifier or '(' before ';' token
5 | int A,B,C,;
| ^
|
s706328275 | p04043 | Java |
import java.util.Scanner;
public class IrohaAndHaiku{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int fiv = 0;
int sev = 0; //初期値設定
for(int i = 0; i < 3; i++) {
int num = sc.nextInt();//入力値
switch(num){ //
... | Main.java:4: error: class IrohaAndHaiku is public, should be declared in a file named IrohaAndHaiku.java
public class IrohaAndHaiku{
^
1 error
|
s422108290 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, sum;
cin >> a >> b >> c;
sum = a+b+c;
if sum == 17{
cout << "YES" << "\n";
}else{
cout << "NO" << "\n";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before 'sum'
10 | if sum == 17{
| ^~~
| (
a.cc:12:6: error: 'else' without a previous 'if'
12 | }else{
| ^~~~
|
s981938835 | p04043 | C | #include<iostream>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<vector>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a*b*c==175)
cout << "YES" << endl;
else
cout << "NO" << endl;
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s696979428 | p04043 | Java | public static void main (String[] args) {
int A;
int B;
int C;
int i = A * B * C;
if (i == 175) {
System.out.println ("Yes");
} else {
System.out.println ("No");
}
} | 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
|
s840528925 | p04043 | Java | public class at_iroha {
public static void main (String[] args) {
int A;
int B;
int C;
int i = A * B * C;
if (i == 175) {
System.out.println ("Yes");
} else {
System.out.println ("No");
}
}
} | Main.java:1: error: class at_iroha is public, should be declared in a file named at_iroha.java
public class at_iroha {
^
1 error
|
s367145958 | p04043 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <regex>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
int f, s;
if(a == 7)s++;
if(a == 5)f++;
if(b == 7)s++;
if(b == 5)f++;
if(c == 7)s++;
if(c == 5)f++;
if ( f == 2 && s == 1)cout << "YES";
else cout << "NO... | a.cc: In function 'int main()':
a.cc:12:8: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
12 | if(a == 7)s++;
| ~ ^~ ~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file ... |
s166215235 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int vector<int> num(3);
cin<<num[0]<<num[1]<<num[2];
sort(num.begin(),num.end());
if(num[0]==5 && num[1]==5 && num[2]==7){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:19: error: invalid declarator before 'num'
4 | int vector<int> num(3);
| ^~~
a.cc:5:8: error: 'num' was not declared in this scope; did you mean 'enum'?
5 | cin<<num[0]<<num[1]<<num[2];
| ^~~
| enum
|
s602510862 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> num(3);
num<<cin;
sort(num.begin(),num.end());
if(num[0]==5 && num[1]==5 && num[2]==7){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:6: error: no match for 'operator<<' (operand types are 'std::vector<int>' and 'std::istream' {aka 'std::basic_istream<char>'})
5 | num<<cin;
| ~~~^~~~~
| | |
| | std::istream {aka std::basic_istream<char>}
| std::vector<int>
In file incl... |
s199264372 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define f first
#define s second
#define all(container) container.begin(),container.end()
#define fast ios::sync_with_stdio(0); cin.tie(0)
int32_t main(){
fast;
int a,b,c; cin >> a >> b >> c;
int ar[11]={0}; ar[a]++... | a.cc: In function 'int32_t main()':
a.cc:16:41: error: expected ';' before 'ar'
16 | int ar[11]={0}; ar[a]++; ar[b]++ ar[c]++;
| ^~~
| ;
|
s492748467 | p04043 | C++ | l = list(map(int, input().split()))
if(l.count(5)==2 and l.count(7)==1):
print("YES")
else:
print("NO") | a.cc:1:1: error: 'l' does not name a type
1 | l = list(map(int, input().split()))
| ^
|
s623940215 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> p[3];
for (int i=0;i<3;++i) cin >> p[i];
sort(p.begin(), p.end());
bool ans = false;
if (p[0] == 5 && p[1] == 5 && p[2] == 7) ans = true;
if (ans) cout << "YES" << endl;
else cout << "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:6:29: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>')
6 | for (int i=0;i<3;++i) cin >> p[i];
| ~~~ ^~ ~~~~
| | |
| ... |
s210501160 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vecotr<int> p[3];
for (int i=0;i<3;++i) cin >> p[i];
sort(p.begin(), p.end());
bool ans = false;
if (p[0] == 5 && p[1] == 5 && p[2] == 7) ans = true;
if (ans) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'vecotr' was not declared in this scope
5 | vecotr<int> p[3];
| ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
5 | vecotr<int> p[3];
| ^~~
a.cc:6:32: error: 'p' was not declared in this scope
6 | for (int i=0;i<... |
s381923059 | p04043 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> vec(3);
for(i = 0;i < 3; i++){
cin >> vec[i];
}
sort(vec.begin(),vec.end());
if(vec[0] == 5 && vec[1] == 5 && vec[2] == 7){
cout << "YES" <<endl;
}
else {
cout << "N... | a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
9 | for(i = 0;i < 3; i++){
| ^
|
s293943260 | p04043 | Java | import java.util.*;
public class Main{
public void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int[] a = new int[3];
count5 = 0;
count7 = 0;
for(int i = 0;i < 3;i++){
a[i] = stdIn.nextInt();
if(a[i] == 5)
count5 += 1;
else if(a[i] ==7)
count7 +=... | Main.java:7: error: cannot find symbol
count5 = 0;
^
symbol: variable count5
location: class Main
Main.java:8: error: cannot find symbol
count7 = 0;
^
symbol: variable count7
location: class Main
Main.java:12: error: cannot find symbol
count5 += 1;
^
symbol: variable coun... |
s330140287 | p04043 | Java | import java.util.*;
public class Main{
public void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int[] a = new int[];
count5 = 0;
count7 = 0;
for(int i = 0;i < 3;i++){
a[i] = stdIn.nextInt();
if(a[i] == 5)
count5 += 1;
else if(a[i] ==7)
count7 += 1... | Main.java:6: error: array dimension missing
int[] a = new int[];
^
1 error
|
s901523192 | p04043 | Java | import java.util.Scanner;
public class Haiku {
public static void main(String[] args) {
int five = 0;
int seven = 0;
Scanner sc = new Scanner(System.in);
for(int i = 0; i < 3; i++) {
int num = Integer.parseInt(sc.next());
switch(num) {
case 5:
five++;
break;
case 7:
seven++;
... | Main.java:3: error: class Haiku is public, should be declared in a file named Haiku.java
public class Haiku {
^
1 error
|
s091121062 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int S ;
cin S;
for ( char c = 'a';c <= 'z' ; c++){
bool found = false;
for (int i=0; i < S.length();i++){
if(S[i]==c){
found= true;
}
}
if (! found){
cout << c << endl;
return 0;
}
}
cout << "None" <... | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'S'
6 | cin S;
| ^~
| ;
a.cc:11:25: error: request for member 'length' in 'S', which is of non-class type 'int'
11 | for (int i=0; i < S.length();i++){
| ^~~~~~
a.cc:12:11: error: invali... |
s557387215 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int S ;
cin S;
for ( char c = 'a';c <= 'z' ; c++){
bool found = false;
for (int i=0; i < S.size();i++){
if(S[i]==c){
found= true;
}
}
if (! found){
cout << c << endl;
return 0;
}
}
cout << "None" << ... | a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'S'
6 | cin S;
| ^~
| ;
a.cc:11:25: error: request for member 'size' in 'S', which is of non-class type 'int'
11 | for (int i=0; i < S.size();i++){
| ^~~~
a.cc:12:11: error: invalid type... |
s684295094 | p04043 | C | #include <stdio.h>
int main(){
int a;
for(int i=0;i<3;i++){
scanf("%d",&a);
switch(a){
case 5:
b++;
break;
case 7:
c++;
break;
default:
puts("NO");
return 0;
break;
}
if(b==2&&c==1)puts("YES");
}
return 0;
} | main.c: In function 'main':
main.c:8:9: error: 'b' undeclared (first use in this function)
8 | b++;
| ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: 'c' undeclared (first use in this function)
11 | c++;
... |
s003119600 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string L;
cin >> L;
vector<int> S(i)
for (int i = 0; i < L; i++) {
cin >> Si;
}
vector<int> vec = {for(int i=0; i <L; i++)};
sort (vec.begin(), vec.end());
for (int i = 0; i < L; i++) {
cout << Si << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 'i' was not declared in this scope
7 | vector<int> S(i)
| ^
a.cc:8:6: error: expected ',' or ';' before 'for'
8 | for (int i = 0; i < L; i++) {
| ^~~
a.cc:12:22: error: expected primary-expression before 'for'
12 | ve... |
s846452008 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string L;
cin >> L;
vector<int> Si
for (int i = 0; i < L; i++) {
cin >> Si;
}
vector<int> vec = {for(int i=0; i <L; i++)};
sort (vec.begin(), vec.end());
for (int i = 0; i < L; i++) {
cout << Si << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:6: error: expected initializer before 'for'
8 | for (int i = 0; i < L; i++) {
| ^~~
a.cc:8:22: error: 'i' was not declared in this scope
8 | for (int i = 0; i < L; i++) {
| ^
a.cc:12:22: error: expected primary-expression bef... |
s274081701 | p04043 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) ... | a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
65 | if(v=={5,5,7}){cout << "YES"<<endl;}
| ^
a.cc:65:7: error: expected ')' before '{' token
65 | if(v=={5,5,7}){cout << "YES"<<endl;}
| ~ ^
| )
a.cc: In function 'long long int dig(lo... |
s088774699 | p04043 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) ... | a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
65 | if(v=={5,5,7}){cout << "YES"<<endl;}
| ^
a.cc:65:7: error: expected ')' before '{' token
65 | if(v=={5,5,7}){cout << "YES"<<endl;}
| ~ ^
| )
a.cc: In function 'long long int dig(lo... |
s733889240 | p04043 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) ... | a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
65 | if(v=={5,5,7}){cout << "YES"<<endl;}
| ^
a.cc:65:7: error: expected ')' before '{' token
65 | if(v=={5,5,7}){cout << "YES"<<endl;}
| ~ ^
| )
a.cc: In function 'long long int dig(lo... |
s420623497 | p04043 | C++ | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) ... | a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
65 | if(v=={5,5,7}){cout << YES<<endl;}
| ^
a.cc:65:7: error: expected ')' before '{' token
65 | if(v=={5,5,7}){cout << YES<<endl;}
| ~ ^
| )
a.cc:65:24: error: 'YES' was not declared i... |
s041225345 | p04043 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int anko = max({a,b,c});
int maojini == a+b+c;
if(maojini == 17 && anko == 7 && (maojini-anko)/2==5 ) cout << "YES";
else cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:15: error: expected initializer before '==' token
8 | int maojini == a+b+c;
| ^~
a.cc:9:6: error: 'maojini' was not declared in this scope; did you mean 'main'?
9 | if(maojini == 17 && anko == 7 && (maojini-anko)/2==5 ) cout << "YES";
| ^... |
s876963255 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int d = 0;
vector<int> s(3);
for (int i = 0; i < 3; i++) {
cin >> s[i];
sort(s.begin(), s.end());
}
}
if (s[0]==5 & s[1]==5 & s[2]==7) {
d=1;
if (d==1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc:11:1: error: expected unqualified-id before 'if'
11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
| ^~
|
s428049999 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> s(3);
for (int i = 0; i < 3; i++) {
cin >> s[i];
sort(s.begin(), s.end());
}
}
int d = 0
if (s[0]==5 & s[1]==5 & s[2]==7) {
d=1;
if (d==1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc:11:1: error: expected ',' or ';' before 'if'
11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
| ^~
|
s246179294 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> s(3);
for (int i = 0; i < 3; i++) {
cin >> s[i];
sort(s.begin(), s.end());
}
}
int d = 0;
if (s[0]==5 & s[1]==5 & s[2]==7) {
d=1;
if (d==1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc:11:1: error: expected unqualified-id before 'if'
11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
| ^~
|
s061589383 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> s(3);
for (int i = 0; i < 3; i++) {
cin >> s[i];
sort(s.begin(), s.end());
}
}
int d=0;
if (s[0]==5 & s[1]==5 & s[2]==7) {
d=1;
if (d==1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc:11:3: error: expected unqualified-id before 'if'
11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
| ^~
|
s656087636 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> s(3);
for (int i = 0; i < 3; i++) {
cin >> s[i];
sort(s.begin(), s.end());
}
d=0
if (s[0]==5 & s[1]==5 & s[2]==7) {
d=1;
if (d==1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'd' was not declared in this scope
9 | d=0
| ^
a.cc:18:2: error: expected '}' at end of input
18 | }
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s350096005 | p04043 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> s(3);
for (int i = 0; i < 3; i++) {
cin >> s[i];
sort(s.begin(), v.end());
}
d=0
if (s[0]==5 & s[1]==5 & s[2]==7) {
d=1;
if (d==1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:19: error: 'v' was not declared in this scope
7 | sort(s.begin(), v.end());
| ^
a.cc:9:3: error: 'd' was not declared in this scope
9 | d=0
| ^
a.cc:18:2: error: expected '}' at end of input
18 | }
| ^
a.cc:3:12: note: to match... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.