submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s724049638 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
int main() {
// Write Your Code Below
ll a, b, c; cin >> a >> b >> c;
if(a+b=c || b+c=a || c+a=b) { cout << "Yes" << endl;}
else {cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:20:22: error: lvalue required as left operand of assignment
20 | if(a+b=c || b+c=a || c+a=b) { cout << "Yes" << endl;}
| ~~^~~~~~
a.cc:22:2: error: expected '}' at end of input
22 | }
| ^
a.cc:17:12: note: to match this '{'
17 | int main() {
| ^
|
s476333133 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
int main() {
// Write Your Code Below
ll a, b, c; cin >> a >> b >> c;
if(a+b=c || b+c=a || c+a=b) cout << "Yes" << endl;
else cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:20:22: error: lvalue required as left operand of assignment
20 | if(a+b=c || b+c=a || c+a=b) cout << "Yes" << endl;
| ~~^~~~~~
|
s381148304 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
int main() {
ll A, B, C, D ;
cin >> A >> B >> C ;
D = A + B + C ;
if((D%2)==0) cout << yes << endl;
if((D%2)==1) cout << no << endl;
}
| a.cc: In function 'int main()':
a.cc:21:24: error: 'yes' was not declared in this scope
21 | if((D%2)==0) cout << yes << endl;
| ^~~
a.cc:22:24: error: 'no' was not declared in this scope
22 | if((D%2)==1) cout << no << endl;
| ^~
|
s217790145 | p03943 | C++ | #include <stdc++.h>
using namespace std;
int main() {
int W,H,N;
cin >> W>>H>>N;
vector<vector<int>> data(N, vector<int>(3));
// 入力 (2重ループを用いる)
for (int i = 0; i < N; i++) {
for (int j = 0; j < 3; j++) {
cin >> data.at(i).at(j);
}
}
int lx=0,hx=W,ly=0,hy=H;
for(int i=0;i<N;i++){
if(data[i][2]==1)
lx=max(lx,data[i][0]);
if(data[i][2]==2)
hx=min(ly,data[i][0]);
if(data[i][2]==3)
ly=max(ly,data[i][1]);
if(data[i][2]==4)
hy=min(hy,data[i][1]);
}
if(hx-lx>=0&&hy-ly>=0)
cout<<W*H-(hx-lx)*(hy-ly)<<endl;
else
cout<<0<<endl;
}
| a.cc:1:10: fatal error: stdc++.h: No such file or directory
1 | #include <stdc++.h>
| ^~~~~~~~~~
compilation terminated.
|
s665346527 | p03943 | C++ | #include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
long long inf=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
long long c=a%i_7;
if(c>=0)return c;
return c+i_7;
}
using namespace std;
bool prime(int n){
if(n==1){
return false;
}else if(n==2){
return true;
}else{
for(int i=2;i<=sqrt(n);i++){
if(n%i==0){
return false;
}
}
return true;
}
}
long long gcd(long long a, long long b){
if(a<b){
swap(a,b);
}
if(a%b==0){
return b;
}else{
return gcd(b,a%b);
}
}
long long lcm(long long x, long long y){
return (x/gcd(x,y))*y;
}
class UnionFind {
public:
//各頂点の親の番号を格納する。その頂点自身が親だった場合は-(その集合のサイズ)を入れる。
vector<int> Parent;
//クラスを作るときは、Parentの値を全て-1にする。
//以下のようにすると全てバラバラの頂点として解釈できる。
UnionFind(int N) {
Parent = vector<int>(N, -1);
}
//Aがどのグループに属しているか調べる
int root(int A) {
if (Parent[A] < 0) return A;
return Parent[A] = root(Parent[A]);
}
//自分のいるグループの頂点数を調べる
int size(int A) {
return -Parent[root(A)];//先祖をrootで取っておきたい。
}
//AとBをくっ付ける
bool connect(int A, int B) {
//AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
A = root(A);
B = root(B);
if (A == B) {
//すでにくっついてるからくっ付けない
return false;
}
//大きい方(A)に小さいほう(B)をくっ付けたい
//大小が逆だったらAとBをひっくり返す。
if (size(A) < size(B)) swap(A, B);
//Aのサイズを更新する
Parent[A] += Parent[B];
//Bの親をAに変更する
Parent[B] = A;
return true;
}
};
int main(){
int a,b,c;
cin>>a>>b>>c;
int s=a+b+c;
int m=max(a,max(b,c));
if(m=s-m){
cout<<"Yes"<endl;
}else{
cout<<"No"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:92:16: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
92 | cout<<"Yes"<endl;
| ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1317 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: couldn't deduce template parameter '_Bi_iter'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1485 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: couldn't deduce template parameter '_Bi_iter'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1660 | operator<(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
92 | cout<<"Yes"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
92 | cout<<"Yes"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
92 | cout<<"Yes"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: couldn't deduce template parameter '_CharT'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:92:17: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
92 | cout<<"Yes"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:92:17: no |
s566236959 | p03943 | C++ | #include <cstdio>
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if((a+b+c)%2=0){
printf("Yes");
}
else{
printf("No");
}
} | a.cc: In function 'int main()':
a.cc:6:19: error: lvalue required as left operand of assignment
6 | if((a+b+c)%2=0){
| ~~~~~~~^~
|
s369982905 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
int a,b,c;
bool flag=fasle;
cin>>a>>b>>c;
if(a+b==c||b+c==a||a+c==b)
flag=true;
cout<<((flag)?"Yes":"No")<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:15: error: 'fasle' was not declared in this scope
6 | bool flag=fasle;
| ^~~~~
|
s115679463 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
int a,b,c;
cin>>a>>b>>c;
cout<<((a+b+c%2==0)?"Yes":"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:35: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout<<((a+b+c%2==0)?"Yes":"No"<<endl;
| ~~~~^~~~~~
a.cc:7:41: error: expected ')' before ';' token
7 | cout<<((a+b+c%2==0)?"Yes":"No"<<endl;
| ~ ^
| )
|
s587887177 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool f = 0;
if(a == b + c || b = a + c || c = a + b) f = 1;
if(f) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:30: error: lvalue required as left operand of assignment
7 | if(a == b + c || b = a + c || c = a + b) f = 1;
| ~~~~~~^~~~
|
s613593494 | p03943 | C++ | #include <bits/stdc++;>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==b+c||b==c+a||c==a+b){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
} | a.cc:1:10: fatal error: bits/stdc++;: No such file or directory
1 | #include <bits/stdc++;>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s374821765 | p03943 | C++ | #include<iostream>
#include<algorihtm>
using namespace std;
int main(){
int a,b,c,mx;
cin>>a>>b>>c;
mx=max(a,max(b,c));
if(mx*2==a+b+c) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
} | a.cc:2:9: fatal error: algorihtm: No such file or directory
2 | #include<algorihtm>
| ^~~~~~~~~~~
compilation terminated.
|
s509219309 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<int>ame(3);
for (int i = 0; i < 3; ++i)
{
cin >> ame.at(i);
}
sort(ame.begin() ,ame.end())
if(ame.at(0) + ame.at(1) == ame.at(2)){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:10:37: error: expected ';' before 'if'
10 | sort(ame.begin() ,ame.end())
| ^
| ;
11 | if(ame.at(0) + ame.at(1) == ame.at(2)){
| ~~
a.cc:13:10: error: 'else' without a previous 'if'
13 | }else{
| ^~~~
|
s723146465 | p03943 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scaner sc = new Scaner(System in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
if(A == B + C){
System.out.println("Yes");
} else if(B == A + C){
System.out.println("Yes");
}else if(C == A + C){
System.out.prinln("Yes");
}else{
System.out.println("No");
}
}
}
| Main.java:4: error: ')' or ',' expected
Scaner sc = new Scaner(System in);
^
Main.java:4: error: not a statement
Scaner sc = new Scaner(System in);
^
Main.java:4: error: ';' expected
Scaner sc = new Scaner(System in);
^
3 errors
|
s594617836 | p03943 | C++ | #include<iostream>
#include<cstdio>
#include<vector>
#include<queue>
#include<map>
#include<unordered_map>
#include<stack>
#include<string>
#include<algorithm>
#include<functional>
#include<cstring>
#include<utility>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
/**** Type Define ****/
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, P> Q;
/**** Const List ****/
const ll INF = 1LL << 60;
const ll mod = 1000000007;
const ll dx[4] = {1, 0, -1, 0};
const ll dy[4] = {0, -1, 0, 1};
/**** General Functions ****/
ll gcd(ll a, ll b) {
if (b == 0) return a;
return gcd(b, a % b);
}
ll extgcd(ll a, ll b, ll& x, ll& y) {
if (b == 0) {
x = 1, y = 0; return a;
}
ll q = a/b, g = extgcd(b, a - q*b, x, y);
ll z = x - q * y;
x = y;
y = z;
return g;
}
ll invmod (ll a, ll m) { // a^-1 mod m
ll x, y;
extgcd(a, m, x, y);
x %= m;
if (x < 0) x += m;
return x;
}
ll nCk(ll n, ll k, ll mod) {
ll ans = 1;
for (ll i = n, j = 1; j <= k; i--, j++) ans = (((ans * i) % mod) * invmod(j, mod)) % mod;
return ans;
}
ll lmin(ll a, ll b) { return a > b ? b : a; };
ll lmax(ll a, ll b) { return a > b ? a : b; };
ll lsum(ll a, ll b) { return a + b; };
/**** Zip ****/
template <typename T>
class Zip {
vector<T> d;
bool flag;
public:
Zip() {
flag = false;
}
void add(T x) {
d.push_back(x);
flag = true;
}
ll getNum(T x) { // T need to have operator < !!
if (flag) {
sort(d.begin(), d.end());
d.erase(unique(d.begin(), d.end()), d.end());
flag = false;
}
return lower_bound(d.begin(), d.end(), x) - d.begin();
}
ll size() {
if (flag) {
sort(d.begin(), d.end());
d.erase(unique(d.begin(), d.end()), d.end());
flag = false;
}
return (ll)d.size();
}
};
/**** Union Find ****/
class UnionFind {
vector<ll> par, rank; // par > 0: number, par < 0: -par
public:
void init(ll n) {
par.resize(n, 1); rank.resize(n, 0);
}
ll getSize(ll x) {
return par[find(x)];
}
ll find(ll x) {
if (par[x] > 0) return x;
return -(par[x] = -find(-par[x]));
}
void merge(ll x, ll y) {
x = find(x);
y = find(y);
if (x == y) return;
if (rank[x] < rank[y]) {
par[y] += par[x];
par[x] = -y;
} else {
par[x] += par[y];
par[y] = -x;
if (rank[x] == rank[y]) rank[x]++;
}
}
bool isSame(ll x, ll y) {
return find(x) == find(y);
}
};
/**** Segment Tree ****/
template <typename T>
class SegmentTree {
ll n;
vector<T> node;
function<T(T, T)> fun, fun2;
bool customChange;
T outValue, initValue;
public:
void init(ll num, function<T(T, T)> resultFunction, T init, T out, function<T(T, T)> changeFunction = NULL) {
// changeFunction: (input, beforevalue) => newvalue
fun = resultFunction;
fun2 = changeFunction;
customChange = changeFunction != NULL;
n = 1;
while (n < num) n *= 2;
node.resize(2 * n - 1, init);
outValue = out;
initValue = init;
}
void valueChange(ll num, T value) {
num += n-1;
if (customChange) node[num] = fun2(value, node[num]);
else node[num] = value;
while (num > 0) num = (num - 1) / 2, node[num] = fun(node[num * 2 + 1], node[num * 2 + 2]);
}
T rangeQuery(ll a, ll b, ll l = 0, ll r = -1, ll k = 0) { // [a, b)
if (r == -1) r = n;
if (a <= l && r <= b) return node[k];
if (b <= l || r <= a) return outValue;
ll mid = (l + r) / 2;
return fun(rangeQuery(a, b, l, mid, 2*k+1), rangeQuery(a, b, mid, r, 2*k+2));
}
};
/**** LIS ****/
ll lis(ll* a, ll n, ll* dp) {
fill(dp, dp + n, INF);//INFを代入
for (ll i = 0; i < n; i++) *lower_bound(dp, dp + n, a[i]) = a[i];
return (ll)(lower_bound(dp, dp + n, INF) - dp);
}
/**** main function ****/
ll a,b,c;
char op;
int main(){
cin>>a>>b>>c;
if(max(a,max(b,c)==a+b+c-max(a,max(b,c))){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:182:15: error: no matching function for call to 'max(ll&, bool)'
182 | if(max(a,max(b,c)==a+b+c-max(a,max(b,c))){
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
a.cc:182:15: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'bool')
182 | if(max(a,max(b,c)==a+b+c-max(a,max(b,c))){
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:9:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5706 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: template argument deduction/substitution failed:
a.cc:182:15: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
182 | if(max(a,max(b,c)==a+b+c-max(a,max(b,c))){
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:182:50: error: expected ')' before '{' token
182 | if(max(a,max(b,c)==a+b+c-max(a,max(b,c))){
| ~ ^
| )
a.cc:187:1: error: expected primary-expression before '}' token
187 | }
| ^
|
s981418162 | p03943 | C++ | #include <iostream>
#include <algorithm>
int main(){
int a, b, c;
cin >> a >> b >> c;
int sum = min(a, b);
sum += min(max(a, b), c);
cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:13: error: 'min' was not declared in this scope; did you mean 'std::min'?
7 | int sum = min(a, b);
| ^~~
| std::min
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
5696 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
a.cc:8:14: error: 'max' was not declared in this scope; did you mean 'std::max'?
8 | sum += min(max(a, b), c);
| ^~~
| std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:58: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s602631004 | p03943 | C++ | int main(){
int a, b, c;
cin >> a >> b >> c;
int sum = min(a, b);
sum += min(max(a, b), c);
cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:4:13: error: 'min' was not declared in this scope; did you mean 'main'?
4 | int sum = min(a, b);
| ^~~
| main
a.cc:5:14: error: 'max' was not declared in this scope
5 | sum += min(max(a, b), c);
| ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
6 | cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
| ^~~~
a.cc:6:58: error: 'endl' was not declared in this scope
6 | cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
| ^~~~
|
s882751584 | p03943 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
int sum = min(a, b);
sum += min(max(a, b), c);
cout << (max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:52: error: expected ';' before ')' token
11 | cout << (max(max(a, b), c) == sum) ? "YES" : "NO") << endl;
| ^
| ;
|
s859653371 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int max=max(a,b);
max=max(max,c);
if((a+b+c)%max==0)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:20: error: 'max' cannot be used as a function
8 | int max=max(a,b);
| ~~~^~~~~
a.cc:9:16: error: 'max' cannot be used as a function
9 | max=max(max,c);
| ~~~^~~~~~~
|
s508891930 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int max=max(a,b);
max=max(max,c);
if((a+b+c)%max==0)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:20: error: 'max' cannot be used as a function
7 | int max=max(a,b);
| ~~~^~~~~
a.cc:8:16: error: 'max' cannot be used as a function
8 | max=max(max,c);
| ~~~^~~~~~~
|
s643239819 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using P = pair<llong, llong>;
#define BE(x) x.begin(), x.end()
const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;
int main(){
vector<int> v(3);
cin >> v[0] >>v[1] >> v[2];
sort(BE(v));
cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:17:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
a.cc:17:31: note: candidate: 'operator==(int, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int})' (built-in)
a.cc:17:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:1:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1103 | operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
1199 | operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1274 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1274:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1366:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1366 | operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1366:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1441:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1441 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1441:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1534:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1534 | operator==(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1534:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:1613:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1613 | operator==(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1613:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/regex.h:2186:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator==(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)'
2186 | operator==(const match_results<_Bi_iter, _Alloc>& __m1,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:2186:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
In file included from /usr/include/c++/14/bits/char_traits.h:42,
from /usr/include/c++/14/string:42,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:17:37: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl;
| ^
In file included from /usr/include/c++/14/string:43:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: te |
s498268428 | p03943 | C | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==b+c||b==a+c||c==a+b||){printf("Yes");}
else{printf("No");}
return 0;
} | main.c: In function 'main':
main.c:5:28: error: expected expression before ')' token
5 | if(a==b+c||b==a+c||c==a+b||){printf("Yes");}
| ^
|
s284854494 | p03943 | C++ | #include <iosteam>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
cout << (a+b==c || b+c==a || c+a-b? "YES" : "NO") << endl;
} | a.cc:1:10: fatal error: iosteam: No such file or directory
1 | #include <iosteam>
| ^~~~~~~~~
compilation terminated.
|
s257675199 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int = a, b, c;
cin >> a >> b >> c;
if ( a+b == c || a+c == b || b+c == a ) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
5 | int = a, b, c;
| ^
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
a.cc:6:20: error: 'c' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
|
s998200296 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(max(a,max(b,c))*2 =a+b+c){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:21: error: lvalue required as left operand of assignment
7 | if(max(a,max(b,c))*2 =a+b+c){
| ~~~~~~~~~~~~~~~^~
|
s337144387 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
int max;
cin >> a >> b >> c;
if(max(a,max(b,c))*2 =a+b+c){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:15: error: 'max' cannot be used as a function
8 | if(max(a,max(b,c))*2 =a+b+c){
| ~~~^~~~~
a.cc:8:20: error: 'max' cannot be used as a function
8 | if(max(a,max(b,c))*2 =a+b+c){
| ^
|
s804441867 | p03943 | C | #include<stdio.h>
#include<math.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a == b + c || b == c + a || c = a + b){
printf("Yes");
}else{
printf("No");
}
return 0;
} | main.c: In function 'main':
main.c:6:36: error: lvalue required as left operand of assignment
6 | if(a == b + c || b == c + a || c = a + b){
| ^
|
s078554751 | p03943 | C++ | #include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <regex>
#include <math.h>
#include <bits/stdc++.h>
#define ull unsigned long long
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
if(a+b=c){
cout << "Yes" << endl;
}else if(a+c=b){
cout << "Yes" << endl;
}else if(b+c=a){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:62:13: error: lvalue required as left operand of assignment
62 | if(a+b=c){
| ~^~
a.cc:64:19: error: lvalue required as left operand of assignment
64 | }else if(a+c=b){
| ~^~
a.cc:66:19: error: lvalue required as left operand of assignment
66 | }else if(b+c=a){
| ~^~
|
s940859081 | p03943 | C++ | // https://atcoder.jp/contests/abc047/tasks/abc047_a
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
/* Magic word */
cin.tie(0);
ios::sync_with_stdio(false);
/* ---------- */
int a, b, c;
cin >> a >> b >> c;
int maximum = max(a, b, c);
string result = maximum == a + b + c - maximum ? "Yes" : "No";
cout << result << "\n";
return 0;
}
| In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:3:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:18:20: required from here
18 | int maximum = max(a, b, c);
| ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
306 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~
|
s260376010 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a + b + c - max(a, b, c) * 2 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
} | In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:12:21: required from here
12 | if (a + b + c - max(a, b, c) * 2 == 0) {
| ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
306 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~
|
s799929309 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a + b + c - max(a, b, c) * 2 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
} | In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:12:21: required from here
12 | if (a + b + c - max(a, b, c) * 2 == 0) {
| ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
306 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~
|
s377043440 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a + b + c - max(a, b, c) * 2 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
} | In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:12:21: required from here
12 | if (a + b + c - max(a, b, c) * 2 == 0) {
| ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
306 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~
|
s309497045 | p03943 | C++ | a, b, c = [ int(x) for x in input().split() ]
m = max(max(a, b), c)
s = a + b + c
ans = m * 2 == s
print("Yes" if ans else "No")
print()
| a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = [ int(x) for x in input().split() ]
| ^
|
s123509760 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(a==b+c || b==a+c || c=a+b)
cout<<"Yes";
else cout<<"No";
} | a.cc: In function 'int main()':
a.cc:7:23: error: lvalue required as left operand of assignment
7 | if(a==b+c || b==a+c || c=a+b)
| ~~~~~~~~~~~~~~~~~^~~~
|
s115224732 | p03943 | C++ | #include <iostream>
#include <vector>
int main(){
int totalPack = 3;
std::vector<int> pack(totalPack);
for (int i=0; i<totalPack; i++) {
std::cin >> pack[i];
}
std::sort(pack.begin(), pack.end());
int maxPackNumber = pack[2];
if (maxPackNumber == (pack[0] + pack[1])) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
13 | std::sort(pack.begin(), pack.end());
| ^~~~
| qsort
|
s917752384 | p03943 | C++ | #include <iostream>
#include <vector>
int main(){
int totalPack = 3;
std::vector<int> pack(totalPack);
for (int i=0; i<totalPack; i++) {
std::cin >> pack[i];
}
sort(pack.begin(), pack.end());
int maxPackNumber = pack[2];
if (maxPackNumber == (pack[0] + pack[1])) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:5: error: 'sort' was not declared in this scope; did you mean 'short'?
13 | sort(pack.begin(), pack.end());
| ^~~~
| short
|
s223537401 | p03943 | C++ | #include <iostream>
#include <vector>
int main(){
int totalPack = 3;
std::vector<int> pack(totalPack);
for (int i=0; i<totalPack; i++) {
std::cin >> pack[i];
}
std::sort(pack.begin(), pack.end());
int maxPackNumber = pack[2];
if (maxPackNumber == (pack[0] + pack[1])) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
13 | std::sort(pack.begin(), pack.end());
| ^~~~
| qsort
|
s921452352 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(void)
{
vector<int> a[3];
int Nmax = 0;
cin >> a[0]>> a[1] >> a[2];
sort(a.begin().a.end());
if(a[2] == a[1] + a[0]){cout << "YES";}
else{cout << "NO";}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
7 | vector<int> a[3];
| ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
2 | #include<algorithm>
+++ |+#include <vector>
3 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
7 | vector<int> a[3];
| ^~~
a.cc:9:10: error: 'a' was not declared in this scope
9 | cin >> a[0]>> a[1] >> a[2];
| ^
|
s186568816 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(void)
{
int a[3],Nmax = 0;
cin >> a[0]>> a[1] >> a[2];
sort(a.begin().a.end());
if(a[2] == a[1] + a[0]){cout << "YES";}
else{cout << "NO";}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
9 | sort(a.begin().a.end());
| ^~~~~
|
s351526333 | p03943 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c,;
cin >> a >> b >> c;
int total = a + b + c;
if (total % 2 == 0 && (a == total / 2 || b == total / 2 || c == total / 2))
cout << "Yes" << endl;
else
cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
5 | int a, b, c,;
| ^
|
s657664168 | p03943 | Java | public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner scan = new Scanner(System.in);
int w = scan.nextInt();
int h = scan.nextInt();
int n = scan.nextInt();
int[] xn = new int[n];
int[] yn = new int[n];
int[] an = new int[n];
for (int i = 0; i < n; i++) {
xn[i] = scan.nextInt();
yn[i] = scan.nextInt();
an[i] = scan.nextInt();
}
int wl = 0;
int wr = w;
int hl = 0;
int ht = h;
for (int i = 0; i < n; i++) {
switch (an[i]) {
case 1:
if (wl < xn[i]) {
wl = xn[i];
}
break;
case 2:
if (wr > xn[i]) {
wr = xn[i];
}
break;
case 3:
if (hl < yn[i]) {
hl = yn[i];
}
break;
case 4:
if (ht > yn[i]) {
ht = yn[i];
}
break;
}
}
int ans = (wr - wl) * (ht - hl);
if (ans < 0) {
System.out.println(0);
} else {
System.out.println(ans);
}
}
} | Main.java:5: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s352721699 | p03943 | C++ | #include<iostream>
using namespace std;
int main () {
int a,b,c; cin>>a>>b>>c;
if(a+b == c||b+c ==a || c+a == b){
cout << "Yes"
}else {
cout << "No"
}
cout <<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before '}' token
7 | cout << "Yes"
| ^
| ;
8 | }else {
| ~
a.cc:9:17: error: expected ';' before '}' token
9 | cout << "No"
| ^
| ;
10 | }
| ~
|
s122940111 | p03943 | C++ | #include <iostream>
#include <algorithm>
int main()
{
int W, H, N;
std::cin >> W >> H >> N;
int x[N], y[N], a[N];
int region[4];
region[0] = 0;
region[1] = W;
region[2] = 0;
region[3] = H;
for ( int i = 0; i < N; i++ ) {
std::cin >> x >> y >> a;
if (a==1) region[0] = std::max(region[0], x);
if (a==2) region[1] = std::min(region[1], x);
if (a==3) region[2] = std::max(region[2], y);
if (a==40 region[3] = std::min(region[3], y);
}
int area = std::max((region[1] - region[0]) * (region[3] - region[2]), 0);
std::cout << area << std::endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:14: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [N]')
15 | std::cin >> x >> y >> a;
| ~~~~~~~~ ^~ ~
| | |
| | int [N]
| 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:15:17: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*'
15 | std::cin >> x >> y >> a;
| ^
/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:15:17: error: invalid conversion from 'int*' to 'short int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(short int)((int*)(& x))' to 'short int&'
/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:15:17: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(short unsigned int)((int*)(& x))' to 'short unsigned int&'
/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:15:17: error: invalid conversion from 'int*' to 'int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(int)((int*)(& x))' to 'int&'
/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:15:17: error: invalid conversion from 'int*' to 'unsigned int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(unsigned int)((int*)(& x))' to 'unsigned int&'
/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:15:17: error: invalid conversion from 'int*' to 'long int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(long int)((int*)(& x))' to 'long int&'
/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:15:17: error: invalid conversion from 'int*' to 'long unsigned int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(long unsigned int)((int*)(& x))' to 'long unsigned int&'
/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:15:17: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(long long int)((int*)(& x))' to 'long long int&'
/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:15:17: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive]
15 | std::cin >> x >> y >> a;
| ^
| |
| int*
a.cc:15:17: error: cannot bind rvalue '(long long unsigned int)((int*)(& x))' to 'long long unsigned int&'
/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:15:17: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
15 | std::cin >> x >> y >> a;
| ^
/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 'int [N]' 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 'int [N]' 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 'int [N]' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/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 'int [N]' 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 'int [N]' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | |
s076307607 | p03943 | C++ | #include <cstdio>
int main(){
int a,b,c;
scanf("%d%d%d"&a,&b,&c);
if(a+b==c||a+c==b||b+c==a)printf("Yes\n");
else printf("No\n");
} | a.cc: In function 'int main()':
a.cc:4:23: error: invalid operands of types 'const char [7]' and 'int' to binary 'operator&'
4 | scanf("%d%d%d"&a,&b,&c);
| ~~~~~~~~^~
| | |
| | int
| const char [7]
|
s126324491 | p03943 | C++ | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
vector<int> aa(3);
for(auto &x:aa){
cin>>x;
}
sort(aa.begin().aa.end());
if(aa[0]+aa[1]==aa[2]){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:16:19: error: 'std::vector<int>::iterator' has no member named 'aa'
16 | sort(aa.begin().aa.end());
| ^~
|
s950945205 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int a;
int b;
int c;
cin>>a>>b>>c;
if ((a+b+c)%==0) {
cout<<"Yes";
}
else
{
cout<<"No";
}
return 0;
} | a.cc: In function 'int main(int, const char**)':
a.cc:13:18: error: expected primary-expression before '=' token
13 | if ((a+b+c)%==0) {
| ^
|
s385749138 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga = pow(10,9);
int main(void){
vector<int> a;
int temp;
for(int i = 0; i < 3; i++){
cin >> temp;
a.push_back(temp);
}
sort(a.begin(), a.end(), greater<int>);
if(a[0] == a[1] + a[2]){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:24:40: error: expected primary-expression before ')' token
24 | sort(a.begin(), a.end(), greater<int>);
| ^
|
s916397820 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga = pow(10,9);
int main(void){
vector<int> a[3];
int temp;
for(int i = 0; i < 3; i++){
cin >> temp;
a.push_back(temp);
}
sort(a.begin(), a.end(), greater<int>);
if(a[0] == a[1] + a[2]){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:22:7: error: request for member 'push_back' in 'a', which is of non-class type 'std::vector<int> [3]'
22 | a.push_back(temp);
| ^~~~~~~~~
a.cc:24:10: error: request for member 'begin' in 'a', which is of non-class type 'std::vector<int> [3]'
24 | sort(a.begin(), a.end(), greater<int>);
| ^~~~~
a.cc:24:21: error: request for member 'end' in 'a', which is of non-class type 'std::vector<int> [3]'
24 | sort(a.begin(), a.end(), greater<int>);
| ^~~
a.cc:24:40: error: expected primary-expression before ')' token
24 | sort(a.begin(), a.end(), greater<int>);
| ^
a.cc:26:19: error: no match for 'operator+' (operand types are 'std::vector<int>' and 'std::vector<int>')
26 | if(a[0] == a[1] + a[2]){
| ~~~~ ^ ~~~~
| | |
| | vector<[...]>
| vector<[...]>
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:627:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_Iterator> std::operator+(typename reverse_iterator<_Iterator>::difference_type, const reverse_iterator<_Iterator>&)'
627 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:627:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::reverse_iterator<_Iterator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1798:5: note: candidate: 'template<class _Iterator> constexpr std::move_iterator<_IteratorL> std::operator+(typename move_iterator<_IteratorL>::difference_type, const move_iterator<_IteratorL>&)'
1798 | operator+(typename move_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1798:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::move_iterator<_IteratorL>'
26 | if(a[0] == a[1] + a[2]){
| ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:3598:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3598 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3598:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3616:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3616 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3616:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: mismatched types 'const _CharT*' and 'std::vector<int>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3635:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3635 | operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3635:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3652:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3652 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3652:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3670:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
3670 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3670:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3682:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3682 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3682:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3689:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3689 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3689:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3696:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3696 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3696:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3719:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3719 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3719:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: mismatched types 'const _CharT*' and 'std::vector<int>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3726:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3726 | operator+(_CharT __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3726:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3733:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const _CharT*)'
3733 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3733:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3740:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, _CharT)'
3740 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3740:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 's |
s586009736 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga = pow(10,9);
int main(void){
vector<int> a[3];
int temp;
for(int i = 0; i < 3; i++){
cin >> temp;
a[i] = temp;
}
sort(a.begin(), a.end(), greater<int>);
if(a[0] == a[1] + a[2]){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:22:12: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
22 | a[i] = temp;
| ^~~~
In file included from /usr/include/c++/14/vector:72,
from a.cc:3:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
210 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note: no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
211 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
766 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note: no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
766 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
788 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
788 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:24:10: error: request for member 'begin' in 'a', which is of non-class type 'std::vector<int> [3]'
24 | sort(a.begin(), a.end(), greater<int>);
| ^~~~~
a.cc:24:21: error: request for member 'end' in 'a', which is of non-class type 'std::vector<int> [3]'
24 | sort(a.begin(), a.end(), greater<int>);
| ^~~
a.cc:24:40: error: expected primary-expression before ')' token
24 | sort(a.begin(), a.end(), greater<int>);
| ^
a.cc:26:19: error: no match for 'operator+' (operand types are 'std::vector<int>' and 'std::vector<int>')
26 | if(a[0] == a[1] + a[2]){
| ~~~~ ^ ~~~~
| | |
| | vector<[...]>
| vector<[...]>
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:627:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_Iterator> std::operator+(typename reverse_iterator<_Iterator>::difference_type, const reverse_iterator<_Iterator>&)'
627 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:627:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::reverse_iterator<_Iterator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1798:5: note: candidate: 'template<class _Iterator> constexpr std::move_iterator<_IteratorL> std::operator+(typename move_iterator<_IteratorL>::difference_type, const move_iterator<_IteratorL>&)'
1798 | operator+(typename move_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1798:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::move_iterator<_IteratorL>'
26 | if(a[0] == a[1] + a[2]){
| ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:3598:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3598 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3598:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3616:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3616 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3616:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: mismatched types 'const _CharT*' and 'std::vector<int>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3635:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3635 | operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3635:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3652:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3652 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3652:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3670:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
3670 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3670:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3682:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3682 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3682:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3689:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3689 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3689:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3696:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3696 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3696:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/include/c++/14/bits/basic_string.h:3719:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
3719 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3719:5: note: template argument deduction/substitution failed:
a.cc:26:24: note: mismatched types 'const _CharT*' and 'std::vector<int>'
26 | if(a[0] == a[1] + a[2]){
| ^
/usr/includ |
s847123811 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga = pow(10,9);
int main(void){
vector<int> a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.end(), greater<int>);
if(a[0] == a[1] + a[2]){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:19:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>')
19 | cin >> a[0] >> a[1] >> a[2];
| ~~~ ^~ ~~~~
| | |
| | std::vector<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>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from 'std::vector<int>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from 'std::vector<int>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from 'std::vector<int>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'std::vector<int>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'std::vector<int>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from 'std::vector<int>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
352 | operator>>(__streambuf_type* __sb);
| ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include |
s283013043 | p03943 | C | #include<stdio.h>
int main(void)
{
int W,H,N,x,y,a;
int ansx = 0,ansy = 0;
scanf("%d%d%d",&W,&H,&N);
for(int i = 0;i < N;i++)
{
scanf("%d%d%d",&x,&y,&a);
switch(a)
{
case 1:
if(ansx < x){ansx = x;}
break;
case 2:
if(x < W){W = x;}
break;
case 3:
if(ansy < y){ansy = y;}
break;
case 4:
if(y < H){H = y;}
break;
}
}
if(w <= x || h <= y){printf("0");}
else{printf("%d",(W - ansx) * (H - ansy));}
return 0;
} | main.c: In function 'main':
main.c:29:6: error: 'w' undeclared (first use in this function)
29 | if(w <= x || h <= y){printf("0");}
| ^
main.c:29:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:16: error: 'h' undeclared (first use in this function)
29 | if(w <= x || h <= y){printf("0");}
| ^
|
s210491594 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
maxabc = max(max(a,b),c);
if (a+b+c-maxabc==maxabc) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'maxabc' was not declared in this scope; did you mean 'imaxabs'?
7 | maxabc = max(max(a,b),c);
| ^~~~~~
| imaxabs
|
s577103050 | p03943 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
int a,b,c;
cin>> a >> b >>c;
if((a+b==c)||(a+c==b)||(b+c==a))cout <<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s364965155 | p03943 | C++ | #include <iostream>
using namespace std;
int a,b,c;
int main(){
cin >> a >> b >> c;
cout << ((a+b=c || b+c==a || c+a==b)? "Yes":"No") << endl;
}
| a.cc: In function 'int main()':
a.cc:6:14: error: lvalue required as left operand of assignment
6 | cout << ((a+b=c || b+c==a || c+a==b)? "Yes":"No") << endl;
| ~^~
|
s189733036 | p03943 | C++ | A=list(map(int,input().split()))
if( sum(A) == 2*max(A) ) print("Yes")
else print( "No" ) | a.cc:1:1: error: 'A' does not name a type
1 | A=list(map(int,input().split()))
| ^
|
s499584432 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<(a+b+c)%2==0?"Yes":"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ~~~~~~~~~~~~~~~^~~
| | |
| | int
| std::basic_ostream<char>
a.cc:7:18: note: candidate: 'operator==(int, int)' (built-in)
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ~~~~~~~~~~~~~~~^~~
a.cc:7:18: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::fpos<_StateT>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/string:43,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/bits/allocator.h:235:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
235 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/14/bits/allocator.h:235:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::allocator<_CharT>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
441 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:441:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
486 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:486:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1667 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1667:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1737 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1737:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1033 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1033:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:629:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
629 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:629:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/string_view:637:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
637 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:637:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/string_view:644:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
644 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:644:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/bits/basic_string.h:3755:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3755 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3755:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/bits/basic_string.h:3772:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3772 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
/usr/include/c++/14/bits/basic_string.h:3819:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3819 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3819:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2558:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2558 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2558:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
from /usr/include/c++/14/bits/basic_ios.h:37,
from /usr/include/c++/14/ios:46:
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)'
234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
| ^~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:234:5: note: template argument deduction/substitution failed:
a.cc:7:20: note: 'std::basic_ostream<char>' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>'
7 | cout<<(a+b+c)%2==0?"Yes":"No";
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:449:3: note: candidate: 'bool std::operator==(const |
s920897439 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(max({a,b,c}) == a+b+c-max({a,b,c})){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:11: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
7 | if(max({a,b,c}) == a+b+c-max({a,b,c})){
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 1 provided
a.cc:7:33: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
7 | if(max({a,b,c}) == a+b+c-max({a,b,c})){
| ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 1 provided
|
s323471570 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a, b, c, same=0;
cin >> a >> b >> c;
if (a + b = c) same = 1;
if (b + c = a) same = 1;
if (a + c = b) same = 1;
if (same = 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
7 | if (a + b = c) same = 1;
| ~~^~~
a.cc:8:9: error: lvalue required as left operand of assignment
8 | if (b + c = a) same = 1;
| ~~^~~
a.cc:9:9: error: lvalue required as left operand of assignment
9 | if (a + c = b) same = 1;
| ~~^~~
|
s513738513 | p03943 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a[3];
for (int i = 0; i < 3; ++i) cin >> a[i];
sort(a[3].begin(), a[3].end());
if (a[0]+a[1] == a[2]) { cout << "YES"; }
else { cout << "NO"; }
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: request for member 'begin' in 'a[3]', which is of non-class type 'int'
8 | sort(a[3].begin(), a[3].end());
| ^~~~~
a.cc:8:27: error: request for member 'end' in 'a[3]', which is of non-class type 'int'
8 | sort(a[3].begin(), a[3].end());
| ^~~
|
s528877029 | p03943 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a[3];
for (int i = 0; i < 3; ++i) cin >> a[i];
sort(a.begin(), a.end());
if (a[0]+a[1] == a[2]) { cout << "YES"; }
else { cout << "NO"; }
return 0;
} | a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
8 | sort(a.begin(), a.end());
| ^~~~~
a.cc:8:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
8 | sort(a.begin(), a.end());
| ^~~
|
s988953951 | p03943 | C++ | #include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair<int,pair<int,int>>> q;
vector<pair<int,int>> ino;
int main(){
//int a,b,c,d;cin>>a>>b>>c>>d;
int a[3];cin>>a[0]>>a[1]>>a[2];sort(a,3);
if(a[2]==a[1]+a[0]){
cout<<"Yes";
}else{
cout<<"No";
}
}
| a.cc: In function 'int main()':
a.cc:19:38: error: no matching function for call to 'sort(int [3], int)'
19 | int a[3];cin>>a[0]>>a[1]>>a[2];sort(a,3);
| ~~~~^~~~~
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:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
4762 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: template argument deduction/substitution failed:
a.cc:19:38: note: deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
19 | int a[3];cin>>a[0]>>a[1]>>a[2];sort(a,3);
| ~~~~^~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
4793 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
| ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate expects 3 arguments, 2 provided
|
s876440679 | p03943 | C++ | #include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp
using namespace std;
typedef pair<int, int> P;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define repto(i, n) for(int i = 0; i <= (n); i++)
#define all(c) (c).begin(), (c).end()
#define uniq(c) c.erase(unique(all(c)), (c).end()) // ユニークなvectorにす
る。連続した値を除去して切り出す。
#define _1 first
#define _2 second
#define pb push_back
#define INF 1145141919
#define MOD 1000000007
#define DEBUG(x) cout << #x << ": " << x << endl;
__attribute__((constructor))
void initial() {
cin.tie(0);
ios::sync_with_stdio(false);
}
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a + c == b ||
a + b == c ||
b + c == a ) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | a.cc:12:1: error: extended character 。 is not valid in an identifier
12 | る。連続した値を除去して切り出す。
| ^
a.cc:12:1: error: extended character 。 is not valid in an identifier
a.cc:12:1: error: '\U0000308b\U00003002\U00009023\U00007d9a\U00003057\U0000305f\U00005024\U00003092\U00009664\U000053bb\U00003057\U00003066\U00005207\U0000308a\U000051fa\U00003059\U00003002' does not name a type
12 | る。連続した値を除去して切り出す。
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s747579393 | p03943 | C++ | #include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a + c == b ||
a + b == c ||
b + c == a ) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:9: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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
11 | cout << "No" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
11 | cout << "No" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s346263635 | p03943 | C++ | #include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp
using namespace std;
typedef pair<int, int> P;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define repto(i, n) for(int i = 0; i <= (n); i++)
#define all(c) (c).begin(), (c).end()
#define uniq(c) c.erase(unique(all(c)), (c).end()) // ユニークなvectorにす
る。連続した値を除去して切り出す。
#define _1 first
#define _2 second
#define pb push_back
#define INF 1145141919
#define MOD 1000000007
#define DEBUG(x) cout << #x << ": " << x << endl;
__attribute__((constructor))
void initial() {
cin.tie(0);
ios::sync_with_stdio(false);
}
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a + c == b ||
a + b == c ||
b + c == a ) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | a.cc:12:1: error: extended character 。 is not valid in an identifier
12 | る。連続した値を除去して切り出す。
| ^
a.cc:12:1: error: extended character 。 is not valid in an identifier
a.cc:12:1: error: '\U0000308b\U00003002\U00009023\U00007d9a\U00003057\U0000305f\U00005024\U00003092\U00009664\U000053bb\U00003057\U00003066\U00005207\U0000308a\U000051fa\U00003059\U00003002' does not name a type
12 | る。連続した値を除去して切り出す。
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s998393356 | p03943 | C++ | #include <iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(a+b==c||a+c==b||b+c==a){
cout<<"Yes"<<endl;
}else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'c\U0000ff5c\U0000ff5ca' was not declared in this scope
7 | if(a+b==c||a+c==b||b+c==a){
| ^~~~~~
a.cc:7:23: error: 'b\U0000ff5c\U0000ff5cb' was not declared in this scope
7 | if(a+b==c||a+c==b||b+c==a){
| ^~~~~~
|
s167197791 | p03943 | C | #include<stdio.h>
#define MAX 100
int main(){
float x1=0,x2=0,x3,x4,y1=0,y2,y3=0,y4,i=0,t,L[MAX];
for(int i=0;i<3;i++){
scanf("%f",&L[i]);
}
x3=x4=L[0];
y2=y4=L[1];
t=L[2];
for(i=0;i<t;i++){
for(int j=0;j<3;j++){
scanf("%f",&L[j]);
}
switch(L[2]){
case 1:
if(x1<L[0]){
x1=x2=L[0];
}
break;
case 2:
if(x3>L[0]){
x3=x4=L[0];
}
break;
case 3:
if(y1<L[1]){
y1=y3=L[1];
}
break;
case 4:
if(y2>L[1]){
y2=y4=L[1];
}
break;
}
}
if((x3-x1)*(y4-y1)<0){
printf("0");
}else{
printf("%d",(x3-x1)*(y4-y1));
}
return 0;
}
| main.c: In function 'main':
main.c:16:12: error: switch quantity not an integer
16 | switch(L[2]){
| ^
|
s640746692 | p03943 | C | #include<stdio.h>
#define MAX 3
int main() {
int a[MAX],i,SUM=0;
for(i=0;i<MAX;i++){
scanf("%d",&a[i]);
if(a[i]<=0||a[i]>100){
printf("No");
}
SUM+=a[i];
}
if(SUM%2==1){
printf("No");
}
SUM=SUM/2
if(SUM==a[0]||SUM==a[1]||SUM==a[2]){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| main.c: In function 'main':
main.c:16:14: error: expected ';' before 'if'
16 | SUM=SUM/2
| ^
| ;
17 | if(SUM==a[0]||SUM==a[1]||SUM==a[2]){
| ~~
|
s317749637 | p03943 | C | #include<stdio.h>
#define MAX 3
int main() {
float a[MAX],i,SUM;
for(i=0;i<MAX;i++){
if(scanf("%f",&a[i]) == 1)
if(a[i]<=0||a[i]>100){
printf("No");
}
SUM+=a[i];
}
SUM=(SUM/2);
if(SUM==a[0]||SUM==a[1]||SUM==a[2]){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| main.c: In function 'main':
main.c:7:23: error: array subscript is not an integer
7 | if(scanf("%f",&a[i]) == 1)
| ^
main.c:8:11: error: array subscript is not an integer
8 | if(a[i]<=0||a[i]>100){
| ^
main.c:8:20: error: array subscript is not an integer
8 | if(a[i]<=0||a[i]>100){
| ^
main.c:11:13: error: array subscript is not an integer
11 | SUM+=a[i];
| ^
|
s199007810 | p03943 | C | #include<stdio.h>
#define MAX 3
int main() {
float a[MAX],i,SUM;
for(i=0;i<MAX;i++){
if(scanf("%d",&a[i]) == 1)
if(a[i]<=0||a[i]>100){
printf("No");
}
SUM+=a[i];
}
SUM=(SUM/2);
if(SUM==a[0]||SUM==a[1]||SUM==a[2]){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| main.c: In function 'main':
main.c:7:23: error: array subscript is not an integer
7 | if(scanf("%d",&a[i]) == 1)
| ^
main.c:8:11: error: array subscript is not an integer
8 | if(a[i]<=0||a[i]>100){
| ^
main.c:8:20: error: array subscript is not an integer
8 | if(a[i]<=0||a[i]>100){
| ^
main.c:11:13: error: array subscript is not an integer
11 | SUM+=a[i];
| ^
|
s912767310 | p03943 | C++ | int main(){
int a, b, c;
cin >> a >> b >> c;
bool flag = true;
if(a+b == c) flag = true;
else if(a+c == b) flag = true;
else if(b+c == a) flag = true;
else flag = false;
if(flag) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
4 | cin >> a >> b >> c;
| ^~~
a.cc:13:14: error: 'cout' was not declared in this scope
13 | if(flag) cout << "Yes" << endl;
| ^~~~
a.cc:13:31: error: 'endl' was not declared in this scope
13 | if(flag) cout << "Yes" << endl;
| ^~~~
a.cc:14:10: error: 'cout' was not declared in this scope
14 | else cout << "No" << endl;
| ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope
14 | else cout << "No" << endl;
| ^~~~
|
s578308536 | p03943 | C | #include <stdio.h>
#include<string.h>
int main()
{
long long int a,b,c=0,d=0,w=0,i,str1=0,str2=0,flag,j,count=0,k,n,sum=0;
scanf("%lld %lld %lld",&a,&b,&c);
if((a+b==c || b+c==a || a+c==b )
{
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:8:33: error: expected ')' before '{' token
8 | if((a+b==c || b+c==a || a+c==b )
| ~ ^
| )
9 | {
| ~
main.c:15:1: error: expected expression before '}' token
15 | }
| ^
|
s251764088 | p03943 | C++ | #include <cstdio>
int main()
{
int a = 0,b = 0,c = 0;
scanf("%d %d %d",&a,&b,&c);
if (a + b=c)printf ("Yes");
else if (a + c=b)printf ("Yes");
else if (b + c=a)printf ("Yes");
else printf ("No");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:15: error: lvalue required as left operand of assignment
6 | if (a + b=c)printf ("Yes");
| ~~^~~
a.cc:7:20: error: lvalue required as left operand of assignment
7 | else if (a + c=b)printf ("Yes");
| ~~^~~
a.cc:8:20: error: lvalue required as left operand of assignment
8 | else if (b + c=a)printf ("Yes");
| ~~^~~
|
s872380293 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a==b+c||b=a+c||c=a+b) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
7 | if(a==b+c||b=a+c||c=a+b) cout << "Yes" << endl;
| ~~~^~~
|
s405228979 | p03943 | C++ | int main()
{
int a, b, c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if (a+b==c)
{
printf("Yes\n");
}
else
{
if (b+c==a)
{
printf("Yes\n");
}
else
{
if (c+a==b)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
}
system("pause");
}
| a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
4 | scanf("%d",&a);
| ^~~~~
a.cc:9:17: error: 'printf' was not declared in this scope
9 | printf("Yes\n");
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | int main()
a.cc:15:25: error: 'printf' was not declared in this scope
15 | printf("Yes\n");
| ^~~~~~
a.cc:15:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:21:33: error: 'printf' was not declared in this scope
21 | printf("Yes\n");
| ^~~~~~
a.cc:21:33: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:25:33: error: 'printf' was not declared in this scope
25 | printf("No\n");
| ^~~~~~
a.cc:25:33: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:29:9: error: 'system' was not declared in this scope
29 | system("pause");
| ^~~~~~
|
s968049233 | p03943 | C | #include <stdio.h>
int main(){
int a,b,c,s;
scanf("%d%d%d",&a,&b,&c);
s=(a+b+c)/2
puts((s-a)*(s-b)*(s-c)?"No":"Yws");
} | main.c: In function 'main':
main.c:5:14: error: expected ';' before 'puts'
5 | s=(a+b+c)/2
| ^
| ;
6 | puts((s-a)*(s-b)*(s-c)?"No":"Yws");
| ~~~~
|
s949574861 | p03943 | C++ | #include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a+b==c || b+c==a || c+a=b) {
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:26: error: lvalue required as left operand of assignment
7 | if (a+b==c || b+c==a || c+a=b) {
| ~~~~~~~~~~~~~~~~~^~~~~~
|
s558606981 | p03943 | C++ | #include<cstdio>
using namespace std;
int main(){
int a,b,c;
scanf("%d %d %d",6a,&b,&c);
if(a+b==c||b+c==a||a+c==b)
printf("Yes\n");
else
printf("No\n");
} | a.cc: In function 'int main()':
a.cc:5:20: error: unable to find numeric literal operator 'operator""a'
5 | scanf("%d %d %d",6a,&b,&c);
| ^~
|
s091067664 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a, b, c; cin >> a >> b >> c;
if(a+b==c||b+c==a||a+c==b){
cout << "Yes" << endl;
}else{
cout << "No << endl;
}
return 0;
} | a.cc:9:13: warning: missing terminating " character
9 | cout << "No << endl;
| ^
a.cc:9:13: error: missing terminating " character
9 | cout << "No << endl;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
10 | }
| ^
|
s681049817 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a + b = c || a + c = b || c + b = a) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:29: error: lvalue required as left operand of assignment
8 | if(a + b = c || a + c = b || c + b = a) cout << "Yes" << endl;
| ~~^~~~~~~~
|
s393618508 | p03943 | C++ | #include <iostream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <memory>
#include <complex>
#include <numeric>
#include <cstdio>
#include <iomanip>
#define REP(i,m,n) for(int i=int(m);i<int(n);i++)
#define RREP(i,m,n) for(int i=int(n)-1;i>=int(m);--i)
#define EACH(i,c) for (auto &(i): c)
#define all(c) begin(c),end(c)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort(begin(c),end(c))
#define pb emplace_back
#define MP make_pair
#define SZ(a) int((a).size())
#ifdef LOCAL
#define DEBUG(s) cout << (s) << endl
#define dump(x) cerr << #x << " = " << (x) << endl
#define BR cout << endl;
#else
#define DEBUG(s) do{}while(0)
#define dump(x) do{}while(0)
#define BR
#endif
using namespace std;
using UI = unsigned int;
using UL = unsigned long;
using LL = long long int;
using ULL = unsigned long long;
using VI = vector<int>;
using VVI = vector<VI>;
using VLL = vector<LL>;
using VS = vector<string>;
using PII = pair<int,int>;
using VP = vector<PII>;
//struct edge {int from, to, cost;};
constexpr double EPS = 1e-10;
constexpr double PI = acos(-1.0);
//constexpr int INF = INT_MAX;
template<class T> inline T sqr(T x) {return x*x;}
void solve() {
VI a(3);
cin >> a[0] >> a[1] >> a[2];
sort(all(a));
if (a[0] + a[1] == a[2] || a[0] = a[1] + a[2]) cout << "Yes" << endl;
else cout << "No" << endl;
}
int main() {
solve();
return 0;
} | a.cc: In function 'void solve()':
a.cc:61:29: error: lvalue required as left operand of assignment
61 | if (a[0] + a[1] == a[2] || a[0] = a[1] + a[2]) cout << "Yes" << endl;
|
s560390251 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a+b=c||b+c==a||a+c==b)
return puts("YES"),0;
return puts("NO"),0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
7 | if(a+b=c||b+c==a||a+c==b)
| ~^~
|
s429749941 | p03943 | C++ | a, b, c = map(int, input().split())
if a == b + c:
print('Yes')
elif a + b == c:
print('Yes')
elif a + c == b:
print('Yes')
else:
print('No') | a.cc:4:11: warning: multi-character character constant [-Wmultichar]
4 | print('Yes')
| ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
6 | print('Yes')
| ^~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
8 | print('Yes')
| ^~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
10 | print('No')
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = map(int, input().split())
| ^
|
s610281004 | p03943 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,c,sum1,sum2,sum3;
cin>>a;
cin>>b;
cin>>c;
sum1=a+b;sum2=b+c;sum3=c+a;
if(sum1==c)
{cout<<"YES"<<endl;
}
else if(sum2==a)
{cout<<"YES"<<endl;
}
else if (sum3==b)
else if
{cout<<"YES"<<endl;
}
else
{cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:18:10: error: expected primary-expression before 'else'
18 | else if
| ^~~~
|
s644616557 | p03943 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,c,sum1,sum2,sum3;
cin>>a;
cin>>b;
cin>>c;
sum1=a+b;sum2=b+c;sum3=c+a;
if(sum1==c){cout<<"YES"<<endl;}
else if(sum2==a){cout<<"YES"<<endl;}
else if (sum3==b)
else if{cout<<"YES"<<endl;}
else{cout<<"NO";}
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:10: error: expected primary-expression before 'else'
14 | else if{cout<<"YES"<<endl;}
| ^~~~
|
s764631131 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
if(a[0] + a[1] == a[2]){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
5 | cin>>a[0]>>a[1]>>a[2];
| ^
|
s164024554 | p03943 | C++ | #include <iostream>
#include <vector>
#include <cmath>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
using std::sort;
int main() {
vector<int> s;
for (int i = 0; i < 3; i++) cin >> s[i];
sort(s.begin(), s.end());
if (s[0] + s[1] == s[2]) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
| a.cc:9:12: error: 'sort' has not been declared in 'std'
9 | using std::sort;
| ^~~~
a.cc: In function 'int main()':
a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
15 | sort(s.begin(), s.end());
| ^~~~
| sqrt
|
s955343466 | p03943 | C++ | #include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int> v(3);
cin >> v[0] >> v[1] >> v[2];
sort(v.begin(), v.end());
if(v[0]+v[1]==v[2]){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
8 | sort(v.begin(), v.end());
| ^~~~
| short
|
s962065304 | p03943 | C | #include<stdio.h>
int main(){
int a,b,c;
scnaf("%d %d %d",&a,&b,&c);
if(a+b==c||a+c==b||b+c==a){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scnaf("%d %d %d",&a,&b,&c);
| ^~~~~
| scanf
|
s389503283 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a==b+c||b=a+c||c==a+b)
cout << "Yes" << endl;
}
else{cout << "No" << endl;}
} | a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
8 | if(a==b+c||b=a+c||c==a+b)
| ~~~~~~^~~
a.cc: At global scope:
a.cc:11:5: error: expected unqualified-id before 'else'
11 | else{cout << "No" << endl;}
| ^~~~
a.cc:12:3: error: expected declaration before '}' token
12 | }
| ^
|
s459276462 | p03943 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <complex>
#include <fstream>
#include <cmath>
using namespace std;
int main(void){
int num[3];
cin >> num[0] >> num[1] >> num[2];
for(int i=0;i<3;i++){
if(num[0]+num[1]+num[2] % num[i] == true && num[i]==(num[0]+num[1]+num[2])/2{
cout << "Yes" << endl;
break;
}
}
cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:85: error: expected ')' before '{' token
15 | if(num[0]+num[1]+num[2] % num[i] == true && num[i]==(num[0]+num[1]+num[2])/2{
| ~ ^
| )
a.cc:19:5: error: expected primary-expression before '}' token
19 | }
| ^
|
s208288747 | p03943 | C++ | a,b,c=map(int,input().split())
print("Yes" if 2*max(a,b,c)==a+b+c else "No") | a.cc:1:1: error: 'a' does not name a type
1 | a,b,c=map(int,input().split())
| ^
|
s921193376 | p03943 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(void){
int a,b,c
string flag="NO";
cin>>a>>b>>c;
if(a+b==c)flag="YES";
else if(abs(a-b)==c)flag=="YES";
cout<<flag<<endl;
} | a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'string'
6 | string flag="NO";
| ^~~~~~
a.cc:7:16: error: 'c' was not declared in this scope
7 | cin>>a>>b>>c;
| ^
a.cc:8:15: error: 'flag' was not declared in this scope
8 | if(a+b==c)flag="YES";
| ^~~~
a.cc:9:25: error: 'flag' was not declared in this scope
9 | else if(abs(a-b)==c)flag=="YES";
| ^~~~
a.cc:11:11: error: 'flag' was not declared in this scope
11 | cout<<flag<<endl;
| ^~~~
|
s302258535 | p03943 | C++ | #include<iosteam>
#include<string>
using namespace std;
int main(void){
int a,b,c
string flag="NO";
cin>>a>>b>>c;
if(a+b==c)flag="YES";
else if(abs(a-b)==c)flag=="YES";
cout<<flag<<endl;
} | a.cc:1:9: fatal error: iosteam: No such file or directory
1 | #include<iosteam>
| ^~~~~~~~~
compilation terminated.
|
s575050883 | p03943 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c = 0;
cin >> a >> b >> c;
int m= 0;
int w= 0;
m = std::max({a,b,c});
w =a + b + c;
if(w == (2*m)){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:17: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
10 | m = std::max({a,b,c});
| ~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 1 provided
|
s817633464 | p03943 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c = 0;
cin >> a >> b >> c;
int m= 0;
int w= 0;
m = max({a,b,c});
w =a + b + c;
if(w == (2*m)){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
10 | m = max({a,b,c});
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 1 provided
|
s266379305 | p03943 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c = 0;
cin >> a >> b >> c;
int m= 0;
int w= 0;
m = max({a,b,c});
w =a + b + c;
if(w == (2*m)){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
10 | m = max({a,b,c});
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 1 provided
|
s703173843 | p03943 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c = 0;
cin >> a >> b >> c;
int m= 0;
int w= 0;
m = max({a,b,c});
w =a + b + c
if(w == (2*m)){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
10 | m = max({a,b,c});
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate expects 3 arguments, 1 provided
a.cc:11:17: error: expected ';' before 'if'
11 | w =a + b + c
| ^
| ;
12 | if(w == (2*m)){
| ~~
a.cc:15:5: error: 'else' without a previous 'if'
15 | else{
| ^~~~
|
s734495176 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int x=(a+b+c)/2
if(x==a||x==b||x==c){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
8 | if(x==a||x==b||x==c){
| ^~
a.cc:11:3: error: 'else' without a previous 'if'
11 | else{
| ^~~~
|
s640705312 | p03943 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int a,b,c;
int main(){
cin>>a>>b>>c;
if(max(max(a,b),c)-(a+b+c-max(max(a,b),c)==0){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:48: error: expected ';' before '{' token
7 | if(max(max(a,b),c)-(a+b+c-max(max(a,b),c)==0){
| ^
| ;
a.cc:9:4: error: expected primary-expression before 'else'
9 | }else{
| ^~~~
a.cc:9:4: error: expected ')' before 'else'
9 | }else{
| ^~~~
| )
a.cc:7:5: note: to match this '('
7 | if(max(max(a,b),c)-(a+b+c-max(max(a,b),c)==0){
| ^
|
s175442667 | p03943 | Java | import java.io.*;
public class a
{
public static void main (String[] args) throws IOException
{
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String str1 = br.readLine();
String[] str2 = str1.split(" ", 0);
int i[] = new int[3];
String result;
for(int j=0; j<3; j++) {
i[j] = Integer.parseInt(str2[j]);
//System.out.println(i[j]);
}
if(i[0] == i[1]+i[2]) { result = "Yes"; }
else if(i[1] == i[2]+i[0]) { result = "Yes"; }
else if(i[2] == i[0]+i[1]) { result = "Yes"; }
else { result = "No"; }
System.out.println(result);
}
} | Main.java:3: error: class a is public, should be declared in a file named a.java
public class a
^
1 error
|
s643650228 | p03943 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b - sc.nextInt();
int c = sc.nextInt();
if(a+b == c||b+c == a||c+a == b)
System.out.println("Yes");
else System.out.println("No");
}
} | Main.java:6: error: ';' expected
int b - sc.nextInt();
^
1 error
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.