submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s869414446
|
p04043
|
Java
|
import java.util.Scanner;
class Main{
public static void main(String args [])
{
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int array[] = new int[3];
array[0]=a;
array[1]=b;
array[2]=c;
int five =0,seven=0;
for(int i =0; i<3;i++)
{
if(array[i]==5)five++;
else if(array[i]==7) seven++;
}
if(five==2 && seven=1) System.out.println("YES");
else System.out.println("NO");
}
}
import java.util.Scanner;
class Main{
public static void main(String args [])
{
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int array[] = new int[3];
array[0]=a;
array[1]=b;
array[2]=c;
int five =0,seven=0;
for(int i =0; i<3;i++)
{
if(array[i]==5)five++;
else if(array[i]==7) seven++;
}
if(five==2 && seven==1) System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:24: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
|
s588634738
|
p04043
|
Java
|
import java.util.Scanner;
class Main{
public static void main(String args [])
{
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int array[] = new int[3];
array[0]=a;
array[1]=b;
array[2]=c;
int five =0,seven=0;
for(int i =0; i<3;i++)
{
if(array[i]==5)five++;
else if(array[i]==7) seven++;
}
if(five==2 && seven=1) System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:20: error: bad operand types for binary operator '&&'
if(five==2 && seven=1) System.out.println("YES");
^
first type: boolean
second type: int
1 error
|
s192490137
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int s= 0,a,b,c;
cin>>a>>b>>c;
if(a ==5 && b==5 || b == 5 && c == 5 || a == 5 && c = 5){
s ++;
}
if(a == 7||b==7||c==7){
s++;
}
if(s == 2)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:6:46: error: lvalue required as left operand of assignment
6 | if(a ==5 && b==5 || b == 5 && c == 5 || a == 5 && c = 5){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
|
s086364715
|
p04043
|
Java
|
import java.util.Arrays;
import java.util.Scanner;
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
Arrays.sort(arr);
if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
System.out.println("YES");
}else {
System.out.println("NO");
}
keyboard.close();
}
|
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s888332460
|
p04043
|
Java
|
import java.util.Arrays;
import java.util.Scanner;
public class Amondai {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
Arrays.sort(arr);
if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
System.out.println("YES");
}else {
System.out.println("NO");
}
keyboard.close();
}
}
|
Main.java:4: error: class Amondai is public, should be declared in a file named Amondai.java
public class Amondai {
^
1 error
|
s062287449
|
p04043
|
C++
|
import java.util.Arrays;
import java.util.Scanner;
public class Amondai {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
Arrays.sort(arr);
if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
System.out.println("YES");
}else {
System.out.println("NO");
}
keyboard.close();
}
}
|
a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Arrays;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.Scanner;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
4 | public class Amondai {
| ^~~~~~
|
s068219252
|
p04043
|
C++
|
package rensyuu;
import java.util.Arrays;
import java.util.Scanner;
public class Amondai {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int SideA = keyboard.nextInt();
int SideB = keyboard.nextInt();
int SideC = keyboard.nextInt();
int[] arr = new int[] {SideA, SideB, SideC};
Arrays.sort(arr);
if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
System.out.println("YES");
}else {
System.out.println("NO");
}
keyboard.close();
}
}
|
a.cc:1:1: error: 'package' does not name a type
1 | package rensyuu;
| ^~~~~~~
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.Arrays;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.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 | public class Amondai {
| ^~~~~~
|
s416185542
|
p04043
|
C++
|
#include<iostream>
int main(){
int a,b,c;
cin >> a >> b >> c;
int N = 0;
int M = 0;
int count(int d){
if(d == 5){
N++;
}else if(d == 7){
M++;
}
}
count(a);
count(b);
count(c);
if(N ==2){
if(M == 1){
cout >> Yes >> endl;
}else{
cout >> No >> endl;
}
else if(N == 1){
if(M == 2){
cout >> Yes >> endl;
}else{
cou >> No >> endl;
}
}else{
cout >> No >> endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:10:19: error: a function-definition is not allowed here before '{' token
10 | int count(int d){
| ^
a.cc:18:3: error: 'count' was not declared in this scope
18 | count(a);
| ^~~~~
a.cc:24:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
24 | cout >> Yes >> endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:24:15: error: 'Yes' was not declared in this scope
24 | cout >> Yes >> endl;
| ^~~
a.cc:24:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
24 | cout >> Yes >> endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:26:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
26 | cout >> No >> endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:26:15: error: 'No' was not declared in this scope; did you mean 'N'?
26 | cout >> No >> endl;
| ^~
| N
a.cc:26:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
26 | cout >> No >> endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:28:5: error: expected '}' before 'else'
28 | else if(N == 1){
| ^~~~
a.cc:22:12: note: to match this '{'
22 | if(N ==2){
| ^
a.cc:30:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
30 | cout >> Yes >> endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:30:17: error: 'Yes' was not declared in this scope
30 | cout >> Yes >> endl;
| ^~~
a.cc:30:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
30 | cout >> Yes >> endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:32:9: error: 'cou' was not declared in this scope
32 | cou >> No >> endl;
| ^~~
a.cc:32:16: error: 'No' was not declared in this scope; did you mean 'N'?
32 | cou >> No >> endl;
| ^~
| N
a.cc:32:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
32 | cou >> No >> endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:35:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
35 | cout >> No >> endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:35:15: error: 'No' was not declared in this scope; did you mean 'N'?
35 | cout >> No >> endl;
| ^~
| N
a.cc:35:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
35 | cout >> No >> endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s270013563
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N, L;
cin >> N >> L;
string s[N];
for (int i = 0; i < N; i++) cin >> s[i];
sort(s, s + N);
for (int i = 0; i < N; i++) cout << s[i];
cout << << endl;
}
|
a.cc: In function 'int main()':
a.cc:14:11: error: expected primary-expression before '<<' token
14 | cout << << endl;
| ^~
|
s638453754
|
p04043
|
C++
|
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int N, L;
cin >> N >> L;
vector<string> str(N);
for (int i = 0; i < N; i++) cin >> str.at(i);
sort(str.begin(), str.end() );
for (int i = 0; i < N; i++) cout << str.at(i);
cout << "" << endl;
}
|
a.cc: In function 'int main()':
a.cc:13:3: error: 'sort' was not declared in this scope; did you mean 'short'?
13 | sort(str.begin(), str.end() );
| ^~~~
| short
|
s690999454
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a==5)or(a==7))
and ((b==5)or(b==7))
and ((c==5)or(c==7))
and (a+b+c==17)cout<<"YES";
else cout<<"NO";
}
|
a.cc: In function 'int main()':
a.cc:8:9: error: expected identifier before '(' token
8 | and ((b==5)or(b==7))
| ^
|
s593010876
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==5)or(a==7)
if(b==5)or(b==7)
if(c==5)or(c==7)
if(a+b+c==17)cout<<"YES"
else cout<<"NO"
}
|
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'or' token
7 | if(a==5)or(a==7)
| ^~
|
s206906910
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
if( A == 5){
if(B == 5 && C == 7 || B == 7 && C == 5){
cout << "YES" << endl;
}
else if(A == 7){
if(B == 5 && C == 5){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
}
|
a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s064465725
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
if( A == 5){
if(B == 5 && C == 7 || B == 7 && C == 5){
cout >> "YES" >> endl;
}
else if(A == 7){
if(B == 5 && C == 5){
cout >> "YES" >> endl;
}
else{
cout >> "NO" >> endl;
}
}
}
|
a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | cout >> "YES" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
9 | cout >> "YES" >> endl;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:9:21: required from here
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _T
|
s330306307
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
if( A == 5){
if(B == 5 && C == 7 || B == 7 && C == 5){
cout >> 'YES' >> endl;
}
else if(A == 7){
if(B == 5 && C == 5){
cout >> 'YES' >> endl;
}
else{
cout >> 'NO' >> endl;
}
}
}
|
a.cc:9:21: warning: multi-character character constant [-Wmultichar]
9 | cout >> 'YES' >> endl;
| ^~~~~
a.cc:13:21: warning: multi-character character constant [-Wmultichar]
13 | cout >> 'YES' >> endl;
| ^~~~~
a.cc:16:17: warning: multi-character character constant [-Wmultichar]
16 | cout >> 'NO' >> endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
9 | cout >> 'YES' >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
a.cc:9:18: note: candidate: 'operator>>(int, int)' (built-in)
9 | cout >> 'YES' >> endl;
| ~~~~~^~~~~~~~
a.cc:9:18: note: no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
9 | cout >> 'YES' >> endl;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = int]':
a.cc:9:21: required from here
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:9:21: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> 'YES' >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill
|
s056959814
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[];
cin >> a[0] >> a[1] >> a[2];
int count_5 = 0;
int count_7 = 0;
for( int i = 0; i < 3; i++ ) {
if( a[i] == 5 )
count_5++;
else if( a[i] == 7 )
count_7++;
}
if( count_5 == 2 && count_7 == 1 )
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:7: error: storage size of 'a' isn't known
6 | int a[];
| ^
|
s267020853
|
p04043
|
C++
|
cnt=[0 for i in range(11)]
for i in input().split():
cnt[int(i)]+=1
if cnt[5]==2 and cnt[7]==1:
print('YES')
else:
print('NO')
|
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
5 | print('YES')
| ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
7 | print('NO')
| ^~~~
a.cc:1:1: error: 'cnt' does not name a type; did you mean 'int'?
1 | cnt=[0 for i in range(11)]
| ^~~
| int
|
s370228804
|
p04043
|
Java
|
import java.util.Scanner;
public class AtcoderABC42A {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = 0;
int b = 0;
for (int i = 0; i < 3; i++) {
int value = input.nextInt();
if (value == 5)
a++;
if (value == 7)
b++;
}
if (a == 2 && b == 7)
System.out.println("YES");
else
System.out.println("NO");
}
}
|
Main.java:3: error: class AtcoderABC42A is public, should be declared in a file named AtcoderABC42A.java
public class AtcoderABC42A {
^
1 error
|
s447721789
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main (){
vector<int> a;
for(int i=0;i<3;i++){
cin>>a.at(i);
}
sort(a.begin(),a.end())
if(a.at(0)=5&&a.at(1)==5&&a.at(2)==7){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before 'if'
8 | sort(a.begin(),a.end())
| ^
| ;
9 | if(a.at(0)=5&&a.at(1)==5&&a.at(2)==7){
| ~~
a.cc:12:3: error: 'else' without a previous 'if'
12 | else{
| ^~~~
|
s870143671
|
p04043
|
C
|
#inlcude <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a+b+c == 17){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
}
|
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <stdio.h>
| ^~~~~~~
| include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | #inlcude <stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
7 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
9 | printf("YES\n");
| ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
11 | printf("NO\n");
| ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s299554823
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
vector<int> vec(3);
vec.at(0) = A;
vec.at(1) = B;
vec.at(2) = C;
sort(vec.begin(),vec.end());
if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 )
cout << "YES" << endl;
else
cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:14:61: error: expected ';' before 'cout'
14 | if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 )
| ^
| ;
15 | cout << "YES" << endl;
| ~~~~
a.cc:16:3: error: expected primary-expression before 'else'
16 | else
| ^~~~
a.cc:15:27: error: expected ')' before 'else'
15 | cout << "YES" << endl;
| ^
| )
16 | else
| ~~~~
a.cc:14:5: note: to match this '('
14 | if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 )
| ^
|
s058441431
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
vector<int> vec(3);
vec.at(0) = A;
vec.at(1) = B;
vec.at(2) = C;
sort(vec.begin(),vec.end());
if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 ) {
cout << "YES" << endl;
else
cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:14:61: error: expected ')' before '{' token
14 | if( ( vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7 ) {
| ~ ^~
| )
a.cc:19:2: error: expected statement at end of input
19 | }
| ^
a.cc:19:2: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s882663503
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
int count5 = 0, count7 = 0;
if( A = 5 ) {
count5++;
}
if( B = 5 ) {
count5++;
}
if( C = 5 ) {
count5++;
}
if( A = 7 ) {
count7++;
}
if( B = 7 ) {
count5++;
}
if( C = 7 ) {
count5++;
}
if( count5 == 2 && count == 1)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:28:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
28 | if( count5 == 2 && count == 1)
| ~~~~~~^~~~
|
s075854134
|
p04043
|
C++
|
#include <iostream>
#include <vector>
using namespace std;
// define
#define ALL(x) x.begin(), x.end()
// functions
int ceil(int a, int b) {return (a + b - 1) / b;}
int round(int a, int b) {return (a + b / 2) / b;}
int gcd(int a, int b) {return b ? gcd(b, a % b) : a;}
int lcm(int a, int b) {return a * b / gcd(a, b);}
// =============== main =============== //
int main()
{
vector<int> v(3); cin >> v[0] >> v[1] >> v[2];
sort(ALL(v));
if (v[0]==5 && v[1]==5 && v[2]==7) cout << "YES" << endl;
else cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:19:3: error: 'sort' was not declared in this scope; did you mean 'short'?
19 | sort(ALL(v));
| ^~~~
| short
|
s540219414
|
p04043
|
C++
|
#include<iostream>
#include<vector>
#include<algorithm>
int main(){
vector<int> a;
int A;
cin >> A; a.emplace_back(A);
cin >> A; a.emplace_back(A);
cin >> A; a.emplace_back(A);
sort(a.begin(),a.end());
if(a[0]==5 && a[1]==5 && a[2]==7)
cout << "YES" <<endl;
else
cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:5:9: error: 'vector' was not declared in this scope
5 | vector<int> a;
| ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/14/vector:93:13: note: 'std::pmr::vector'
93 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
a.cc:5:16: error: expected primary-expression before 'int'
5 | vector<int> a;
| ^~~
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> A; a.emplace_back(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 to standard input
| ^~~
a.cc:7:19: error: 'a' was not declared in this scope
7 | cin >> A; a.emplace_back(A);
| ^
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
10 | sort(a.begin(),a.end());
| ^~~~
| std::sort
In file included from /usr/include/c++/14/algorithm:86,
from a.cc:3:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << "YES" <<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout << "YES" <<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | cout << "NO" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | cout << "NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s303771918
|
p04043
|
C++
|
a = list(map(int, raw_input().split()))
a.sort()
if a == [5,5,7]:
print("YES")
else:
print("NO")
|
a.cc:1:1: error: 'a' does not name a type
1 | a = list(map(int, raw_input().split()))
| ^
|
s979834577
|
p04043
|
C++
|
a = list(map(int, input().split()))
a.sort()
if a == [5,5,7]:
print("YES")
else:
print("NO")
|
a.cc:1:1: error: 'a' does not name a type
1 | a = list(map(int, input().split()))
| ^
|
s044257929
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int>X(3);
cin >> X;
sort(X.begin(),X.end());
if(X.at(0) == X.at(1) && X.at(1) == 5 && X.at(2) == 7){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:5:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>')
5 | cin >> X;
| ~~~ ^~ ~
| | |
| | std::vector<int>
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from 'std::vector<int>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from 'std::vector<int>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from 'std::vector<int>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'std::vector<int>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'std::vector<int>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
352 | operator>>(__streambuf_type* __sb);
| ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:131:5
|
s849269849
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a==5 && b==5 && c==7) || (a==5 && b==7 && c==5) || (a==7 && b==5 && c=5))cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:7:72: error: lvalue required as left operand of assignment
7 | if((a==5 && b==5 && c==7) || (a==5 && b==7 && c==5) || (a==7 && b==5 && c=5))cout<<"YES"<<endl;
| ~~~~~~~~~~~~~^~~~
|
s341156849
|
p04043
|
C++
|
abc = list(map(int, input().split()))
print("YES" if sorted(abc) == [5,5,7] else "NO")
|
a.cc:1:1: error: 'abc' does not name a type
1 | abc = list(map(int, input().split()))
| ^~~
|
s771665575
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A >> B >> C >>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A >> B >> C >>;
| ^~
| ;
|
s175548601
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A >> B >> C >>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A >> B >> C >>;
| ^~
| ;
|
s078465618
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A>> B>> C>>;
| ^~
| ;
|
s549425727
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 = A*B*C){
if(17 = A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
6 | cin A>> B>> C>>;
| ^~
| ;
a.cc:8:6: error: lvalue required as left operand of assignment
8 | if(175 = A*B*C){
| ^~~
a.cc:9:8: error: lvalue required as left operand of assignment
9 | if(17 = A+B+C){
| ^~
|
s751474156
|
p04043
|
C++
|
#include <bits/stdc++.h>
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES";
}
}
else{
cout <<"NO";
}
}
|
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin A>> B>> C>>;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:9:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "YES";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | cout <<"NO";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s930184080
|
p04043
|
C++
|
#include <bits/stdc++.h>
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 == A*B*C){
if(17 == A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin A>> B>> C>>;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:9:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "YES" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << "YES" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | cout <<"NO" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | cout <<"NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s120035549
|
p04043
|
C++
|
#include <bits/stdc++.h>
int main() {
int A,B,C;
cin A>> B>> C>>;
if(175 = A*B*C){
if(17 = A+B+C){
cout << "YES" << endl;
}
}
else{
cout <<"NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin A>> B>> C>>;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:6: error: lvalue required as left operand of assignment
7 | if(175 = A*B*C){
| ^~~
a.cc:8:8: error: lvalue required as left operand of assignment
8 | if(17 = A+B+C){
| ^~
a.cc:9:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "YES" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << "YES" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | cout <<"NO" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | cout <<"NO" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s974250878
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin>>A>>B>>C;
if(A==5&&B==5&&C==7)
{cout>>"YES">>endl;}
else if(A==5&&B==7&&C==5)
{cout>>"YES">>endl; }
else if(A==7&&B==5&&C==5)
{cout>>"YES">>endl;}
else{cout>>"NO">>endl;}
}
|
a.cc: In function 'int main()':
a.cc:7:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
7 | {cout>>"YES">>endl;}
| ~~~~^~~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:7:6: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
7 | {cout>>"YES">>endl;}
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:7:12: required from here
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed:
a.cc:7:12: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
7 | {cout>>"YES">>endl;}
| ^~~~~
|
s261978223
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin>>A>>B>>C;
if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
else if(A==5&&B==7&&C==5){cout>>"YES">>endl;}
else if(A==7&&B==5&&C==5)
{cout>>"YES">>endl;}
else{cout>>"NO">>endl;}
}
|
a.cc: In function 'int main()':
a.cc:6:34: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ~~~~^~~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:6:30: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:6:29: required from here
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:6:36: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
6 | if(A==5&&B==5&&C==7){cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: templat
|
s470402474
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin>>A>>B>>C;
if(
(A==5&&B==5&&C==7)
||
(A==5&&B==7&&C==5)
||
(A==7&&B==5&&C==5)
)
{cout>>"YES">>endl;}
else{cout>>"NO">>endl;}
}
|
a.cc: In function 'int main()':
a.cc:13:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
13 | {cout>>"YES">>endl;}
| ~~~~^~~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:13:10: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
13 | {cout>>"YES">>endl;}
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:13:9: required from here
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
13 | {cout>>"YES">>endl;}
| ^~~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed:
a.cc:13:16: note: 'std::
|
s315270561
|
p04043
|
Java
|
import java.util.Scanner;
public class Main{
public static void main (String args[]){
int n=0;
// System.out.println("Aを入力してください");
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
// System.out.println("Bを入力してください");
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 && B==7){
if(A + B ==12){
A=0; B=0;
System.out.println("NO");
// break;
}
// System.out.println("Cを入力してください");
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes");
}
else{
System.out.println("No");
//break;
}
}
}
else{
System.out.println("NO");
}
}
|
Main.java:36: error: reached end of file while parsing
}
^
1 error
|
s279293300
|
p04043
|
Java
|
import java.util.Scanner;
public class Main{
public static void Main (Stirng args[]){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 || A==7){
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 || B==7){
if(A + B !=12 ){
A=0; B=0;
System.out.println("NO!");
break;
}
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes!");
}
else{
break;
}
}
}
}
}
}
|
Main.java:3: error: cannot find symbol
public static void Main (Stirng args[]){
^
symbol: class Stirng
location: class Main
1 error
|
s739668336
|
p04043
|
Java
|
import java.util.Scanner;
public class Main{
public static void Main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 || A==7){
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 || B==7){
if(A + B !=12 ){
A=0; B=0;
System.out.println("NO!");
break;
}
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes!");
}
else{
break;
}
}
}
}
}
}
|
Main.java:3: error: cannot find symbol
public static void Main (Stirng[] args){
^
symbol: class Stirng
location: class Main
1 error
|
s607091025
|
p04043
|
Java
|
import java.util.Scanner;
public class Main{
public static void Main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 && B==7){
if(A == B== 7){
A=0; B=0;
System.out.println("NO!");
break;
}
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes!");
}
else{
break;
}
}
}
}
}
}
|
Main.java:3: error: cannot find symbol
public static void Main (Stirng[] args){
^
symbol: class Stirng
location: class Main
Main.java:15: error: incomparable types: boolean and int
if(A == B== 7){
^
2 errors
|
s422110388
|
p04043
|
Java
|
import java.until.Scanner;
public class Main{
public static void Main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 && B==7){
if(A == B== 7){
A=0; B=0;
System.out.println("NO!");
break;
}
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes!");
}
else{
break;
}
}
}
}
}
}
|
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
^
Main.java:3: error: cannot find symbol
public static void Main (Stirng[] args){
^
symbol: class Stirng
location: class Main
Main.java:9: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:9: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:12: error: cannot find symbol
Scanner scan2 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:12: error: cannot find symbol
Scanner scan2 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:15: error: incomparable types: boolean and int
if(A == B== 7){
^
Main.java:20: error: cannot find symbol
Scanner scan3 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:20: error: cannot find symbol
Scanner scan3 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
9 errors
|
s753642605
|
p04043
|
Java
|
import java.until.Scanner;
public class Main{
public static void main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 && B==7){
if(A == B== 7){
A=0; B=0;
System.out.println("NO!");
break;
}
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes!");
}
else{
break;
}
}
}
}
}
}
|
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
^
Main.java:3: error: cannot find symbol
public static void main (Stirng[] args){
^
symbol: class Stirng
location: class Main
Main.java:9: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:9: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:12: error: cannot find symbol
Scanner scan2 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:12: error: cannot find symbol
Scanner scan2 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:15: error: incomparable types: boolean and int
if(A == B== 7){
^
Main.java:20: error: cannot find symbol
Scanner scan3 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:20: error: cannot find symbol
Scanner scan3 = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
9 errors
|
s205641800
|
p04043
|
Java
|
import java.until.Scanner;
public class Index{
public static void main (Stirng[] args){
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
int n=0;
while(n==0){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
Scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 && B==7){
if(A == B== 7){
A=0; B=0;
System.out.println("NO!");
break;
}
Scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.out.println("Yes!");
}
else{
break;
}
}
}
}
}
}
|
Main.java:2: error: class Index is public, should be declared in a file named Index.java
public class Index{
^
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
^
Main.java:3: error: cannot find symbol
public static void main (Stirng[] args){
^
symbol: class Stirng
location: class Index
Main.java:9: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Index
Main.java:9: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Index
Main.java:12: error: cannot find symbol
Scanner scan2 = new Scanner(System.in);
^
symbol: class Scanner
location: class Index
Main.java:12: error: cannot find symbol
Scanner scan2 = new Scanner(System.in);
^
symbol: class Scanner
location: class Index
Main.java:15: error: incomparable types: boolean and int
if(A == B== 7){
^
Main.java:20: error: cannot find symbol
Scanner scan3 = new Scanner(System.in);
^
symbol: class Scanner
location: class Index
Main.java:20: error: cannot find symbol
Scanner scan3 = new Scanner(System.in);
^
symbol: class Scanner
location: class Index
10 errors
|
s039975446
|
p04043
|
Java
|
public class Index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
scanner scan = new Scanner(System.in);
int A = scan.nextInt();
if(A == 5 && A==7){
scanner scan2 = new Scanner(System.in);
int B = scan2.nextInt();
if(B == 5 && B==7){
if(A==B==7){
A=0; B=0;
System.out.println("NO!");
break;
}
scanner scan3 = new Scanner(System.in);
int C = scan3.nextInt();
if(A + B + C == 17){
System.outprintln("Yes!");
}
else{
break;
}
}
}
}
}
}
}
|
Main.java:34: error: class, interface, enum, or record expected
}
^
1 error
|
s330056152
|
p04043
|
Java
|
public class Index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
if(A == 5 && A==7){
B = new String(in.readLine() );
if(B == 5 && B==7){
if(A==B==7){
A=0; B=0;
System.out.println("NO!");
break;
}
C = new String(in.readLine());
if(A + B + C == 17){
System.outprintln("Yes!");
}
else{
break;
}
}
}
}
}
}
}
|
Main.java:33: error: class, interface, enum, or record expected
}
^
1 error
|
s968681838
|
p04043
|
Java
|
ソースコード
Copy
Copy
public class index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
if(A == 5 && A==7){
B = new String(in.readLine() );
if(B == 5 && B==7){
if(A==B==7){
A=0; B=0;
System.out.println("NO!");
break;
}
C = new String(in.readLine());
if(A + B + C == 17){
System.outprintln("Yes!");
}
else{
break;
}
}
}
}
}
}
}
|
Main.java:1: error: class, interface, enum, or record expected
??????
^
Main.java:35: error: class, interface, enum, or record expected
}
^
2 errors
|
s802743537
|
p04043
|
Java
|
public class index{
public static void main (Stirng[] args){
INT A,B,C;
/* BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
*/
while(1){
BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
A = new String(in.readLine() );
if(A == 5 && A==7){
B = new String(in.readLine() );
if(B == 5 && B==7){
if(A==B==7){
A=0; B=0;
System.out.println("NO!");
break;
}
C = new String(in.readLine());
if(A + B + C == 17){
System.outprintln("Yes!");
}
else{
break;
}
}
}
}
|
Main.java:28: error: reached end of file while parsing
}
^
1 error
|
s105586455
|
p04043
|
C++
|
#include<iostream>
#include<cstdio>
#include<vector>
#include<queue>
#include<map>
#include<unordered_map>
#include<stack>
#include<string>
#include<algorithm>
#include<functional>
#include<cstring>
#include<utility>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
/**** Type Define ****/
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, P> Q;
/**** Const List ****/
const ll INF = 1LL << 60;
const ll mod = 1000000007;
const ll dx[4] = {1, 0, -1, 0};
const ll dy[4] = {0, -1, 0, 1};
/**** General Functions ****/
ll gcd(ll a, ll b) {
if (b == 0) return a;
return gcd(b, a % b);
}
ll extgcd(ll a, ll b, ll& x, ll& y) {
if (b == 0) {
x = 1, y = 0; return a;
}
ll q = a/b, g = extgcd(b, a - q*b, x, y);
ll z = x - q * y;
x = y;
y = z;
return g;
}
ll invmod (ll a, ll m) { // a^-1 mod m
ll x, y;
extgcd(a, m, x, y);
x %= m;
if (x < 0) x += m;
return x;
}
ll nCk(ll n, ll k, ll mod) {
ll ans = 1;
for (ll i = n, j = 1; j <= k; i--, j++) ans = (((ans * i) % mod) * invmod(j, mod)) % mod;
return ans;
}
ll lmin(ll a, ll b) { return a > b ? b : a; };
ll lmax(ll a, ll b) { return a > b ? a : b; };
ll lsum(ll a, ll b) { return a + b; };
/**** Zip ****/
template <typename T>
class Zip {
vector<T> d;
bool flag;
public:
Zip() {
flag = false;
}
void add(T x) {
d.push_back(x);
flag = true;
}
ll getNum(T x) { // T need to have operator < !!
if (flag) {
sort(d.begin(), d.end());
d.erase(unique(d.begin(), d.end()), d.end());
flag = false;
}
return lower_bound(d.begin(), d.end(), x) - d.begin();
}
ll size() {
if (flag) {
sort(d.begin(), d.end());
d.erase(unique(d.begin(), d.end()), d.end());
flag = false;
}
return (ll)d.size();
}
};
/**** Union Find ****/
class UnionFind {
vector<ll> par, rank; // par > 0: number, par < 0: -par
public:
void init(ll n) {
par.resize(n, 1); rank.resize(n, 0);
}
ll getSize(ll x) {
return par[find(x)];
}
ll find(ll x) {
if (par[x] > 0) return x;
return -(par[x] = -find(-par[x]));
}
void merge(ll x, ll y) {
x = find(x);
y = find(y);
if (x == y) return;
if (rank[x] < rank[y]) {
par[y] += par[x];
par[x] = -y;
} else {
par[x] += par[y];
par[y] = -x;
if (rank[x] == rank[y]) rank[x]++;
}
}
bool isSame(ll x, ll y) {
return find(x) == find(y);
}
};
/**** Segment Tree ****/
template <typename T>
class SegmentTree {
ll n;
vector<T> node;
function<T(T, T)> fun, fun2;
bool customChange;
T outValue, initValue;
public:
void init(ll num, function<T(T, T)> resultFunction, T init, T out, function<T(T, T)> changeFunction = NULL) {
// changeFunction: (input, beforevalue) => newvalue
fun = resultFunction;
fun2 = changeFunction;
customChange = changeFunction != NULL;
n = 1;
while (n < num) n *= 2;
node.resize(2 * n - 1, init);
outValue = out;
initValue = init;
}
void valueChange(ll num, T value) {
num += n-1;
if (customChange) node[num] = fun2(value, node[num]);
else node[num] = value;
while (num > 0) num = (num - 1) / 2, node[num] = fun(node[num * 2 + 1], node[num * 2 + 2]);
}
T rangeQuery(ll a, ll b, ll l = 0, ll r = -1, ll k = 0) { // [a, b)
if (r == -1) r = n;
if (a <= l && r <= b) return node[k];
if (b <= l || r <= a) return outValue;
ll mid = (l + r) / 2;
return fun(rangeQuery(a, b, l, mid, 2*k+1), rangeQuery(a, b, mid, r, 2*k+2));
}
};
/**** LIS ****/
ll lis(ll* a, ll n, ll* dp) {
fill(dp, dp + n, INF);//INFを代入
for (ll i = 0; i < n; i++) *lower_bound(dp, dp + n, a[i]) = a[i];
return (ll)(lower_bound(dp, dp + n, INF) - dp);
}
/**** main function ****/
int a,b,c,d;
int five=0;seven=0;
int main(){
cin>>a>>b>>c;
if(a==5){
five++;
}
if(a==7){
seven++;
}
if(b==5){
five++;
}
if(b==7){
seven++;
}
if(c==5){
five++;
}
if(c==7){
seven++;
}
if(five==2&&seven==1){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
|
a.cc:179:12: error: 'seven' does not name a type; did you mean 'sigevent'?
179 | int five=0;seven=0;
| ^~~~~
| sigevent
a.cc: In function 'int main()':
a.cc:186:17: error: 'seven' was not declared in this scope; did you mean 'setenv'?
186 | seven++;
| ^~~~~
| setenv
a.cc:192:17: error: 'seven' was not declared in this scope; did you mean 'setenv'?
192 | seven++;
| ^~~~~
| setenv
a.cc:198:17: error: 'seven' was not declared in this scope; did you mean 'setenv'?
198 | seven++;
| ^~~~~
| setenv
a.cc:200:21: error: 'seven' was not declared in this scope; did you mean 'setenv'?
200 | if(five==2&&seven==1){
| ^~~~~
| setenv
|
s385685541
|
p04043
|
Java
|
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Map<Integer, Integer> seen = new HashMap<>();
for (int ix = 0; ix < 3; ix++) {
int value = scanner.nextInt();
seen.put(value, seen.getOrDefault(value, 0) + 1);
}
bool result = seen.containsKey(5)
&& seen.containsKey(7)
&& seen.get(5) == 2
&& seen.get(7) == 1;
System.out.println(result ? "YES" : "NO");
}
}
|
Main.java:12: error: cannot find symbol
bool result = seen.containsKey(5)
^
symbol: class bool
location: class Main
1 error
|
s352415653
|
p04043
|
Java
|
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Map<Integer, Integer> seen = new HashMap<>();
for (int ix = 0; ix < 3; ix++) {
int value = scanner.nextInt();
seen.put(value, seen.getOrDefault(value, 0) + 1);
}
return seen.containsKey(5)
&& seen.containsKey(7)
&& seen.get(5) == 2
&& seen.get(7) == 1;
}
}
|
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Map<Integer, Integer> seen = new HashMap<>();
^
symbol: class Map
location: class Main
Main.java:4: error: cannot find symbol
Map<Integer, Integer> seen = new HashMap<>();
^
symbol: class HashMap
location: class Main
Main.java:13: error: incompatible types: unexpected return value
&& seen.get(7) == 1;
^
5 errors
|
s867431524
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int n, l;
cin >> n >> l;
vector<string> s(n);
for(int i=0; i<s.size(); i++){
cin >> s.push_back(i);
}
sort(s.begin(), s.end());
for(auto e:s){
cout << e;
}
cout << endl;
}
|
a.cc: In function 'int main()':
a.cc:9:27: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back(int&)'
9 | cin >> s.push_back(i);
| ~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:64,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
1283 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note: no known conversion for argument 1 from 'int' to 'const std::vector<std::__cxx11::basic_string<char> >::value_type&' {aka 'const std::__cxx11::basic_string<char>&'}
1283 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
1300 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note: no known conversion for argument 1 from 'int' to 'std::vector<std::__cxx11::basic_string<char> >::value_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
1300 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
|
s611728465
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main(){
int x[3];
int i= 0;
int counter7 = 0;
int counter5 = 0;
while(i < 3){
cin >> x[i];
i++;
}
i = 0;
}
while(i < 3){
if(x[i]==5){
counter5 = counter5 + 1;
}
else if(x[i]== 7){
counter7 = counter7 + 1;
}
i++;
}
if(counter5 == 2 && counter7 == 1){
cout << "YES";
}
else{
cout << "NO";
}
return 0;
}
|
a.cc:20:9: error: expected unqualified-id before 'while'
20 | while(i < 3){
| ^~~~~
a.cc:29:9: error: expected unqualified-id before 'if'
29 | if(counter5 == 2 && counter7 == 1){
| ^~
a.cc:32:9: error: expected unqualified-id before 'else'
32 | else{
| ^~~~
a.cc:35:9: error: expected unqualified-id before 'return'
35 | return 0;
| ^~~~~~
a.cc:36:1: error: expected declaration before '}' token
36 | }
| ^
|
s036993575
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> a(3);
for(int i=0;i<3;i++){
cin>>a[i];
}
sort(a.begin(),a.end());
if(a[0]==5&&a[1]==5&&a[2]==7){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:13:4: error: expected '}' at end of input
13 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s092103477
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int c5 = 0;
int c7 = 0;
for (int i = 0; i < 3; i++) {
if (a[i] == 5) c5++;
else if (a[i] == 7) c7++;
}
cout << (c5 == 2 && c7 == 1) ? "YES" : "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:13:47: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
13 | cout << (c5 == 2 && c7 == 1) ? "YES" : "NO" << endl;
| ~~~~~^~~~~~~
|
s624435438
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
return 0;
}
|
a.cc:15:1: error: expected unqualified-id before 'return'
15 | return 0;
| ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
|
s814235180
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
}
|
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s140569022
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
else{
cout << "NO" << endl;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
10 | else{
| ^~~~
a.cc:8:16: note: to match this '{'
8 | if (D == 175){
| ^
a.cc: At global scope:
a.cc:14:3: error: expected unqualified-id before 'return'
14 | return 0;
| ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
15 | }
| ^
|
s924934383
|
p04043
|
C++
|
#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<math>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
else{
cout << "NO" << endl;
}
}
return 0;
}
|
a.cc:4:9: fatal error: math: No such file or directory
4 | #include<math>
| ^~~~~~
compilation terminated.
|
s892400164
|
p04043
|
C++
|
#include<bits/stdc++.h>
#include<iostream>
#include<Algorithm>
#include<math>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
int D = A * B * C;
if (D == 175){
cout << "YES" << endl;
else{
cout << "NO" << endl;
}
}
return 0;
}
|
a.cc:3:9: fatal error: Algorithm: No such file or directory
3 | #include<Algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s334004906
|
p04043
|
C++
|
#include<iostream>
#include<Algorithm>
using namespace std;
int main(){
int A[3];
cin >> A[0];
cin >> A[1];
cin >> A[0];
sort(A,A+3);
if (A[0] == 5 && A[1] == 5 && A[2] == 7){
cout << "Yes";
}
}
|
a.cc:2:9: fatal error: Algorithm: No such file or directory
2 | #include<Algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s449960848
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> N(3);
for(int i = 0; i < 3; i++){
cin >> N.at(i);
}
sort(N.begin(), N.end());
if(N.at(0) == 5 && N.at(1) == 5 && N.at(2) == 7){
cout << "YES" << endl;
}
else{
cout "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:14:9: error: expected ';' before string constant
14 | cout "NO" << endl;
| ^~~~~
| ;
|
s479349631
|
p04043
|
Java
|
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
|
Main.java:7: error: cannot find symbol
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
^
symbol: method equal(String)
location: variable s of type String
Main.java:7: error: cannot find symbol
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
^
symbol: method equal(String)
location: variable s of type String
Main.java:7: error: cannot find symbol
if(s.equal("5 7 5") || s.equal("7 5 5") || s.equal("5 5 7")) {
^
symbol: method equal(String)
location: variable s of type String
3 errors
|
s929128474
|
p04043
|
Java
|
public class Hello{
public static void Main(){
string[] input = System.Console.ReadLine().Split(' ');
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
int C = int.Parse(input[2]);
if((A == 5 && B == 5 && C == 7) || (A == 7 && B == 5 && C == 5) || (A == 7 && B == 5 && C == 5)){
System.Console.WriteLine("YES");
}else{
System.Console.WriteLine("NO");
}
}
}
|
Main.java:5: error: class expected
int A = int.Parse(input[0]);
^
Main.java:5: error: ';' expected
int A = int.Parse(input[0]);
^
Main.java:5: error: not a statement
int A = int.Parse(input[0]);
^
Main.java:5: error: ';' expected
int A = int.Parse(input[0]);
^
Main.java:6: error: class expected
int B = int.Parse(input[1]);
^
Main.java:6: error: ';' expected
int B = int.Parse(input[1]);
^
Main.java:6: error: not a statement
int B = int.Parse(input[1]);
^
Main.java:6: error: ';' expected
int B = int.Parse(input[1]);
^
Main.java:7: error: class expected
int C = int.Parse(input[2]);
^
Main.java:7: error: ';' expected
int C = int.Parse(input[2]);
^
Main.java:7: error: not a statement
int C = int.Parse(input[2]);
^
Main.java:7: error: ';' expected
int C = int.Parse(input[2]);
^
12 errors
|
s180814641
|
p04043
|
C++
|
#include (bits/stdc++.h)
using namespace std;
int main () {
int A, B, C;
cin >> A >> B >> C;
if( A == 5 && B == 7 && C == 5 || A ==5 && B ==5 && C == 7 || A == 7 && B == 5 && C == 5) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
|
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include (bits/stdc++.h)
| ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> A >> B >> C;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #include (bits/stdc++.h)
a.cc:9:3: error: 'cout' was not declared in this scope
9 | cout << "YES" << endl;
| ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
9 | cout << "YES" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #include (bits/stdc++.h)
a.cc:12:3: error: 'cout' was not declared in this scope
12 | cout << "NO" << endl;
| ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:19: error: 'endl' was not declared in this scope
12 | cout << "NO" << endl;
| ^~~~
a.cc:12:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s827702686
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a*b*c==175&&a+b+c==17)cout<<YES<<endl;
else cout<<NO<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:40: error: 'YES' was not declared in this scope
8 | if(a*b*c==175&&a+b+c==17)cout<<YES<<endl;
| ^~~
a.cc:9:20: error: 'NO' was not declared in this scope
9 | else cout<<NO<<endl;
| ^~
|
s850316026
|
p04043
|
Java
|
read a b c
five=0
seven=0
for i in $a $b $c
do
if [ $i -eq 5 ]; then
five=`expr $five + 1`
fi
if [ $i -eq 7 ]; then
seven=`expr $seven + 1`
fi
done
if [ $five -eq 2 ]; then
if [ $seven -eq 1 ]; then
echo "YES"
else
echo "NO"
fi
else
echo "NO"
fi
|
Main.java:1: error: class, interface, enum, or record expected
read a b c
^
Main.java:7: error: illegal character: '`'
five=`expr $five + 1`
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
if [ $i -eq 5 ]; then
^
(use --enable-preview to enable unnamed classes)
Main.java:7: error: illegal character: '`'
five=`expr $five + 1`
^
Main.java:10: error: illegal character: '`'
seven=`expr $seven + 1`
^
Main.java:10: error: illegal character: '`'
seven=`expr $seven + 1`
^
Main.java:13: error: class, interface, enum, or record expected
if [ $five -eq 2 ]; then
^
Main.java:14: error: class, interface, enum, or record expected
if [ $seven -eq 1 ]; then
^
8 errors
|
s798410946
|
p04043
|
C++
|
#include<iostream>
int main(){
int cnt[11];
for(int i=0;i<=10;i++){
cnt[i] = 0;
}
cnt[a]++; cnt[b]++; cnt[c]++;
if(cnt[5]==2 && cnt[7]==1){
printf("Yes");
}else printf("No");
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:7: error: 'a' was not declared in this scope
9 | cnt[a]++; cnt[b]++; cnt[c]++;
| ^
a.cc:9:17: error: 'b' was not declared in this scope
9 | cnt[a]++; cnt[b]++; cnt[c]++;
| ^
a.cc:9:27: error: 'c' was not declared in this scope
9 | cnt[a]++; cnt[b]++; cnt[c]++;
| ^
|
s209554271
|
p04043
|
C++
|
#include<iostream.h>
int cnt[11];
for(int i=0;i<=10;i++){
cnt[i] = 0;
}
cnt[a]++; cnt[b]++; cnt[c]++;
if(cnt[5]==2 && cnt[7]==1){
printf("Yes");
}else printf("No");
|
a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s001792262
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main(){
int a[3];
cin >> a[0] >> a[1] >> a[2];
int flag_5 = 0;
int flag_7 = 0;
for(int i = 0; i < 3; i++){
if(a[i] ==5){
flag_5++;
}
else if(a[i] ==7){
flag_7++;
}
}
if(flag5 ==2 && flag_7 == 1){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:19:6: error: 'flag5' was not declared in this scope; did you mean 'flag_5'?
19 | if(flag5 ==2 && flag_7 == 1){
| ^~~~~
| flag_5
|
s274327507
|
p04043
|
C++
|
lst = list(map(int, input().split()))
c5 = c7 = 0
for x in lst:
if x == 5:
c5 += 1
elif x == 7:
c7 += 1
if c5 == 2 and c7 == 1:
print("YES")
else:
print("NO")
|
a.cc:1:1: error: 'lst' does not name a type
1 | lst = list(map(int, input().split()))
| ^~~
|
s792650625
|
p04043
|
C
|
#include <stdio.h>
int main(){
int a,b,c,d[8]={0};
scanf("%d%d%d",&a,&b,&c);
d[a]++;
d[b]++;
d[c]++;
if (c[5]==2 && c[7]==1){
printf("YES\n");
}
else printf("NO\n");
return 0;
}
|
main.c: In function 'main':
main.c:8:6: error: subscripted value is neither array nor pointer nor vector
8 | if (c[5]==2 && c[7]==1){
| ^
main.c:8:17: error: subscripted value is neither array nor pointer nor vector
8 | if (c[5]==2 && c[7]==1){
| ^
|
s099759818
|
p04043
|
C
|
#include<stdio.h>
int main(void){
int a[3],cnt5=0,cnt7=0,i;
scanf("%d%d%d",a[0]a[1]a[2]);
for(i=0;i<3;i++){
if(a[i]==5) cnt5++;
else if(a[i]==7) cnt7++;
}
if((cnt5==2) && (cnt7==1)) printf("YES\n");
else printf("NO\n");
return 0;
}
|
main.c: In function 'main':
main.c:5:22: error: expected ')' before 'a'
5 | scanf("%d%d%d",a[0]a[1]a[2]);
| ~ ^
| )
|
s831567536
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
#define LEN 3
int main(void)
{
int A[3];
int buf_for_5 = 0;
int buf_for_7 = 0;
cin >> A[0] >> A[1] >> A[2];
for(i=0; i<LEN; i++)
{
if(A[i] == 5)
{
if(buf_for_5 < 2)
{
buf_for_5++;
}
}
if(A[i] == 7)
{
if(buf_for_7 < 1)
{
buf_for_7++;
}
}
}
if(buf_for_5 == 2 && buf_for_7 == 1)
{
cout << "YES" << endl;
}else{
count << "NO" << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
13 | for(i=0; i<LEN; i++)
| ^
a.cc:35:11: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<'
35 | count << "NO" << endl;
| ~~~~~~^~~~~~~
|
s888437080
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int x[11]={};
x[a]++; x[b]++; x[c]++;
if(x[5]==2 %%x[7]==1)
cout<<"YES";
else cout<<"NO";
cout<<endl;
}
|
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '%' token
9 | if(x[5]==2 %%x[7]==1)
| ^
|
s337367305
|
p04043
|
C++
|
#include <iostream>
#include <vector>
#include <vector>
using namespace std;
int main(void){
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
if(a[0] == a[1] && a[1] == 5 && a[2] == 7) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
9 | sort(a, a + 3);
| ^~~~
| short
|
s310676657
|
p04043
|
C++
|
include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
bool flag=false;
if(a==7 and b==5 and c==5) flag=true;
if(a==5 and b==7 and c==5) flag=true;
if(a==5 and b==5 and c==7) flag=true;
if(flag) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin>>a>>b>>c;
| ^~~
a.cc:11:12: error: 'cout' was not declared in this scope
11 | if(flag) cout<<"YES"<<endl;
| ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
11 | if(flag) cout<<"YES"<<endl;
| ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
12 | else cout<<"NO"<<endl;
| ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope
12 | else cout<<"NO"<<endl;
| ^~~~
|
s495088928
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int a;
int cnt5 = 0, cnt7 = 0;
for(int i = 0;i < 3;i++){
cin >> a;
if(a == 5) cnt5++;
else if(a == 7) cnt7++;
}
if(cnt5 == 2 && cnt == 1) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:14:21: error: 'cnt' was not declared in this scope; did you mean 'cnt7'?
14 | if(cnt5 == 2 && cnt == 1) cout << "YES" << endl;
| ^~~
| cnt7
|
s865840953
|
p04043
|
C
|
#include<stdio.h>
int main(void){
int A=0,B=0,C=0,count=0;
scanf("%d %d %d",&A,&B,&C);
if(A==7||A==5)
count+=A;
if(B==7||B==5)
count+=B;
if(C==7||C==5)
count+=C;
if(count==17)
printf("YES");
else
printf("NO");
return 0;
|
main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
18 | return 0;
| ^~~~~~
|
s316507908
|
p04043
|
C++
|
#include<iostream>
int main()
{
int a,b,c;
cin >> a >> b >> c;
List<int> log = new List<int>();
for(int i = 0;i < 3;i++)
{
}
}
|
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:3: error: 'List' was not declared in this scope
7 | List<int> log = new List<int>();
| ^~~~
a.cc:7:8: error: expected primary-expression before 'int'
7 | List<int> log = new List<int>();
| ^~~
|
s066347809
|
p04043
|
C++
|
#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
int a,b,c;
cin >> a >> b >> c;
if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
else cout <<"NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:14:64: error: expected ';' before 'cout'
14 | if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
| ^~~~
| ;
a.cc:15:5: error: expected primary-expression before 'else'
15 | else cout <<"NO";
| ^~~~
a.cc:14:76: error: expected ')' before 'else'
14 | if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
| ~ ^
| )
15 | else cout <<"NO";
| ~~~~
|
s484238885
|
p04043
|
C++
|
#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
cin >> a >> b >> c;
if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
else cout <<"NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:12:12: error: 'a' was not declared in this scope
12 | cin >> a >> b >> c;
| ^
a.cc:12:17: error: 'b' was not declared in this scope
12 | cin >> a >> b >> c;
| ^
a.cc:12:22: error: 'c' was not declared in this scope
12 | cin >> a >> b >> c;
| ^
a.cc:14:5: error: expected primary-expression before 'else'
14 | else cout <<"NO";
| ^~~~
a.cc:13:76: error: expected ')' before 'else'
13 | if((a==5&&b==7&&c==5)|(a==7&&b==5&&c==5)|(a==5&&b==5&&c==7)cout<<"YES";
| ~ ^
| )
14 | else cout <<"NO";
| ~~~~
|
s963918220
|
p04043
|
C
|
#include<stdio.h>
int main(void)
{
int,n,five=0,seven=0;
for(int i = 0;i < 3;i++)
{
scanf("%d",&n);
switch(n)
{
case 5:
five += 1;
break;
case 7:
seven += 1;
break;
default:
continue;
}
}
if(five == 2 && seven == 1){printf("YES");}
else{printf("NO");}
return 0;
}
|
main.c: In function 'main':
main.c:5:6: error: expected identifier or '(' before ',' token
5 | int,n,five=0,seven=0;
| ^
main.c:8:17: error: 'n' undeclared (first use in this function)
8 | scanf("%d",&n);
| ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'five' undeclared (first use in this function)
12 | five += 1;
| ^~~~
main.c:15:9: error: 'seven' undeclared (first use in this function)
15 | seven += 1;
| ^~~~~
|
s623002843
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pii pair<ll,ll>
#define vpii vector<pair<ll,ll> >
#define F first
#define S second
#define ld long double
#define built __builtin_popcountll
#define mst(a,i) memset(a,i,sizeof(a))
#define all(x) x.begin(),x.end()
#define itit(it,a) for(auto it=(a).begin(); it!=(a).end(); it++)
#define rep(i,a,b) for(ll i=a; i<b; i++)
#define repr(i,a,b) for(ll i=a; i>b; i--)
#define reprr(i,a,b) for(ll i=a; i>=b; i--)
#define pi 3.14159265358979323846264338327950288419716939937510582097494459230
ll max3(ll x,ll y,ll z) {return max(max(x,y),z);}
ll min3(ll x,ll y,ll z) {return min(min(x,y),z);}
const ll M=2e5+10,M2=1e6+10,mod=1e9+7,inf=1e17+10;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll a[2];
cin >> a[0] >> a[1] >> a[2];
sort(a,a+3);
if(a[0]==a[1] && a[0]==5 && a[2]=7) cout << "YES";
else cout << "NO";
return 0;
}
/* The judge is never wrong! Your code is buggy
Look for:
* * Read the problem carefully.
* * Don't forget to sort(), mod, ll!!!!
* * Initial value = +/- infinity instead of zero!!!
* * an easier and alternate approach
* * read the problem statement carefully
* * if concept is correct and still WA, try with a different implementation
* * special cases (n=1?)
* * overflow (ll vs int?)
* * array bounds
* * if you have no idea just guess the appropriate well-known algorithm instead of doing nothing :/
*/
|
a.cc: In function 'int main()':
a.cc:34:34: error: lvalue required as left operand of assignment
34 | if(a[0]==a[1] && a[0]==5 && a[2]=7) cout << "YES";
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
|
s191991329
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
vector<int> vec;
vec = {A, B, C} ;
sort( vec.begin( ), vec.end( ) );
if (vec = {7, 5, 5}) {
cout << "YES" << endl;
}
even if {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:12:25: error: could not convert 'vec.std::vector<int>::operator=(std::initializer_list<int>{((const int*)(& const int [3]{7, 5, 5})), 3})' from 'std::vector<int>' to 'bool'
12 | if (vec = {7, 5, 5}) {
| ~~~~^~~~~~~~~~~
| |
| std::vector<int>
a.cc:16:17: error: 'even' was not declared in this scope
16 | even if {
| ^~~~
|
s487951333
|
p04043
|
Java
|
hewjhqrke
|
Main.java:1: error: reached end of file while parsing
hewjhqrke
^
1 error
|
s330878277
|
p04043
|
C++
|
#include <iostream>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#define all(x) (x).begin(),(x).end()
const int MOD = 1e9 + 7;
void solve(){
}
int main(){
vector<int> a(3);
for (int i = 0; i < 3; i++){
cin >> a[i];
}
sort(a);
if (a[0] == 5 && a[1] == 5 && a[2] == 7){
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:30:9: error: no matching function for call to 'sort(std::vector<int>&)'
30 | sort(a);
| ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:9:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
4762 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
4793 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
| ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate expects 3 arguments, 1 provided
|
s083298994
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#define M 1000000000000000000LL
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=(s);i<(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);i--)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define pb push_back
#define pf push_front
#define MIN(a,b) a=min((a),(b))
#define MAX(a,b) a=max((a),(b))
#define SIZE(v) (int)v.size()
#define Eunique(v) v.erace(unique(all(v)),v.end())
#define pvec(v) rep(i,v.size()){cout << v[i] << " ";}
#define INF 0x3f3f3f3f
#define mset(m,v) memset(m,v,sezeof(m))
#define mod 1e9 +7;
const double pi = acos(-1.0);
typedef vector<int> vi;
typedef vector<string> vs;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef deque<ll> dll;
typedef pair<ll,ll> P;
ll dx[4] = {1,0,-1,0},dy[4] = {0,1,0,-1};
ll gcd(ll x,ll y)
{
ll r;
while((r = x % y) != 0)
{
x = y;
y = r;
}
return y;
}
ll lcm(ll x,ll y)
{
x /= gcd(x,y);
y /= gcd(x,y);
return (x*y);
}
int main()
{
vi n(3),countf=0,counts=0;
rep(i,3){
cin >> n[i];
if(n[i] == 5)countf++;
else if(n[i] == 7)counts++;
}
if(countf == 2 && counts == 1)cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
|
a.cc:9:19: error: extended character is not valid in an identifier
9 | #define REP(i,s,n) for(int i=(s);i<(n);i++)
| ^
a.cc:20:16: error: extended character is not valid in an identifier
20 | #define pvec(v) rep(i,v.size()){cout << v[i] << " ";}
| ^
a.cc: In function 'int main()':
a.cc:57:20: error: conversion from 'int' to non-scalar type 'vi' {aka 'std::vector<int>'} requested
57 | vi n(3),countf=0,counts=0;
| ^
a.cc:57:29: error: conversion from 'int' to non-scalar type 'vi' {aka 'std::vector<int>'} requested
57 | vi n(3),countf=0,counts=0;
| ^
a.cc:60:28: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
60 | if(n[i] == 5)countf++;
| ~~~~~~^~
a.cc:61:33: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
61 | else if(n[i] == 7)counts++;
| ~~~~~~^~
a.cc:63:15: error: no match for 'operator==' (operand types are 'vi' {aka 'std::vector<int>'} and 'int')
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ~~~~~~ ^~ ~
| | |
| | int
| vi {aka std::vector<int>}
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::pair<_T1, _T2>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::reverse_iterator<_Iterator>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::reverse_iterator<_Iterator>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::move_iterator<_IteratorL>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::move_iterator<_IteratorL>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:63:18: note: 'vi' {aka 'std::vector<int>'} is not derived from 'const std::fpos<_StateT>'
63 | if(countf == 2 && counts == 1)cout << "YES" << endl;
| ^
|
s186034203
|
p04043
|
C++
|
#include<iostream>
#include<string>
using namespace std;
int main (){
string input;for(int i=0;i<3;i++){cin>>input[i];}
bool five =false, seven = false;
int fcnt = 0;
for(int i=0; i<3; i++){
if(s[i] == '7'){
seven =true;
}
else if(s[i] == '5') {
fcnt += 1;
}
if(fcnt==2){
five =true;
}
}
if(five==true&&seven==true)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:10:8: error: 's' was not declared in this scope
10 | if(s[i] == '7'){
| ^
|
s530651399
|
p04043
|
C++
|
int main(){
int a,b,c;
cin>>a>>b>>c;
int x=a*b*c;
if (x==175){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
3 | cin>>a>>b>>c;
| ^~~
a.cc:6:7: error: 'cout' was not declared in this scope
6 | cout<<"YES"<<endl;
| ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope
6 | cout<<"YES"<<endl;
| ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
9 | cout<<"NO"<<endl;
| ^~~~
a.cc:9:19: error: 'endl' was not declared in this scope
9 | cout<<"NO"<<endl;
| ^~~~
|
s537448034
|
p04043
|
C++
|
int a,b,c;
cin>>a>>b>>c;
int x=a*b*c;
if (x==175){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
|
a.cc:2:1: error: 'cin' does not name a type
2 | cin>>a>>b>>c;
| ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
4 | if (x==175){
| ^~
a.cc:7:1: error: expected unqualified-id before 'else'
7 | else{
| ^~~~
|
s165782205
|
p04043
|
C++
|
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int a,c5 = 0,c7 = 0;
for(int i=0;i<3;i++){
cin >> a;
if(a == 5)c5++;
else if(a==7)c7++;
else break;
}
cout << (c5==2 && c7==1 ? "YES" : "NO") << endl;
returen 0;
}
|
a.cc: In function 'int main()':
a.cc:20:3: error: 'returen' was not declared in this scope
20 | returen 0;
| ^~~~~~~
|
s240475208
|
p04043
|
C++
|
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int a,c5 = 0,c7 = 0;
for(int i=0;i<3;i++){
cin >> a;
if(a == 5)c5++;
else if(a==7)c7++;
else break;
}
cout << (n5==2 && n7==1 ? "YES" : "NO") << endl;
returen 0;
}
|
a.cc: In function 'int main()':
a.cc:18:12: error: 'n5' was not declared in this scope; did you mean 'c5'?
18 | cout << (n5==2 && n7==1 ? "YES" : "NO") << endl;
| ^~
| c5
a.cc:18:21: error: 'n7' was not declared in this scope; did you mean 'c7'?
18 | cout << (n5==2 && n7==1 ? "YES" : "NO") << endl;
| ^~
| c7
a.cc:20:3: error: 'returen' was not declared in this scope
20 | returen 0;
| ^~~~~~~
|
s791092716
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main()
{
int a,n5 = 0,n7 = 0;
for(int i=0;i<3;i++){
cin >> a;
if(a == 5)n5++;
else if(b == 7)n7++;
else break;
}
cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:11:11: error: 'b' was not declared in this scope
11 | else if(b == 7)n7++;
| ^
a.cc:15:14: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ~~~~~~~~~~ ^~ ~
| | |
| | int
| std::basic_ostream<char>
a.cc:15:14: note: candidate: 'operator==(int, int)' (built-in)
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ~~~~~~~~~~~^~~~
a.cc:15:14: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::allocator<_CharT>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:15:17: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
15 | cout << n5 == 2 && n7 == 1 ?"YES":"NO" << endl;
| ^
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: template argument deduction/substitution
|
s362382559
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin >> a;
cin >> b;
cin >> c;
if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
cout << "YES" << endl;
}else{cout << "NO" << endl;}
return 0;
}
|
a.cc:11:24: error: extended character is not valid in an identifier
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
| ^
a.cc:11:28: error: extended character is not valid in an identifier
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
| ^
a.cc:11:48: error: extended character is not valid in an identifier
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
| ^
a.cc:11:52: error: extended character is not valid in an identifier
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
| ^
a.cc: In function 'int main()':
a.cc:11:24: error: expected ')' before '\U00003000'
11 | if((a == 5 || a == 7) && (b == 5 || b == 7) && (c == 5 || c == 7)){
| ~ ^~
| )
|
s931717399
|
p04043
|
C++
|
#include<iostream>
#include<string>
#include<algorithm>
using namesoace std;
int main(){
int a[3];
for(int i=0; i<3;i++) cin >>a[i];
sort(a,a+3);
if(a[0] == 5 &&a[1] == 5&&a[2] == 7) cout <<"YES" <<endl;
else cout <<"NO" <<endl;
}
|
a.cc:5:7: error: expected nested-name-specifier before 'namesoace'
5 | using namesoace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
10 | for(int i=0; i<3;i++) cin >>a[i];
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
11 | sort(a,a+3);
| ^~~~
| std::sort
In file included from /usr/include/c++/14/algorithm:86,
from a.cc:3:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
a.cc:13:40: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | if(a[0] == 5 &&a[1] == 5&&a[2] == 7) cout <<"YES" <<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:13:55: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
13 | if(a[0] == 5 &&a[1] == 5&&a[2] == 7) cout <<"YES" <<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:14:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | else cout <<"NO" <<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | else cout <<"NO" <<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s220952963
|
p04043
|
C++
|
#include<iostream>
#include<string>
#include<algorithm>
using namesoace std;
int main(){
int a[3];
for(int i=0; i<3;i++) cin >>a[i];
sort(a,a+3);
if(a[0] == 5 &&a[1] == 5&&a[0] == 7) cout <<"YES" <<endl;
else cout <<"NO" <<endl;
}
|
a.cc:5:7: error: expected nested-name-specifier before 'namesoace'
5 | using namesoace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
10 | for(int i=0; i<3;i++) cin >>a[i];
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
11 | sort(a,a+3);
| ^~~~
| std::sort
In file included from /usr/include/c++/14/algorithm:86,
from a.cc:3:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
a.cc:13:40: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | if(a[0] == 5 &&a[1] == 5&&a[0] == 7) cout <<"YES" <<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:13:55: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
13 | if(a[0] == 5 &&a[1] == 5&&a[0] == 7) cout <<"YES" <<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:14:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | else cout <<"NO" <<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
14 | else cout <<"NO" <<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.