submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s015839780
|
p04043
|
C++
|
if(A != 7 && B != 7 && C != 7)
{
cout << "NO";
}
else
{
if((A == 5 && B == 5) ||(A == 5 && C == 5) (B == 5 && C == 5) )
{
cout << "YES";
}
else
{
cout << "NO";
}
}
|
a.cc:1:1: error: expected unqualified-id before 'if'
1 | if(A != 7 && B != 7 && C != 7)
| ^~
a.cc:5:1: error: expected unqualified-id before 'else'
5 | else
| ^~~~
|
s351896245
|
p04043
|
C++
|
#include<bits/stdc++.h>
//#include<iostream>
//#include<string>
#define ll long long
#define uint unsigned int
#define ld long double
#define SAM ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FOR(i,a,b) for(int i=a;i<b;++i)
#define RFOR(i,a,b) for(int i=a;i>b;--i)
#define mod 1000000007
#define mxn 200005
#define pb push_back
#define pii pair<int,int>
#define f first
#define s second
#define sz(x) (int)x.size()
#define all(x) x.begin(),x.end()
using namespace std;
int main()
{
SAM;
int arr[11];
memset(arr,0,sizeof(arr))
FOR(i,0,3)
{
int x;
cin>>x;
arr[x]++;
}
if(arr[5]==2 && arr[7]==1)
cout<<"Yes";
else
cout<<"NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:27:30: error: expected ';' before 'for'
27 | memset(arr,0,sizeof(arr))
| ^
| ;
a.cc:28:9: error: 'i' was not declared in this scope
28 | FOR(i,0,3)
| ^
a.cc:10:33: note: in definition of macro 'FOR'
10 | #define FOR(i,a,b) for(int i=a;i<b;++i)
| ^
|
s235960396
|
p04043
|
C++
|
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<queue>
#include<vector>
#define For(i,k,delta) for(i=0;i<k;i+=delta)
using namespace std;
typedef long long ll;
typedef short int sh;
const int inf=0x3f3f3f3f;
const int MAX=2e5+10;
const int mod=1e9+7;
template<class T>
inline Mms(T Array[],int k)
{
memset(Array,k,sizeof(Array));
}
int main()
{
int a,b,c;
while(scanf("%d%d%d",&a,&b,&c)!=EOF)
{
if((a==5&&b==5&&c==7)||(a==5&&c==5&&b==7)||(b==5&&c==5&&a==7))
puts("YES");
else
puts("NO");
}
return 0;
}
|
a.cc:21:8: error: ISO C++ forbids declaration of 'Mms' with no type [-fpermissive]
21 | inline Mms(T Array[],int k)
| ^~~
a.cc: In function 'int Mms(T*, int)':
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
24 | }
| ^
|
s690481920
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main () {
int a,b,c;
cin >> a >> b >> c;
if (a==7 && b==5 && c==5){
cout << "YES";
}else if (a==5 && b==7 && c==5){
cout << "YES";
}else if (a==5 && b==5 && c==7){
cout << "YES";
}else{
cout <<"NO"
}
}
|
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before '}' token
13 | cout <<"NO"
| ^
| ;
14 | }
| ~
|
s134101938
|
p04043
|
C++
|
#include <bit/stdc++.h>
using namespace std;
int main() {
vector<int> vec(3);
for (int i=0; i<3; i++){
cin >> vec.at(i);
}
sort(vec.begin(),vec.end());
if(vec.at(0)==7 && vec.at(1)==5 && vec.at(2)==5){
cout << "YES";
}
else{
cout << "NO";
}
return 0;
}
|
a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory
1 | #include <bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s514060542
|
p04043
|
C
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int N,L;
cin >> N >> L;
vector<string>A(N);
for(int i=0;i<N;i++){
cin >> A.at(i);
}
sort(A.begin(),A.end());
string C;
for(int j=0;j<N;j++){
C+=A.at(j);
}
cout << C << endl;
}
|
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s215843233
|
p04043
|
C
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int N,L;
cin >> N >> L;
vector<string>A(N);
for(int i=0;i<N;i++){
cin >> A.at(i);
}
sort(A.begin(),A.end());
string C;
for(int j=0;j<N;j++){
C+=A.at(j);
}
cout << C << endl;
}
|
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s966883428
|
p04043
|
Java
|
int
|
Main.java:1: error: class, interface, enum, or record expected
int
^
1 error
|
s669854325
|
p04043
|
Java
|
import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class A {
static class IO
{
BufferedReader br;
StringTokenizer st;
public IO()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args){
IO fs = new IO();
int [] a = new int[3];
for(int i = 0; i<3; i++){
a[i] = fs.nextInt();
}
Arrays.sort(a);
if(a[0] ==5 && a[1] ==5 && a[2] ==7)System.out.println("YES");
else System.out.println("NO");
}
}
|
Main.java:7: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s270136405
|
p04043
|
C++
|
// -------------------------------------------------------
#include <iostream>
#include <string>
#include <stdio.h>
#include <cassert>
#include <vector>
using namespace std;
int main() {
int A, B, C;
// string s;
#ifdef DEBUG
int a = 5;
int b = 7;
int c = 5;
A = a; B = b; C = c;
#elif
cin >> A >> B >> C;
#endif
vector<int> vec{ A, B, C };
// cin >> s;
vector<int> five;
vector<int> seven;
for (int i : vec) {
if (i == 5) {
five.push_back(1);
}
else if (i == 7) {
seven.push_back(1);
}
}
if (five.size() == 2 && seven.size() == 1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
#ifdef DEBUG
cin >> A;
#endif
return 0;
}
|
a.cc:19:6: error: #elif with no expression
19 | #elif
| ^
|
s633606053
|
p04043
|
C++
|
// -------------------------------------------------------
#include <iostream>
#include <string>
#include <stdio.h>
#include <windows.h>
#include <cassert>
#include <vector>
using namespace std;
int main() {
int A, B, C;
// string s;
#ifdef DEBUG
int a = 5;
int b = 7;
int c = 5;
A = a; B = b; C = c;
#elif
cin >> A >> B >> C;
#endif
vector<int> vec{ A, B, C };
// cin >> s;
vector<int> five;
vector<int> seven;
for (int i : vec) {
if (i == 5) {
five.push_back(1);
}
else if (i == 7) {
seven.push_back(1);
}
}
if (five.size() == 2 && seven.size() == 1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
#ifdef DEBUG
Sleep(10000000);
#endif
return 0;
}
// -------------------------------------------------------
|
a.cc:5:10: fatal error: windows.h: No such file or directory
5 | #include <windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s624296478
|
p04043
|
C++
|
#include <iostream>
#include <string>
#include <stdio.h>
#include <windows.h>
#include <cassert>
#include <vector>
using namespace std;
int main() {
int A, B, C;
// string s;
cin >> A >> B >> C;
vector<int> vec{ A, B, C };
// cin >> s;
vector<int> five;
vector<int> seven;
for (int i : vec) {
if (i == 5) {
five.push_back(1);
}
else if (i == 7) {
seven.push_back(1);
}
}
if (five.size() == 2 && seven.size() == 1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
Sleep(10000000);
}
|
a.cc:4:10: fatal error: windows.h: No such file or directory
4 | #include <windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s372413398
|
p04043
|
C++
|
#include <iostream>
#include <string>
using namespace std;
int main() {
cout << "YES" << s << endl;
}
|
a.cc: In function 'int main()':
a.cc:6:22: error: 's' was not declared in this scope
6 | cout << "YES" << s << endl;
| ^
|
s046415860
|
p04043
|
C++
|
A=0;
|
a.cc:1:1: error: 'A' does not name a type
1 | A=0;
| ^
|
s017226030
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
string 1,2,3;
cin>>1>>2>>3;
count1=0;
count2=0;
for(int i=1;i<4;++i){
if(i.size()==5){
count1++;
}
else if(i.size()==7){
count2++;
}
}
if(count1==2 && count2==1){
cout<<"YES"<<endl;
}
else cout<<"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before numeric constant
6 | string 1,2,3;
| ^
a.cc:7:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
7 | cin>>1>>2>>3;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
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>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'int'
7 | cin>>1>>2>>3;
| ^
/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>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: invalid conversion from 'int' to 'void*' [-fpermissive]
7 | cin>>1>>2>>3;
| ^
| |
| int
a.cc:7:8: error: cannot bind rvalue '(void*)1' to 'void*&'
/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>]' (near match)
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: invalid conversion from 'int' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} [-fpermissive]
7 | cin>>1>>2>>3;
| ^
| |
| int
/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>]' (near match)
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: invalid conversion from 'int' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} [-fpermissive]
7 | cin>>1>>2>>3;
| ^
| |
| int
/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>]' (near match)
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:7: note: conversion of argument 1 would be ill-formed:
a.cc:7:8: error: invalid conversion from 'int' to 'std::ios_base& (*)(std::ios_base&)' [-fpermissive]
7 | cin>>1>>2>>3;
| ^
| |
| int
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream
|
s025464490
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
ll h, w, a, b, ans, f[10000];
ll binpow(ll a, ll b)
{
if (b == 1) return a;
if (b == 0) return 1;
if (b % 2 == 0) {
ll temp = binpow(a, b/2) % mod;
return (temp * temp) % mod;
}
else {
return binpow(a, b-1) % mod;
}
}
ll inv(ll n) {
return binpow(n, mod - 2);
}
ll fact(ll n) {
f[0] = 1;
f[1] = 1;
for(ll i = 1; i <= n; i++)
f[i] = f[i-1] * i % mod;
return f[n];
}
ll calc(ll n, ll m) {
// ll p = 1;
// for(ll i = n; i < (n + m - 1); i++) {
// p *= i;
// p %= mod;
// p *= (i * binpow((i - m + 1), mod - 2)) % mod;
// p %= mod;
// }
// return p;
return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
}
signed main() {
fact(200000);
cin >> h >> w >> a >> b;
for(ll i = 1; i <= h - a; i++)
ans += calc(i, b) * calc(h - i + 1, w - b) % mod;
cout << ans % mod;
}
|
a.cc: In function 'll calc(ll, ll)':
a.cc:42:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
42 | return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:42:38: error: 'fac' was not declared in this scope; did you mean 'fact'?
42 | return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
| ^~~
| fact
a.cc:42:72: error: 'MOD' was not declared in this scope
42 | return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
| ^~~
|
s459855828
|
p04043
|
C
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a==5 || a==7)
cout<<"YES";
else if(b==5 || b==7)
cout<<"YES";
else if(c==5 ||c==7)
cout<<"YES";
else
cout<<"NO";
}
|
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
1 | #include<bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s113404124
|
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] >> endl;
}
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:7:17: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>')
7 | cin >> a[i] >> endl;
| ~~~~~~~~~~~~^~~~~~~
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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unres
|
s871172720
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin >>A>>B>>C;
if(A+B+C == 17){
cout << "YES" <<endl;
}
else{
cout << "NO" << endl;
}
return0;
}
|
a.cc: In function 'int main()':
a.cc:12:3: error: 'return0' was not declared in this scope
12 | return0;
| ^~~~~~~
|
s874854292
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cout >>A>>B>>C;
int count=0;
if(A == 5 || A == 7){
count++;
}
if(B == 5 || B == 7 ){
count++;
}
if(C == 5 || C == 7){
count++;
}
if(count==3 && A+B+C == 12){
cout << "YES" <<endl;
}
else{
cout << "NO" <<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:5:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
5 | cout >>A>>B>>C;
| ~~~~ ^~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
a.cc:5:8: note: candidate: 'operator>>(int, int)' (built-in)
5 | cout >>A>>B>>C;
| ~~~~~^~~
a.cc:5:8: 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:5:3: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
5 | cout >>A>>B>>C;
| ^~~~
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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: required from here
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/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:5:10: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
5 | cout >>A>>B>>C;
| ^
/usr/include/c++/14/iomanip:237:5: note
|
s856997202
|
p04043
|
C++
|
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
int n,l,i;
String s;
i=0;
cin>> n >> l;
for(i=0;i<n;i++)
{
cin>>s;
sort(s+0,s+l);
for(i=0;i<n;i++)
{
cout<<s;
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
8 | String s;
| ^~~~~~
a.cc:13:10: error: 's' was not declared in this scope
13 | cin>>s;
| ^
|
s426912738
|
p04043
|
C++
|
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
int n,l,i;
String s;
i=0;
cin>> n >> l;
for(i=0;i<n;i++)
{
cin>>s;
sort(s+0,s+l);
for(i=0;i<n;i++)
{
cout<<s[i];
}
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
8 | String s;
| ^~~~~~
a.cc:13:10: error: 's' was not declared in this scope
13 | cin>>s;
| ^
|
s316642420
|
p04043
|
C++
|
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
int n,l,i;
String s[1000];
i=0;
cin>> n >> l;
for(i=0;i<n;i++)
{
cin>>s[i];
}
sort(s+0,s+l);
for(i=0;i<n;i++)
{
cout<<s[i];
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
8 | String s[1000];
| ^~~~~~
a.cc:13:10: error: 's' was not declared in this scope
13 | cin>>s[i];
| ^
a.cc:16:8: error: 's' was not declared in this scope
16 | sort(s+0,s+l);
| ^
|
s672950202
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,l,i;
vector<String> s(100);
i=0;
cin>> n >> l;
for(i=0;i<n;i++)
{
cin>>s[i];
}
sort(s.begin(),s.end());
for(i=0;i<n;i++)
{
cout<<s[i];
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:10: error: 'String' was not declared in this scope
6 | vector<String> s(100);
| ^~~~~~
a.cc:6:16: error: template argument 1 is invalid
6 | vector<String> s(100);
| ^
a.cc:6:16: error: template argument 2 is invalid
a.cc:11:11: error: invalid types 'int[int]' for array subscript
11 | cin>>s[i];
| ^
a.cc:14:10: error: request for member 'begin' in 's', which is of non-class type 'int'
14 | sort(s.begin(),s.end());
| ^~~~~
a.cc:14:20: error: request for member 'end' in 's', which is of non-class type 'int'
14 | sort(s.begin(),s.end());
| ^~~
a.cc:17:12: error: invalid types 'int[int]' for array subscript
17 | cout<<s[i];
| ^
|
s926224988
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,l,i;
vector<String> s[100];
i=0;
cin>> n >> l;
for(i=0;i<n;i++)
{
cin>>s[i];
}
sort(v.begin(),v.end());
for(i=0;i<n;i++)
{
cout<<s[i];
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:10: error: 'String' was not declared in this scope
6 | vector<String> s[100];
| ^~~~~~
a.cc:6:16: error: template argument 1 is invalid
6 | vector<String> s[100];
| ^
a.cc:6:16: error: template argument 2 is invalid
a.cc:14:8: error: 'v' was not declared in this scope
14 | sort(v.begin(),v.end());
| ^
|
s517152121
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int a[3];
for(i=0;i<3;i++)
{
cin>>a[i];
}
sort(a,a+3);
if((a[0]==5)&&(a[1]==5)&&(a[2]==7))
{
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
6 | for(i=0;i<3;i++)
| ^
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
10 | sort(a,a+3);
| ^~~~
| short
|
s860835245
|
p04043
|
C++
|
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a >> b >> c;
if((a==5)&&(b==5)&&(c==7))
{
cout<<"YES";
}
else if((a==7)&&(b==5)&&(c==5))
{
cout<<"YES";
}
else if((a==5)&&(b==7)&&(c==5))
{
cout<<"yes"
}
else
{
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:20:15: error: expected ';' before '}' token
20 | cout<<"yes"
| ^
| ;
21 | }
| ~
|
s429741580
|
p04043
|
C++
|
#include<iostream>
int main()
{
int a,b,c;
cin>>a >> b >> c;
if((a==5)&&(b==5)&&(c==7))
{
cout<<"YES";
}
else if((a==7)&&(b==5)&&(c==5))
{
cout<<"YES";
}
else if((a==5)&&(b==7)&&(c==5))
{
cout<<"yes"
}
else
{
cout<<"NO";
}
return 0;
}
|
a.cc: 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:9:9: 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
14 | 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:19:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
19 | 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:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
23 | cout<<"NO";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s723568671
|
p04043
|
C++
|
xz
|
a.cc:1:1: error: 'xz' does not name a type
1 | xz
| ^~
|
s519359349
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> x = {a,b,c};
cin >> a >> b >> c;
sort(x.begin(), x.end());
if(a==5 && b==5 && c==7)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:5:20: error: 'a' was not declared in this scope
5 | vector<int> x = {a,b,c};
| ^
a.cc:5:22: error: 'b' was not declared in this scope
5 | vector<int> x = {a,b,c};
| ^
a.cc:5:24: error: 'c' was not declared in this scope
5 | vector<int> x = {a,b,c};
| ^
a.cc:5:25: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
5 | vector<int> x = {a,b,c};
| ^
| |
| <brace-enclosed initializer list>
|
s366231244
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
sort(a, b, c);
if(a==5 && b==5 && c==7)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
|
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]':
/usr/include/c++/14/bits/stl_algo.h:1817:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1908:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1908 | std::__final_insertion_sort(__first, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = int]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:7: required from here
7 | sort(a, b, c);
| ~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1780:17: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
1780 | __val = _GLIBCXX_MOVE(*__i);
| ^~~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61,
from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60:
/usr/include/c++/14/bits/stl_algo.h:1780:25: error: invalid type argument of unary '*' (have 'int')
1780 | __val = _GLIBCXX_MOVE(*__i);
| ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1782:15: error: invalid type argument of unary '*' (have 'int')
1782 | *__first = _GLIBCXX_MOVE(__val);
| ^~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:71:
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = int; _Iterator2 = int; _Compare = int]':
/usr/include/c++/14/bits/stl_algo.h:1777:14: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1777 | if (__comp(__i, __first))
| ~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1817:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1908:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1908 | std::__final_insertion_sort(__first, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = int]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:7: required from here
7 | sort(a, b, c);
| ~~~~^~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:31: error: invalid type argument of unary '*' (have 'int')
158 | { return bool(_M_comp(*__it1, *__it2)); }
| ^~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:39: error: invalid type argument of unary '*' (have 'int')
158 | { return bool(_M_comp(*__it1, *__it2)); }
| ^~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:30: error: expression cannot be used as a function
158 | { return bool(_M_comp(*__it1, *__it2)); }
| ~~~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algo.h:61:
/usr/include/c++/14/bits/stl_heap.h: In instantiation of 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]':
/usr/include/c++/14/bits/stl_algo.h:1593:23: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1593 | std::__make_heap(__first, __middle, __comp);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1868:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1868 | std::__heap_select(__first, __middle, __last, __comp);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1884:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1884 | std::__partial_sort(__first, __last, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1905:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1905 | std::__introsort_loop(__first, __last,
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
1906 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1907 | __comp);
| ~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = int]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:7: required from here
7 | sort(a, b, c);
| ~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h:344:11: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
344 | _ValueType;
| ^~~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h:346:11: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
346 | _DistanceType;
| ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]':
/usr/include/c++/14/bits/stl_algo.h:1596:19: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1596 | std::__pop_heap(__first, __middle, __i, __comp);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1868:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1868 | std::__heap_select(__first, __middle, __last, __comp);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1884:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1884 | std::__partial_sort(__first, __last, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:1905:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
1905 | std::__introsort_loop(__first, __last,
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
1906 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1907 | __comp);
| ~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4805:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = int]'
4805 | std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:7: required from here
7 | sort(a, b, c);
| ~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h:258:9: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
258 | _ValueType;
| ^~~~~~~~~~
/usr/include/c++/14/bits/stl_heap.h:260:9: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
260 |
|
s405710887
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(void){
int A, B, C;
cin >> A >> B >> C;
if (A == 7 && B == 5 && C == 5)
cout << "YES" << endl;
else if (B == 7 && A == 5 && C == 5)
cout << "YES" << endl;
else if (C == 7 && A == 5 && B == 5)
cout << "YES" << endl;
else {
cout << "NO" << endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:3:15: note: to match this '{'
3 | int main(void){
| ^
|
s372093581
|
p04043
|
C++
|
// यस्य स्मरणमात्रेण जन्मसंसारबन्धनात् । विमुच्यते नमस्तस्मै विष्णवे प्रभविष्णवे ॥
/****
* Author- Indrajeet Mishra
* MNNIT Allahabad, Prayagraj
* Chemical Engineering undergraduate
****/
/*#pragma warning(disable:4996)
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize ("Ofast")
#pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize ("-ffloat-store")*/
#include <stdio.h>
#define ll long long
#define rep(i,x,y) for(ll i=x;i<y;i++)
#define test(s) if (!(s)) { cout << __LINE__ << " " << #s << endl; exit(-1); }
#define debug(x) do { std::cerr << x; } while (0)
#define endl "\n"
#define pb push_back
#define pf push_front
#define vll vector<ll>
#define dll deque<ll>
#define sll set<ll, greater <ll>>
#define mll map<ll, ll>
#define vii vector<int>
#define dii deque<int>
#define sii set <int, greater <int>>
#define mii map<int, int>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define mod 1000000007
#define inv2 500000004
#define inv6 166666668
#define N 1000005
#define inf 200000000
#define eps 1e-10
#define PI 3.14159265359
#define all(v) (v).begin(),(v).end()
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
#define gcd(a,b) __gcd(a,b)
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll a=0,b=0,c=0;cin>>a>>b>>c;
if(a*b*c==175)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
|
a.cc: In function 'int main()':
a.cc:52:5: error: 'ios_base' has not been declared
52 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
a.cc:53:5: error: 'cin' was not declared in this scope
53 | cin.tie(NULL);
| ^~~
a.cc:21:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
20 | #include <stdio.h>
+++ |+#include <iostream>
21 | #define ll long long
a.cc:55:19: error: 'cout' was not declared in this scope
55 | if(a*b*c==175)cout<<"YES"<<endl;
| ^~~~
a.cc:55:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:56:10: error: 'cout' was not declared in this scope
56 | else cout<<"NO"<<endl;
| ^~~~
a.cc:56:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
|
s561288017
|
p04043
|
C++
|
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
str ans = "NO";
cin >> a >> b >> c;
if(a==5||a==7){
if(b==5||b==7){
if(b==5||b==7){
if(a+b+c==17){
ans = "YES";
}
}
}
}
cout << ans << endl;
}
|
a.cc: In function 'int main()':
a.cc:7:3: error: 'str' was not declared in this scope; did you mean 'std'?
7 | str ans = "NO";
| ^~~
| std
a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
13 | ans = "YES";
| ^~~
| abs
a.cc:18:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
18 | cout << ans << endl;
| ^~~
| abs
|
s472133547
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int f=0,s=0;
if(a===5) f++;
if(a==7) s++;
if(b==7) s++;
if(b==5) f++;
if(c==5) f++;
if(c==7) s++;
if(f==2 && s==1) cout << "YES\n";
else cout << "NO\n";
}
|
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '=' token
7 | if(a===5) f++;
| ^
|
s193990029
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a>=5 && b >= 7 && c >=5) cout << "YES\n"
else cout << "NO\n"
}
|
a.cc: In function 'int main()':
a.cc:6:46: error: expected ';' before 'else'
6 | if(a>=5 && b >= 7 && c >=5) cout << "YES\n"
| ^
| ;
7 | else cout << "NO\n"
| ~~~~
|
s168050575
|
p04043
|
C++
|
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7))
cout << "YES";
else
cout << "NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before '||' token
8 | if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7))
| ^~
|
s026834463
|
p04043
|
C++
|
#include <bits/stdc++.h>
#define ll long long int
using namepace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7))
cout << "YES";
else
cout << "NO";
return 0;
}
|
a.cc:3:7: error: expected nested-name-specifier before 'namepace'
3 | using namepace std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from /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:8:22: error: expected primary-expression before '||' token
8 | if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7))
| ^~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout << "NO";
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s587218441
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if (a==7){
if (b==5 and c==5){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
else if (a==5){
if ((b==5 and c==7) or (b==7 and c==5)){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
}
|
a.cc: In function 'int main()':
a.cc:17:3: error: expected '}' before 'else'
17 | else if (a==5){
| ^~~~
a.cc:10:12: note: to match this '{'
10 | if (a==7){
| ^
|
s024164984
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if (a==7){
if (b==5 and c==5){
cout << 'yes' << endl;
}
else{
cout << 'no' << endl;
}
else if (a==5){
if ((b==5 and c==7) or (b==7 and c==5)){
cout << 'yes' << endl;
}
else{
cout << 'no' << endl;
}
}
}
|
a.cc:12:18: warning: multi-character character constant [-Wmultichar]
12 | cout << 'yes' << endl;
| ^~~~~
a.cc:15:15: warning: multi-character character constant [-Wmultichar]
15 | cout << 'no' << endl;
| ^~~~
a.cc:19:14: warning: multi-character character constant [-Wmultichar]
19 | cout << 'yes' << endl;
| ^~~~~
a.cc:22:15: warning: multi-character character constant [-Wmultichar]
22 | cout << 'no' << endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:17:3: error: expected '}' before 'else'
17 | else if (a==5){
| ^~~~
a.cc:10:12: note: to match this '{'
10 | if (a==7){
| ^
|
s082471444
|
p04043
|
Java
|
import java.util.Scanner;
public class Contest {
public static void main(String[] args) {
Scanner sc=new Scanner (System.in);
int a,b,c;
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
if(a==5&&b==5&&c==7)
{
System.out.println("YES");
}
else if(a==5&&b==7&&c==5){
System.out.println("YES");
}
else if(a==7&&b==5&&c==5){
System.out.println("YES");
}
else {
System.out.println("NO");
}
}
}
|
Main.java:3: error: class Contest is public, should be declared in a file named Contest.java
public class Contest {
^
1 error
|
s247933632
|
p04043
|
C
|
#include <iostream>
using namespace std;
int main(void) {
int A = 5;
int B = 7;
int C = 5;
int a, b, c;
cin >> a >> b >> c;
if (a == A && b == B && c == C){
cout << "YES" << endl;
} else if (a == B && b == C && c == A){
cout << "YES" << endl;
} else if (a == C && b == A && c == B){
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s598578247
|
p04043
|
C
|
#include <iostream>
using namespace std;
int main(void) {
int A = 5;
int B = 7;
int C = 5;
int a, b, c;
cin >> a >> b >> c;
if (a == A && b == B && c == C){
cout << "YES";
} else if (a == B && b == C && c == A){
cout << "YES";
} else if (a == C && b == A && c == B){
cout << "YES";
} else {
cout << "NO";
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s706762363
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main()
{
int arr[4];
cin >> a[0]>> a[1] >> a[2];
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:8: error: 'a' was not declared in this scope
7 | cin >> a[0]>> a[1] >> a[2];
| ^
a.cc:8:10: error: 'b' was not declared in this scope
8 | if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5)
| ^
a.cc:8:16: error: 'c' was not declared in this scope
8 | if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5)
| ^
|
s909109278
|
p04043
|
C++
|
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
int n,m,l;cin>>n>>l>>m;
if(n+m+l==17)
cout<<"YES\n";
else
cout<<"NO\n";
}
|
a.cc: In function 'int main()':
a.cc:105:1: error: a template declaration cannot appear at block scope
105 | template<typename T>inline T S(T a)
| ^~~~~~~~
a.cc:115:1: error: a template declaration cannot appear at block scope
115 | template<typename T>inline ll tolong(T a)
| ^~~~~~~~
a.cc:127:1: error: a template declaration cannot appear at block scope
127 | template<typename T>inline T bigmod(T a, T b, T m)
| ^~~~~~~~
a.cc:156:1: error: a function-definition is not allowed here before '{' token
156 | {
| ^
a.cc:168:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
168 | int main()
| ^~
a.cc:168:9: note: remove parentheses to default-initialize a variable
168 | int main()
| ^~
| --
a.cc:168:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:169:1: error: a function-definition is not allowed here before '{' token
169 | {
| ^
a.cc:177:2: error: expected '}' at end of input
177 | }
| ^
a.cc:84:1: note: to match this '{'
84 | {
| ^
|
s131888135
|
p04043
|
C
|
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((a==5&&b==5&&c==7||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5))
printf("YES\n");
else
printf("NO\n");
return 0;
}
|
main.c: In function 'main':
main.c:6:66: error: expected ')' before 'printf'
6 | if((a==5&&b==5&&c==7||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5))
| ~ ^
| )
7 | printf("YES\n");
| ~~~~~~
main.c:12:1: error: expected expression before '}' token
12 | }
| ^
|
s481346672
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main ()
{
int a,b,c;
cin >> a >> b >> c;
if (a+b+c == 17)
{
cout << "Yes";
}
else {
cout << "No";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
16 | }
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s527400327
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main ()
{
int a,b,c;
cin >> a >> b >> c;
if (a == 5 || b == 5 || c == 7)
{
cout << "Yes";
}
else if (a == 5 || b == 7 || c == 5)
{
cout << "Yes";
}
else if (a == 7 || b == 5 || c == 5)
{
cout << "Yes";
}
else {
cout << "No";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
24 | }
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s980322020
|
p04043
|
C++
|
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
int n,m,l;cin>>n>>l>>m;
if(n+m+l==17)
cout<<"YES\n";
else
cout<<"NO\n";
}
|
a.cc: In function 'int main()':
a.cc:105:1: error: a template declaration cannot appear at block scope
105 | template<typename T>inline T S(T a)
| ^~~~~~~~
a.cc:115:1: error: a template declaration cannot appear at block scope
115 | template<typename T>inline ll tolong(T a)
| ^~~~~~~~
a.cc:127:1: error: a template declaration cannot appear at block scope
127 | template<typename T>inline T bigmod(T a, T b, T m)
| ^~~~~~~~
a.cc:156:1: error: a function-definition is not allowed here before '{' token
156 | {
| ^
a.cc:168:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
168 | int main()
| ^~
a.cc:168:9: note: remove parentheses to default-initialize a variable
168 | int main()
| ^~
| --
a.cc:168:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:169:1: error: a function-definition is not allowed here before '{' token
169 | {
| ^
a.cc:177:2: error: expected '}' at end of input
177 | }
| ^
a.cc:84:1: note: to match this '{'
84 | {
| ^
|
s403712149
|
p04043
|
C++
|
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,l;cin>>n>>l>>m;
if(n+m+l==17)
cout<<"YES\n";
else
cout<<"NO\n";
}
}
|
a.cc: In function 'int main()':
a.cc:88:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
88 | int main()
| ^~
a.cc:88:9: note: remove parentheses to default-initialize a variable
88 | int main()
| ^~
| --
a.cc:88:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:89:1: error: a function-definition is not allowed here before '{' token
89 | {
| ^
|
s517261372
|
p04043
|
C++
|
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T S(T a)
{
return a*a;
}
template<class T>inline string tostring(T a)
{
ostringstream os("");
os << a;
return os.str();
}
template<typename T>inline ll tolong(T a)
{
ll res;
istringstream os(a);
os>>res;
return res;
}
template<typename T>inline T gcd(T a, T b)
{
if (b == 0)return a;
else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
if (b == 0)return 1;
else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{
memset(prime, true, sizeof(prime));
for( ll i=2; i*i<=N; i++)
{
if (prime[i] == true)
{
prm.pb(i);
for (ll j=i*i; j<=N; j += i)
prime[j] = false;
}
}
}*/
void pr (int f)
{
if(f==1)
cout<<"YES\n";
else
cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;
deque <char> q ;
int vis [1000];
int main()
{
fast ;
int n,m,l;cin>>n>>l>>m;
if(n+m+l==17)
cout<<"YES\n";
else
cout<<"NO\n";
}
|
a.cc: In function 'int main()':
a.cc:105:1: error: a template declaration cannot appear at block scope
105 | template<typename T>inline T S(T a)
| ^~~~~~~~
a.cc:115:1: error: a template declaration cannot appear at block scope
115 | template<typename T>inline ll tolong(T a)
| ^~~~~~~~
a.cc:127:1: error: a template declaration cannot appear at block scope
127 | template<typename T>inline T bigmod(T a, T b, T m)
| ^~~~~~~~
a.cc:156:1: error: a function-definition is not allowed here before '{' token
156 | {
| ^
a.cc:168:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
168 | int main()
| ^~
a.cc:168:9: note: remove parentheses to default-initialize a variable
168 | int main()
| ^~
| --
a.cc:168:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:169:1: error: a function-definition is not allowed here before '{' token
169 | {
| ^
a.cc:177:2: error: expected '}' at end of input
177 | }
| ^
a.cc:84:1: note: to match this '{'
84 | {
| ^
|
s541323974
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int fives=0, sevens=0;
if(a == 5)
fives++;
if(b == 5)
fives++;
if(c == 5)
fives++;
if(a == 7)
sevens++;
if(b == 7)
sevens++;
if(c == 7)
sevens++;
if(fives == 2 && sevens == 1)
cout << "YES";
else
cout << "NO;
return 0;
}
|
a.cc:24:15: warning: missing terminating " character
24 | cout << "NO;
| ^
a.cc:24:15: error: missing terminating " character
24 | cout << "NO;
| ^~~~
a.cc: In function 'int main()':
a.cc:25:6: error: expected primary-expression before 'return'
25 | return 0;
| ^~~~~~
|
s163354146
|
p04043
|
C++
|
#inclde <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:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
1 | #inclde <bits/stdc++.h>
| ^~~~~~
| include
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 | #inclde <bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << "YES" << endl;
| ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'endl' was not declared in this scope
8 | 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 | #inclde <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
11 | cout << "NO" << endl;
| ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:21: error: 'endl' was not declared in this scope
11 | cout << "NO" << endl;
| ^~~~
a.cc:11:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s977251906
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespce 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:2:7: error: expected nested-name-specifier before 'namespce'
2 | using namespce std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> A >> B >> c;
| ^~~
| std::cin
In file included from /usr/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:6:20: error: 'c' was not declared in this scope
6 | cin >> A >> B >> c;
| ^
a.cc:8:27: error: lvalue required as left operand of assignment
8 | if (A = 5, B = 5, C = 7 || A = 5, B = 7, C = 5 || A = 7, B = 5, C = 5) {
| ~~^~~~
a.cc:8:50: error: lvalue required as left operand of assignment
8 | if (A = 5, B = 5, C = 7 || A = 5, B = 7, C = 5 || A = 7, B = 5, C = 5) {
| ~~^~~~
a.cc:9:5: 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:22: 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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
13 | 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
| ^~~~
|
s196712825
|
p04043
|
C
|
##include<stdio.h>
int main(){
int a;
int count1=0,count2=0;
for(int i=1;i<=3;i++){
scanf("%d ",&a);
if(a==5) count1++;
else if(a==7) count2++;
}
if(count1==2 && count2==1) printf("YES\n");
else printf("NO\n");
return 0;
}
|
main.c:1:1: error: stray '##' in program
1 | ##include<stdio.h>
| ^~
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | ##include<stdio.h>
| ^
|
s192436389
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(void){
// Your code here!
int A,B,C;
cin>>A>>B>>C;
if(A==5)
cout<<"YES"<<endl;
else if(B==7)
cout<<"YES"<<endl;
else if(C==5)
cout"YES"<<endl;
else
cout"NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before string constant
12 | cout"YES"<<endl;
| ^~~~~
| ;
a.cc:14:8: error: expected ';' before string constant
14 | cout"NO"<<endl;
| ^~~~
| ;
|
s215132771
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if (a + b + c = 17) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:6:15: error: lvalue required as left operand of assignment
6 | if (a + b + c = 17) {
| ~~~~~~^~~
|
s983416636
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int a, b, c;
cin a >> b >> c;
if (a + b + c = 17) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:5:8: error: expected ';' before 'a'
5 | cin a >> b >> c;
| ^~
| ;
a.cc:6:15: error: lvalue required as left operand of assignment
6 | if (a + b + c = 17) {
| ~~~~~~^~~
|
s070333312
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
int D=0;
int E=0;
if(A==5){
D++;
}
else if(A==7){
E++;
}
if(B==5){
D++;
}
else if(B==7){
E++;
}
if(C==5){
D++;
}
else if(C==7){
E++;
}
if(D==2&&F==1){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:27:12: error: 'F' was not declared in this scope
27 | if(D==2&&F==1){
| ^
|
s225250897
|
p04043
|
C++
|
#include<bits/std++.h>
using namespace std;
int main(){
int five=0,seven=0;
int x;
for(int i=0;i<3;i++){
cin>>x;
if(x==5) fivee++;
if(x==7) seven++;
}
if(five==2 && seven==7) cout<<"YES";
else cout<<"NO";
return 0;
}
|
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
1 | #include<bits/std++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s895170414
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main();
int five=0,seven=0;
int x;
for(int i=0;i<3;i++){
cin>>x;
if(x==5) fivee++;
if(x==7) seven++;
}
if(five==2 && seven==7) cout<<"YES";
else cout<<"NO";
return 0;
}
|
a.cc:6:9: error: expected unqualified-id before 'for'
6 | for(int i=0;i<3;i++){
| ^~~
a.cc:6:21: error: 'i' does not name a type
6 | for(int i=0;i<3;i++){
| ^
a.cc:6:25: error: 'i' does not name a type
6 | for(int i=0;i<3;i++){
| ^
a.cc:11:9: error: expected unqualified-id before 'if'
11 | if(five==2 && seven==7) cout<<"YES";
| ^~
a.cc:12:9: error: expected unqualified-id before 'else'
12 | else cout<<"NO";
| ^~~~
a.cc:13:9: error: expected unqualified-id before 'return'
13 | return 0;
| ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
14 | }
| ^
|
s176004357
|
p04043
|
C++
|
#include<bits/std++.h>
using namespace std;
int main();
int five=0,seven=0;
int x;
for(int i=0;i<3;i++){
cin>>x;
if(x==5) five++;
if(x==7) seven++;
}
if(five==2 && seven==7) cout<<"YES";
else cout<<"NO";
return 0;
}
|
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
1 | #include<bits/std++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s123162681
|
p04043
|
C++
|
#include<bits/std++.h>
using namespace std;
int main();
int five=0,seven=0;
int x;
for(int i=0;i<3;i++){
cin>>x;
if(x==5) fivee++;
if(x==7) seven++;
}
if(five==2 && seven==7) cout<<"YES";
else cout<<"NO";
return 0;
}
|
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
1 | #include<bits/std++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s495450312
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a[8], b, c;
a[7] = 1;
a[5] = 2;
for(int i = 0; i < 3; i++)
cin >> x, a[x]--;
if(a[7] >= 0 && a[5] >= 0) cout << "YES";
else cout << "NO";
}
|
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
10 | cin >> x, a[x]--;
| ^
|
s235874350
|
p04043
|
C++
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a[8], b, c;
a[7] = 1;
a[5] = 2;
for(int i = 0; i < 3; i++)
cin >> x, a[x]--;
if(a[7] >= 0 && a[5] >= 0) cout << "YES";
else cout << "NO"
}
|
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
10 | cin >> x, a[x]--;
| ^
a.cc:12:20: error: expected ';' before '}' token
12 | else cout << "NO"
| ^
| ;
13 | }
| ~
|
s204721567
|
p04043
|
C++
|
#include<bit/stdc++.h>
using namespace std;
int main()
{
int a[8], b, c;
a[7] = 1;
a[5] = 2;
for(int i = 0, x; i < 3; i++)
cin >> x, a[x]--;
if(a[7] >= 0 && a[5] >= 0) cout << "YES";
else cout << "NO"
}
|
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
1 | #include<bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s826405349
|
p04043
|
C++
|
#include<bit/stdc++.h>
using namespace std;
int main()
{
int a[8], b, c;
a[7] = 1;
a[5] = 2;
for(int i = 0; i < 3; i++)
cin >> x, a[x]--;
if(a[7] >= 0 && a[5] >= 0) cout << "YES";
else cout << "NO"
}
|
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
1 | #include<bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s456070829
|
p04043
|
C++
|
#include<bit/stdc++.h>
using namespace std;
int main()
{
int a[3], b, c;
cin >> a[0] >> a[1] >> a[2];
sort(a,a + 3);
if(a[0] == 5 && a[1] == 5 && a[2] == 7) cout << "Yes";
else cout << "No";
}
|
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
1 | #include<bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s786247229
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main(){
int A,B,C,D;
cin >> A >> B >> C;
if(A>=C&&A>=B){
D=A;
A=B;
B=D;
}
if else(C>=A&&C>=B){
D=C;
C=B;
B=D;
}
if(A==5&&B==7&&C==5){
cout << "yes" ;
}
else{
cout << "no" ;
}
}
|
a.cc: In function 'int main()':
a.cc:12:6: error: expected '(' before 'else'
12 | if else(C>=A&&C>=B){
| ^~~~
| (
|
s144188030
|
p04043
|
Java
|
import java.util.ArrayList;
import java.util.list;
import java,.util.Scanner;
public class Main{
Main()
public static void mina(String args[]){
Scanner sc = new Scanner(System.in);
//コンソールから値を受け取る
List<Integer> list = new ArrayList<>();
for(int i=0;sc.hasNext();i++){
list.add(sc.nextInt());
}
int n5=0;
int n7=0;
//入力された数値のカウント
for(int n:list){
if(n==5){
n5++;
}
if(n==7){
n7++;
}
}
//入力された数値が5・7・5に並び替えられるかの凡例
System.out.println(n5==2&&n7==1? "YES":"NO");
}
}
|
Main.java:3: error: '.' expected
import java,.util.Scanner;
^
Main.java:7: error: ';' expected
Main()
^
Main.java:22: error: illegal character: '\u3000'
?for(int n:list){
^
Main.java:23: error: illegal character: '\u3000'
? if(n==5){
^
Main.java:24: error: illegal character: '\u3000'
? n5++;
^
Main.java:25: error: illegal character: '\u3000'
? }
^
Main.java:26: error: illegal character: '\u3000'
? if(n==7){
^
Main.java:27: error: illegal character: '\u3000'
? n7++;
^
Main.java:28: error: illegal character: '\u3000'
? }
^
Main.java:29: error: illegal character: '\u3000'
?}
^
Main.java:30: error: illegal character: '\u3000'
?//????????5?7?5????????????
^
Main.java:31: error: illegal character: '\u3000'
?System.out.println(n5==2&&n7==1? "YES":"NO");
^
Main.java:32: error: illegal character: '\u3000'
?}
^
13 errors
|
s757384066
|
p04043
|
Java
|
/**
* Atcorder 提出
* @return
*
*/
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
/* コンソールから、数値を受け取る */
List<Integer> list = new ArrayList<>();
for (int i = 0; sc.hasNext(); i++) {
list.add(sc.nextInt());
}
int n5 = 0;
int n7 = 0;
/* 入力された数値のカウント */
for (int n : list) {
if (n == 5) {
n5++;
}
if (n == 7) {
n7++;
}
}
/* 入力された数値が 5・7・7に並び替えられるかを判定 */
System.out.println(n5 == 2 && n7 == 1 ? "YES" : "NO");
}
|
Main.java:7: 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
|
s047362101
|
p04043
|
Java
|
/**
* 和風いろはちゃんイージー
*
*/
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
/* コンソールから、数値を受け取る */
List<Integer> list = new ArrayList<>();
for (int i = 0; sc.hasNext(); i++) {
list.add(sc.nextInt());
}
int n5 = 0;
int n7 = 0;
/* 入力された数値のカウント */
for (int n : list) {
if (n == 5) {
n5++;
}
if (n == 7) {
n7++;
}
}
/* 入力された数値が 5・7・7に並び替えられるかを判定 */
System.out.println(n5 == 2 && n7 == 1 ? "YES" : "NO");
}
|
Main.java:5: 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
|
s054105711
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int tableau[3];
cin >> tableau[0] >> tableau[1] >> tableau[2];
sort(tableau, tableau + 3);
int a = tableau[0], b = tableau[1], c = tableau[2];
if ((a == 5)&& (b == 5) && (c == 7))
cout << "YES";
else
cout << "NO";
return 0;
}
|
a.cc:5:34: error: extended character is not valid in an identifier
5 | cin >> tableau[0] >> tableau[1] >> tableau[2];
| ^
a.cc: In function 'int main()':
a.cc:5:34: error: expected ';' before '\U000000a0'
5 | cin >> tableau[0] >> tableau[1] >> tableau[2];
| ^
| ;
|
s377161741
|
p04043
|
C
|
#include <stdio.h>
int main(){
int a[3];
for(int z=0;z<3;z++){
scanf("%d", &a[z]);
}
int co5=0;
int c07=0;
for(int x=0;x<3;x++){
if(a[x]==5){
co5++;
}
else if(a[x]==7){
c07++;
}
}
if(c05==2 && c07==1){
printf("YES\n");
}
else{
printf("NO\n");
}
}
|
main.c: In function 'main':
main.c:19:8: error: 'c05' undeclared (first use in this function); did you mean 'c07'?
19 | if(c05==2 && c07==1){
| ^~~
| c07
main.c:19:8: note: each undeclared identifier is reported only once for each function it appears in
|
s191215833
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(),a.end());
if(a=={5,7,5}) cout << "YES" << endl;
else cout << "NO" << endl;
}
|
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '{' token
8 | if(a=={5,7,5}) cout << "YES" << endl;
| ^
a.cc:8:9: error: expected ')' before '{' token
8 | if(a=={5,7,5}) cout << "YES" << endl;
| ~ ^
| )
|
s156581006
|
p04043
|
Java
|
import java.util.Arrays;
import java.util.Scanner;
public class main {
public static void Main(String[] args) {
Scanner sc = new Scanner(System.in);
int tempList[] = new int[3];
for (int i = 0; i < 3; i++) {
tempList[i] = sc.nextInt();
}
Arrays.sort(tempList);
int[] anserList = {5, 5, 7};
if (Arrays.equals(tempList, anserList)) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}
|
Main.java:4: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s843842926
|
p04043
|
Java
|
import java.util.Arrays;
import java.util.Scanner;
public class atcoder {
public static void Main(String[] args) {
Scanner sc = new Scanner(System.in);
int tempList[] = new int[3];
for (int i = 0; i < 3; i++) {
tempList[i] = sc.nextInt();
}
Arrays.sort(tempList);
int[] anserList = {5, 5, 7};
if (Arrays.equals(tempList, anserList)) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}
|
Main.java:4: error: class atcoder is public, should be declared in a file named atcoder.java
public class atcoder {
^
1 error
|
s633521084
|
p04043
|
Java
|
import java.util.Arrays;
import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int tempList[] = new int[3];
for (int i = 0; i < 3; i++) {
tempList[i] = sc.nextInt();
}
Arrays.sort(tempList);
int[] anserList = {5, 5, 7};
if (Arrays.equals(tempList, anserList)) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}
|
Main.java:4: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s718441573
|
p04043
|
Java
|
import java.util.Arrays;
import java.util.Scanner;
public class atcoder {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int tempList[] = new int[3];
for (int i = 0; i < 3; i++) {
tempList[i] = sc.nextInt();
}
Arrays.sort(tempList);
int[] anserList = {5, 5, 7};
if (Arrays.equals(tempList, anserList)) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}
|
Main.java:4: error: class atcoder is public, should be declared in a file named atcoder.java
public class atcoder {
^
1 error
|
s498164902
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
string A,B,C;
cin>>A>>B>>C;
bool can=false;
if(A.size()+B.size()+c.size()==17){
if(A.size()==7||A.size()==5){
if(B.size()==7||B.size()==5){
if(C.size()==7||C.size()==5){
can=true;
}
}
}
}
if(can){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:24: error: 'c' was not declared in this scope
8 | if(A.size()+B.size()+c.size()==17){
| ^
|
s633832372
|
p04043
|
C++
|
#include<bits/stdc++.h>
2 using namespace std;
3
4 int main(){
5 vector<int> a(3);
6 for(int i=0;i<3;++i){
7 cin >> a.at(i);
8 }
9 int num_5=0;
10 int num_7=0;
11 for(int i=0;i<3;++i){
12 if(a.at(i)==5) num_5++;
13 if(a.at(i)==7) num_7++;
14 }
15 if(num_5==2 && num_7==1){
16 cout<<"YES"<<endl;
17 }else{
18 cout<<"NO"<<endl;;
19 }
20 }
|
a.cc:2:3: error: expected unqualified-id before numeric constant
2 | 2 using namespace std;
| ^
a.cc:3:3: error: expected unqualified-id before numeric constant
3 | 3
| ^
|
s356793427
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
//long long
using ll = long long;
// pair<int, int>
using PII = pair<int, int>;
//最大値、mod
const int MOD = 1000000007;
const int mod = 1000000007;
const int INF = 1000000000;
const long long LINF = 1e18;
const int MAX = 510000;
//出力系
#define print(x) cout << x << endl
#define prints(x) cout << fixed << setprecision(20) << x << endl
#define printc(x) cout << setw(2) << setfill('0') << x << endl;
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
// begin() end()
#define all(x) (x).begin(),(x).end()
//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rrep(i,a,b) for(int i=(a);i>(b);i--)
#define rep(i,a,b) for(int i=(a);i<(b);i++)
//最大公約数
unsigned gcd(unsigned a, unsigned b) {
if(a < b) return gcd(b, a);
unsigned r;
while ((r=a%b)) {
a = b;
b = r;
}
return b;
}
// 最小公倍数
unsigned lcm(unsigned a, unsigned b){
return a / gcd(a, b) * b;
}
// a = max(a, b), a = min(a, b)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
// 階乗(MODをとる)
ll pow_mod(ll num, ll pow, ll mod) {
ll prod = 1;
num %= mod;
while (pow > 0) {
if (pow & 1) prod = prod * num % mod;
num = num * num % mod;
pow >>= 1;
}
return prod;
}
// 二項係数(MODとる、1 ≦ k ≦ n ≦ 10^7 程度)
// COMinit()
// COM(x, y)
// とコンビで使う
// テーブルを作る前処理
long long fac[MAX], finv[MAX], inv[MAX];
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < MAX; i++){
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
finv[i] = finv[i - 1] * inv[i] % MOD;
}
}
// 二項係数計算
long long COM(int n, int k){
if (n < k) return 0;
if (n < 0 || k < 0) return 0;
return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
// UnionFind
struct UnionFind {
vector<int> par;
vector<int> rank;
vector<ll> Size;
UnionFind(int n = 1) {
init(n);
}
void init(int n = 1) {
par.resize(n + 1); rank.resize(n + 1); Size.resize(n + 1);
for (int i = 0; i <= n; ++i) par[i] = i, rank[i] = 0, Size[i] = 1;
}
int root(int x) {
if (par[x] == x) {
return x;
}
else {
int r = root(par[x]);
return par[x] = r;
}
}
bool issame(int x, int y) {
return root(x) == root(y);
}
bool merge(int x, int y) {
x = root(x); y = root(y);
if (x == y) return false;
if (rank[x] < rank[y]) swap(x, y);
if (rank[x] == rank[y]) ++rank[x];
par[y] = x;
Size[x] += Size[y];
return true;
}
ll size(int x){
return Size[root(x)];
}
};
//modint構造体
struct Mint {
int val;
Mint inv() const{
int tmp,a=val,b=mod,x=1,y=0;
while(b)tmp=a/b,a-=tmp*b,swap(a,b),x-=tmp*y,swap(x,y);
return Mint(x);
}
public:
Mint():val(0){}
Mint(ll x){if((val=x%mod)<0)val+=mod;}
Mint pow(ll t){Mint res=1,b=*this; while(t){if(t&1)res*=b;b*=b;t>>=1;}return res;}
Mint& operator+=(const Mint& x){if((val+=x.val)>=mod)val-=mod;return *this;}
Mint& operator-=(const Mint& x){if((val+=mod-x.val)>=mod)val-=mod; return *this;}
Mint& operator*=(const Mint& x){val=(ll)val*x.val%mod; return *this;}
Mint& operator/=(const Mint& x){return *this*=x.inv();}
bool operator==(const Mint& x) const{return val==x.val;}
bool operator!=(const Mint& x) const{return val!=x.val;}
bool operator<(const Mint& x) const{return val<x.val;}
bool operator<=(const Mint& x) const{return val<=x.val;}
bool operator>(const Mint& x) const{return val>x.val;}
bool operator>=(const Mint& x) const{return val>=x.val;}
Mint operator+(const Mint& x) const{return Mint(*this)+=x;}
Mint operator-(const Mint& x) const{return Mint(*this)-=x;}
Mint operator*(const Mint& x) const{return Mint(*this)*=x;}
Mint operator/(const Mint& x) const{return Mint(*this)/=x;}
};
struct factorial {
vector<Mint> Fact, Finv;
public:
//factorial fact(10000010);
//fact.nCr(a, b)
//「fact」の部分は自由に名前変更可能
factorial(int maxx){
Fact.resize(maxx+1),Finv.resize(maxx+1); Fact[0]=Mint(1); rep(i,0,maxx)Fact[i+1]=Fact[i]*(i+1);
Finv[maxx]=Mint(1)/Fact[maxx]; rrep(i,maxx,0)Finv[i-1]=Finv[i]*i;
}
Mint fact(int n,bool inv=0){if(inv)return Finv[n];else return Fact[n];}
Mint nPr(int n,int r){if(n<0||n<r||r<0)return Mint(0);else return Fact[n]*Finv[n-r];}
Mint nCr(int n,int r){if(n<0||n<r||r<0)return Mint(0);else return Fact[n]*Finv[r]*Finv[n-r];}
};
// 1 * 2 * 3 .... * n (mod)
ll modfact(ll n) {
if (n <= 1) return 1;
return (n * modfact(n - 1)) % MOD;
}
// kが角度だった場合:cos(k * (PI / 180));
const double PI = acos(-1);
// 多次元 vector 生成 例: auto dp = make_vec<long long>(N+1, 5, 5, 5);
template<class T>
vector<T> make_vec(size_t a){
return vector<T>(a);
}
template<class T, class... Ts>
auto make_vec(size_t a, Ts... ts){
return vector<decltype(make_vec<T>(ts...))>(a, make_vec<T>(ts...));
}
//int dx[4] = {0, 0, 1, -1}, dy[4] = {1, -1, 0, 0};
int main(){
char c[3];
REP(i, 3) cin >> c[i];
count(all(c), '5') == 2 && count(all(c), '7') == 1 ? YES : NO;
}
|
a.cc: In function 'int main()':
a.cc:29:20: error: request for member 'begin' in 'c', which is of non-class type 'char [3]'
29 | #define all(x) (x).begin(),(x).end()
| ^~~~~
a.cc:214:11: note: in expansion of macro 'all'
214 | count(all(c), '5') == 2 && count(all(c), '7') == 1 ? YES : NO;
| ^~~
a.cc:29:32: error: request for member 'end' in 'c', which is of non-class type 'char [3]'
29 | #define all(x) (x).begin(),(x).end()
| ^~~
a.cc:214:11: note: in expansion of macro 'all'
214 | count(all(c), '5') == 2 && count(all(c), '7') == 1 ? YES : NO;
| ^~~
a.cc:29:20: error: request for member 'begin' in 'c', which is of non-class type 'char [3]'
29 | #define all(x) (x).begin(),(x).end()
| ^~~~~
a.cc:214:38: note: in expansion of macro 'all'
214 | count(all(c), '5') == 2 && count(all(c), '7') == 1 ? YES : NO;
| ^~~
a.cc:29:32: error: request for member 'end' in 'c', which is of non-class type 'char [3]'
29 | #define all(x) (x).begin(),(x).end()
| ^~~
a.cc:214:38: note: in expansion of macro 'all'
214 | count(all(c), '5') == 2 && count(all(c), '7') == 1 ? YES : NO;
| ^~~
|
s182707369
|
p04043
|
Java
|
public static void main(String[] args){
int count5 = 0;
int count7 = 0;
for(String arg : args){
if(arg.equals("5")){
count5++;
} else if(arg.equals("7")){
count7++;
}
}
if(count5 == 2 && count7 == 1){
System.out.println("YES");
}else {
System.out.println("NO");
}
}
|
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
^
(use --enable-preview to enable unnamed classes)
1 error
|
s967140774
|
p04043
|
C++
|
#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int a,b,c;
cin >> a >> b >> c;
if(a*b*c == 5*5*7) cout <<"YES" << endl;
else cout <<"NO" << endl;
return 0;
}
|
a.cc:28:21: error: extended character is not valid in an identifier
28 | if(a*b*c == 5*5*7) cout <<"YES" << endl;
| ^
a.cc: In function 'int main()':
a.cc:28:21: error: '\U00003000cout' was not declared in this scope
28 | if(a*b*c == 5*5*7) cout <<"YES" << endl;
| ^~~~~~
|
s939761365
|
p04043
|
C++
|
#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int a,b,c;
cin >> a >> b >> c;
if(a*b*c == 5*5*7) cout <<"YES" << endl;
else cout <<"NO" << endl;
return 0;
}
|
a.cc:28:21: error: extended character is not valid in an identifier
28 | if(a*b*c == 5*5*7) cout <<"YES" << endl;
| ^
a.cc: In function 'int main()':
a.cc:28:21: error: '\U00003000cout' was not declared in this scope
28 | if(a*b*c == 5*5*7) cout <<"YES" << endl;
| ^~~~~~
|
s811656093
|
p04043
|
C++
|
#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
vector<int>vec(3);
rep(i,3) cin >> vec[i];
sort(vec.begin(),vec.end());
if(vec[0]==5 && vec[1] == 5 && vec[2] == 7) puts("YES");
else puts("NO");
return 0;
}
|
a.cc:29:46: error: extended character is not valid in an identifier
29 | if(vec[0]==5 && vec[1] == 5 && vec[2] == 7) puts("YES");
| ^
a.cc: In function 'int main()':
a.cc:29:46: error: '\U00003000puts' was not declared in this scope; did you mean 'puts'?
29 | if(vec[0]==5 && vec[1] == 5 && vec[2] == 7) puts("YES");
| ^~~~~~
| puts
|
s703348097
|
p04043
|
Java
|
public class Main{
public static void main(String[] args) {
char arr[] = new Scanner(System.in).next().toCharArray();
int sum = 0;
int counter = 0;
for (int i = 0; i < arr.length; i++) {
if (Integer.parseInt(String.valueOf(arr[i])) >= 1 && Integer.parseInt(String.valueOf(arr[i])) <= 10)
counter++;
}
if (counter == arr.length) {
for (int i = 0; i < arr.length; i++) {
sum += Integer.parseInt(String.valueOf(arr[i]));
}
if (sum == 17)
System.out.println("YES");
else
System.out.println("NO");
}
}
}
|
Main.java:5: error: cannot find symbol
char arr[] = new Scanner(System.in).next().toCharArray();
^
symbol: class Scanner
location: class Main
1 error
|
s276083275
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){
if( A+B+C == 17 ){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '(' token
8 | if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){
| ^
a.cc:8:12: error: expected ')' before '(' token
8 | if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){
| ~ ^
| )
|
s875664401
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
if( A+B+C == 17 ){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:25: error: lvalue required as left operand of assignment
8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
| ~~^~~~~~~~~~~~~~~~~~
|
s236310905
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
if( A+B+C == 17 ){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
else {
cout << "NO" << endl;
}
}
|
a.cc: In function 'int main()':
a.cc:8:25: error: lvalue required as left operand of assignment
8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
| ~~^~~~~~~~~~~~~~~~~~
a.cc:16:3: error: expected '}' before 'else'
16 | else {
| ^~~~
a.cc:8:48: note: to match this '{'
8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
| ^
|
s030638417
|
p04043
|
Java
|
public class Wafu {
public static void main(String[] args){
int A;
int B;
int C;
if(A == 5 && B == 7 && C == 5){
System.out.println("Yes");
} else if(A == 5 && B == 5 && C == 7){
System.out.println("Yes");
} else if(A == 7 && B == 5 && C == 5){
System.out.println("Yes");
} else{
System.out.println("No");
}
}
}
|
Main.java:1: error: class Wafu is public, should be declared in a file named Wafu.java
public class Wafu {
^
1 error
|
s498690893
|
p04043
|
Java
|
public class wafu {
public static void main(String[] args){
int A;
int B;
int C;
if(A == 5 && B == 7 && C == 5){
System.out.println("Yes");
} else if(A == 5 && B == 5 && C == 7){
System.out.println("Yes");
} else if(A == 7 && B == 5 && C == 5){
System.out.println("Yes");
} else{
System.out.println("No");
}
}
}
|
Main.java:1: error: class wafu is public, should be declared in a file named wafu.java
public class wafu {
^
1 error
|
s016640538
|
p04043
|
Java
|
public class wafu {
public static void main(String[] args){
int A;
int B;
int C;
if(A == 5 && B == 7 && C == 5){
System.out.println("Yes");
} else if(A == 5 && B == 5 && C == 7){
System.out.println("Yes");
} else if(A == 7 && B == 5 && C == 5){
System.out.println("Yes");
} else{
System.out.println("No");
}
|
Main.java:15: error: reached end of file while parsing
}
^
1 error
|
s914940844
|
p04043
|
C++
|
//A - Iroha and Haiku (ABC Edition)
int a,b,c;
int cntOf5 = 0;
int cntOf7 = 0;
void work(int n)
{
if (n==5)
cntOf5++;
if (n==7)
cntOf7++;
}
int main()
{
scanf("%d %d %d",&a,&b,&c);
work(a);
work(b);
work(c);
if (cntOf5==2&&cntOf7==1)
printf("%s","YES");
else
printf("%s","NO");
}
|
a.cc: In function 'int main()':
a.cc:15:9: error: 'scanf' was not declared in this scope
15 | scanf("%d %d %d",&a,&b,&c);
| ^~~~~
a.cc:20:17: error: 'printf' was not declared in this scope
20 | printf("%s","YES");
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | //A - Iroha and Haiku (ABC Edition)
a.cc:22:17: error: 'printf' was not declared in this scope
22 | printf("%s","NO");
| ^~~~~~
a.cc:22:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
|
s989043288
|
p04043
|
Java
|
import java.util.*;
public class Mainfifthjune {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a==5 && b==7 && c==5) {
System.out.println("YES");
}else if (a==7 && b==5 && c==5) {
System.out.println("YES");
}else if (a==5 && b==5 && c==7) {
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}
|
Main.java:2: error: class Mainfifthjune is public, should be declared in a file named Mainfifthjune.java
public class Mainfifthjune {
^
1 error
|
s193732283
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c:
cin >> a>>b>>c;
int five = 0;
int seven = 0;
if(a ==5)then five ++;
if(a == 7)thenseven ++;
if(b ==5)then five ++;
if(b == 7)thenseven ++;
if(c ==5)then five ++;
if(c == 7)thenseven ++;
if(five == 2 && seven == 1) cout << "YES"<<endl;
else cout << "NO"<<endl;
}
|
a.cc: In function 'int main()':
a.cc:5:18: error: found ':' in nested-name-specifier, expected '::'
5 | int a,b,c:
| ^
| ::
a.cc:5:17: error: 'c' has not been declared
5 | int a,b,c:
| ^
a.cc:6:9: error: qualified-id in declaration before '>>' token
6 | cin >> a>>b>>c;
| ^~
a.cc:10:12: error: 'then' was not declared in this scope
10 | if(a ==5)then five ++;
| ^~~~
a.cc:11:13: error: 'thenseven' was not declared in this scope
11 | if(a == 7)thenseven ++;
| ^~~~~~~~~
a.cc:12:12: error: 'then' was not declared in this scope
12 | if(b ==5)then five ++;
| ^~~~
a.cc:13:13: error: 'thenseven' was not declared in this scope
13 | if(b == 7)thenseven ++;
| ^~~~~~~~~
a.cc:14:6: error: 'c' was not declared in this scope
14 | if(c ==5)then five ++;
| ^
a.cc:14:12: error: 'then' was not declared in this scope
14 | if(c ==5)then five ++;
| ^~~~
a.cc:15:6: error: 'c' was not declared in this scope
15 | if(c == 7)thenseven ++;
| ^
a.cc:15:13: error: 'thenseven' was not declared in this scope
15 | if(c == 7)thenseven ++;
| ^~~~~~~~~
|
s095609720
|
p04043
|
C++
|
#include <bits/stdc++.h>
using namespace std;
int main() {
cin>>a,b,c;
if(a==7)
{if(b==5)
{if(c==5)
cout<<"YES";
}
}
else if(b==7)
{if(a==5)
{if(c==5)
cout<<"YES";
}
}
else if(c==7)
{if(a==5)
{if(b==5)
cout<<"YES";
}
}
else cout<<"NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin>>a,b,c;
| ^
a.cc:7:12: error: 'b' was not declared in this scope
7 | cin>>a,b,c;
| ^
a.cc:7:14: error: 'c' was not declared in this scope
7 | cin>>a,b,c;
| ^
|
s341645726
|
p04043
|
C++
|
#include <iostream>
using namespace std;
int main() {
cin>>a,b,c;
if(a==7)
{if(b==5)
{if(c==5)
cout<<"YES";
}
}
else if(b==7)
{if(a==5)
{if(c==5)
cout<<"YES";
}
}
else if(c==7)
{if(a==5)
{if(b==5)
cout<<"YES";
}
}
else cout<<"NO";
return 0;
}
|
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin>>a,b,c;
| ^
a.cc:7:12: error: 'b' was not declared in this scope
7 | cin>>a,b,c;
| ^
a.cc:7:14: error: 'c' was not declared in this scope
7 | cin>>a,b,c;
| ^
|
s766930556
|
p04043
|
Java
|
import java.util.Scanner;
public class A_ABC042_A {
public static void main(String[] args) {
final String FIVE = "5";
final String SEVEN = "7";
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
scanner.close();
String[] arrStr = (input.split(" ",0));
int fivCnt = 0;
int sevCnt = 0;
for(String num : arrStr) {
if(num.equals(FIVE)) {
fivCnt ++;
} else if(num.equals(SEVEN)) {
sevCnt ++;
}
}
String res;
if(fivCnt == 2 && sevCnt == 1) {
res = "YES";
}else {
res= "NO";
}
System.out.println(res);
}
}
|
Main.java:3: error: class A_ABC042_A is public, should be declared in a file named A_ABC042_A.java
public class A_ABC042_A {
^
1 error
|
s801695036
|
p04043
|
Java
|
public class Main {
public static void main(String[] args) {
final String FIVE = "5";
final String SEVEN = "7";
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
scanner.close();
String[] arrStr = (input.split(" ",0));
int fivCnt = 0;
int sevCnt = 0;
for(String num : arrStr) {
if(num.equals(FIVE)) {
fivCnt ++;
} else if(num.equals(SEVEN)) {
sevCnt ++;
}
}
String res;
if(fivCnt == 2 && sevCnt == 1) {
res = "YES";
}else {
res= "NO";
}
System.out.println(res);
}
}
|
Main.java:8: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:8: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.