submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s103432855 | p03943 | C++ | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<string> vs;
typedef vector<ll> vl;
typedef vector<vector<int, int> > vvi;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 5;
int main(){
int a, b, c;
cin >> a >> b >>c;
vi v;
v.pb(a);
v.pb(b);
v.pb(c);
sort(all(v));
if(v[0] + v[1] == v[2]){
cout << "Yes";
}
else cout << "No"; | a.cc: In function 'int main()':
a.cc:32:23: error: expected '}' at end of input
32 | else cout << "No";
| ^
a.cc:21:11: note: to match this '{'
21 | int main(){
| ^
|
s379524044 | p03943 | C++ | #include<iostream>
#include<vector>
using namespace std;
int main(){
int a, b, c;
vector<int> v;
cin >> a >> b >> c;
v.push_back(a);
v.push_back(b);
v.push_back(c);
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:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
12 | sort(v.begin(), v.end());
| ^~~~
| short
|
s210357285 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
vector<int> abc(3);
cin >> abc.at(0) >> abc.at(1) >> abc.at(2);
sort(abc.begin(), abc.end())
if(abc.at(0)+abc.at(2) == abc.at(1)){cout << "Yes" << endl;}
else{cout << "No" << endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before 'if'
8 | sort(abc.begin(), abc.end())
| ^
| ;
9 | if(abc.at(0)+abc.at(2) == abc.at(1)){cout << "Yes" << endl;}
| ~~
a.cc:10:3: error: 'else' without a previous 'if'
10 | else{cout << "No" << endl;}
| ^~~~
|
s760857226 | p03943 | C++ | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cstring>
#include <cmath>
#include <climits>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <array>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define io() ios_base::sync_with_stdio(false); cin.tie(nullptr)
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define us unsigned short
#define fi first
#define se second
#define IN(i,l,r) (l<i&&i<r)
#define LINR(i,l,r) (l<=i&&i<=r)
#define LIN(i,l,r) (l<=i&&i<r)
#define INR(i,l,r) (l<i&&i<=r)
#define v(T) vector<T>
#define p(T, N) pair<T, N>
#define ii p(int, int)
#define vi v(int)
#define vii v(p(int, int))
#define vvi v(v(int))
#define vl v(long long)
#define vll v(p(long long, long long))
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define qsort(a) sort(all(a))
#define qsortd(a) sort(all(a), greater<>())
#define qsortf(a, f) sort(all(a), f)
#define qsortsi(v) sort(v.begin(), v.end(), [](pair<int, int> aoeui, pair<int, int> boeui){return aoeui.se < boeui.se;})
#define pb(n) push_back(n)
#define eb(n) emplace_back(n)
#define pp(a, b) emplace_back(make_pair(a, b))
#define elif else if
#define fori(i, n) for(ll i = 0; i < n; i++)
#define foris(i, a, b) for(ll i = a; i < b; i++)
#define forise(i, a, b) for(ll i = a; i <= b; i++)
#define ford(i, n) for(ll i = n; i >= 0; i--)
#define fords(i, a, b) for(ll i = a; i >= b; i--)
#define fordse(i, a, b) for(ll i = a; i > b; i--)
#define forr(i, a) for (auto &i: a)
#define rev(a) reverse(a.begin(), a.end())
#define revf(a, b, c) (reverse(a.begin() + b, a.begin() + c))
#define digits(i) (int)((log(i)/(log(10))+1)
#define umap unordered_map
#define nl '\n'
#define fileio(in, out) freopen(in, "r", stdin); freopen(out, "w", stdout)
const int mod = 1000000007;
int A, B, C;
vi arr;
int main() {
io();
cin >> A >> B >> C;
arr.pb(a); arr.pb(b); arr.pb(c);
qsort(arr);
if(arr[0] + arr[1] == arr[2]) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:82:10: error: 'a' was not declared in this scope
82 | arr.pb(a); arr.pb(b); arr.pb(c);
| ^
a.cc:56:25: note: in definition of macro 'pb'
56 | #define pb(n) push_back(n)
| ^
a.cc:82:21: error: 'b' was not declared in this scope
82 | arr.pb(a); arr.pb(b); arr.pb(c);
| ^
a.cc:56:25: note: in definition of macro 'pb'
56 | #define pb(n) push_back(n)
| ^
a.cc:82:32: error: 'c' was not declared in this scope
82 | arr.pb(a); arr.pb(b); arr.pb(c);
| ^
a.cc:56:25: note: in definition of macro 'pb'
56 | #define pb(n) push_back(n)
| ^
|
s244642800 | p03943 | Java | import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
ArrayList<Integer> li = new ArrayList<>();
li.add(sc.nextInt());
li.add(sc.nextInt());
li.add(sc.nextInt());
Collections.sort(li,collections.reverseOrder());
if(li.get(0) == li.get(1) + li.get(2)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:11: error: cannot find symbol
Collections.sort(li,collections.reverseOrder());
^
symbol: variable collections
location: class Main
1 error
|
s198580339 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n[] = new int[3];
for(int i=0;i<3;i++){
n[i]=Integer.parseInt(sc.next());
}
if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
| Main.java:7: error: cannot find symbol
n[i]=Integer.parseInt(sc.next());
^
symbol: variable sc
location: class Main
1 error
|
s477229479 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String n[] = new String[3];
for(int i=0;i<3;i++){
n[i]=Integer.parseInt(scan.next());
}
if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
| Main.java:7: error: incompatible types: int cannot be converted to String
n[i]=Integer.parseInt(scan.next());
^
1 error
|
s007612386 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String n[] = new String[3];
for(int i=0;i<3;i++){
n[i]=Integer.parseInt(sc.next());
}
if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
| Main.java:7: error: cannot find symbol
n[i]=Integer.parseInt(sc.next());
^
symbol: variable sc
location: class Main
1 error
|
s787884959 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n[] = new int[3];
for(int i=0;i<3;i++){
n[i]=scan.next();
}
if(n[0]+n[1]==n[2]||n[0]+n[2]==n[1]||n[1]+n[2]==n[0]){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:7: error: incompatible types: String cannot be converted to int
n[i]=scan.next();
^
1 error
|
s039578597 | p03943 | Java | import java.util.*;
import java.lang.Math.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int num[] = new int[3];
int maxNum = 0;
int sum = 0;
int remain = 0;
for(int i=0;i<3;i++){
num[i] = sc.nextInt();
sum += num[i];
}
maxNum = Math.max(num[0],num[1],num[2]);
remain = sum - maxNum;
if(maxNum == remain){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:15: error: no suitable method found for max(int,int,int)
maxNum = Math.max(num[0],num[1],num[2]);
^
method Math.max(int,int) is not applicable
(actual and formal argument lists differ in length)
method Math.max(long,long) is not applicable
(actual and formal argument lists differ in length)
method Math.max(float,float) is not applicable
(actual and formal argument lists differ in length)
method Math.max(double,double) is not applicable
(actual and formal argument lists differ in length)
1 error
|
s814522641 | p03943 | Java | import java.util.*;
import java.lang.Math.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int num[] = new int[3];
int max = 0;
int sum = 0;
int remain = 0;
for(int i=0;i<3;i++){
num[i] = sc.nextInt();
sum += num[i];
}
max = Math.max(num[0],num[1],num[2]);
remain = sum - max;
if(max == remain){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:15: error: no suitable method found for max(int,int,int)
max = Math.max(num[0],num[1],num[2]);
^
method Math.max(int,int) is not applicable
(actual and formal argument lists differ in length)
method Math.max(long,long) is not applicable
(actual and formal argument lists differ in length)
method Math.max(float,float) is not applicable
(actual and formal argument lists differ in length)
method Math.max(double,double) is not applicable
(actual and formal argument lists differ in length)
1 error
|
s388609915 | p03943 | Java | import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int num[] = new int[3];
int max = 0;
int sum = 0;
int remain = 0;
for(int i=0;i<3;i++){
num[i] = sc.nextInt();
sum += num[i];
}
max = Math.max(num[0],num[1],num[2]);
remain = sum - max;
if(max == remain){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:14: error: no suitable method found for max(int,int,int)
max = Math.max(num[0],num[1],num[2]);
^
method Math.max(int,int) is not applicable
(actual and formal argument lists differ in length)
method Math.max(long,long) is not applicable
(actual and formal argument lists differ in length)
method Math.max(float,float) is not applicable
(actual and formal argument lists differ in length)
method Math.max(double,double) is not applicable
(actual and formal argument lists differ in length)
1 error
|
s349698472 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if ((a + b + c) % 3 == 0)
{
cout << "Yes" << endl
}
else
{
cout << "No" << endl
}
}
| a.cc: In function 'int main()':
a.cc:11:38: error: expected ';' before '}' token
11 | cout << "Yes" << endl
| ^
| ;
12 | }
| ~
a.cc:15:37: error: expected ';' before '}' token
15 | cout << "No" << endl
| ^
| ;
16 | }
| ~
|
s284903655 | p03943 | C++ | # include<bits/stdc++.h>
using namespace std;
int main (){
int a,b,c;
cin>>a>>b>>c;
c.push_back(a);
c.push_back(b);
c.push_back(c);
sort(c.begin(),c.end());
if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
cout<<"Yes";
}
else {
cout<<"No";
}
}
| a.cc: In function 'int main()':
a.cc:6:3: error: request for member 'push_back' in 'c', which is of non-class type 'int'
6 | c.push_back(a);
| ^~~~~~~~~
a.cc:7:3: error: request for member 'push_back' in 'c', which is of non-class type 'int'
7 | c.push_back(b);
| ^~~~~~~~~
a.cc:8:3: error: request for member 'push_back' in 'c', which is of non-class type 'int'
8 | c.push_back(c);
| ^~~~~~~~~
a.cc:9:8: error: request for member 'begin' in 'c', which is of non-class type 'int'
9 | sort(c.begin(),c.end());
| ^~~~~
a.cc:9:18: error: request for member 'end' in 'c', which is of non-class type 'int'
9 | sort(c.begin(),c.end());
| ^~~
a.cc:10:6: error: invalid types 'int[int]' for array subscript
10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
| ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
| ^
a.cc:10:20: error: invalid types 'int[int]' for array subscript
10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
| ^
a.cc:10:35: error: invalid types 'int[int]' for array subscript
10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
| ^
a.cc:10:41: error: invalid types 'int[int]' for array subscript
10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
| ^
a.cc:10:46: error: invalid types 'int[int]' for array subscript
10 | if((c[2]==c[1] && c[0]%2==0) || (c[2]==c[1]+c[0])){
| ^
|
s728260638 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(a+b==c){
cout<<"Yes"<<endl;
}
if(a+c==b){
cout<<"Yes"<<endl;
}
if(b+c==a){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl; | a.cc: In function 'int main()':
a.cc:17:22: error: expected '}' at end of input
17 | cout<<"No"<<endl;
| ^
a.cc:16:7: note: to match this '{'
16 | else{
| ^
a.cc:17:22: error: expected '}' at end of input
17 | cout<<"No"<<endl;
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s919642880 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define be begin()
#define en end()
#define le length()
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (__typeof(n) i = 0; i < n; i++)
#define repo(i, n) for (__typeof(n) i = 1; i <= n; i++)
#define eps 1e-6
#define pi 3.141592653589793
#define c(a) cout << a << "\n";
#define a(a) \
for (auto i : a) \
cout << i << " ";
typedef vector<int> vii;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int MOD = 1e9 + 7;
const int INF = 1e9;
int main()
{
ll a,b,c;
cin>>a>>b>>C;
if(a==b+c || b==a+c || c==a+b) c("Yes")
else c("No")
} | a.cc: In function 'int main()':
a.cc:31:12: error: 'C' was not declared in this scope
31 | cin>>a>>b>>C;
| ^
|
s010532588 | p03943 | C++ | #include <iostream>
#include <utility>
#include <vector>
#include <queue>
#include <stack>
#include <array>
#include <algorithm>
#include <numeric>
#include <limits>
#include <string>
#include <regex>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
using ll = long long;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a + b == c || b + c == a || c + a == b) cout << "Yes" << endl;
else << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:23:10: error: expected primary-expression before '<<' token
23 | else << "No" << endl;
| ^~
|
s443326437 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int a,b,c;
cin a >> b >> c;
if((a+b+c)%3==0) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'a'
7 | cin a >> b >> c;
| ^~
| ;
|
s324080702 | p03943 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(){
int a[3];
cin >> a[0] >> a[1] >> a[2];
bool f = false;
if(a[0] + a[1] == a[2] or a[0] = a[1] + a[2] or a[0] + a[2] == a[1]) f = true;
if(f) cout << "Yes";
else cout << "No";
}
| a.cc: In function 'int main()':
a.cc:10:26: error: lvalue required as left operand of assignment
10 | if(a[0] + a[1] == a[2] or a[0] = a[1] + a[2] or a[0] + a[2] == a[1]) f = true;
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
|
s307851457 | p03943 | C | #include<stdio.h>
int main(void) {
int a, b, c;
int max, x, y;
scanf("%d %d %d", &a, &b, &c);
if(a >= b && a>= c) {
max = a;
x = b;
y = c;
}
else if(b >= a && b>= c) {
max = b;
x = a;
y = c;
}
else {
max = c;
x = a;
y = b;
}
if(max == x + y;) {
puts("YES");
}
else {
puts("NO");
}
return 0;
} | main.c: In function 'main':
main.c:25:18: error: expected ')' before ';' token
25 | if(max == x + y;) {
| ~ ^
| )
|
s499832392 | 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");}
}
| main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
4 | scanf("%d%d%d",&a,&b,&c);
| ^~~~~
main.c:6:10: error: 'c' undeclared (first use in this function)
6 | if((a==b+c)||(b==a+c)||(c==a+b)){
| ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
|
s120487732 | 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");}
} | main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
4 | scanf("%d%d%d",a,b,c);
| ^~~~~
main.c:6:10: error: 'c' undeclared (first use in this function)
6 | if((a==b+c)||(b==a+c)||(c==a+b)){
| ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
|
s540888800 | p03943 | C++ | #inclde<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;
}
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
1 | #inclde<bits/stdc++.h>
| ^~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin>>a>>b>>c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #inclde<bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout<<"Yes"<<endl;
| ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
8 | cout<<"Yes"<<endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #inclde<bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout<<"No"<<endl;
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:17: error: 'endl' was not declared in this scope
10 | cout<<"No"<<endl;
| ^~~~
a.cc:10:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s301055902 | p03943 | C++ | a,b,c=map(int,input().split())
if a+b==c or a+c==b or b+c==a:
print('Yes')
else:
print('No') | a.cc:3:9: warning: multi-character character constant [-Wmultichar]
3 | print('Yes')
| ^~~~~
a.cc:5:9: warning: multi-character character constant [-Wmultichar]
5 | print('No')
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a,b,c=map(int,input().split())
| ^
|
s874851029 | p03943 | C++ | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
bool can;
if (a + b == c || b + c == a || c + a == b) cna = true;
else can = false;
cout << (can ? "Yes" : "No") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:49: error: 'cna' was not declared in this scope; did you mean 'can'?
10 | if (a + b == c || b + c == a || c + a == b) cna = true;
| ^~~
| can
|
s598868001 | p03943 | C++ | #include <bits/stdc++.h>
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" << end;
}
} | a.cc: In function 'int main()':
a.cc:17:18: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
17 | cout << "No" << end;
| ~~~~~~~~~~~~~^~~~~~
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,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
306 | |
s872875905 | p03943 | Java | 10 30 20 | Main.java:1: error: class, interface, enum, or record expected
10 30 20
^
1 error
|
s920481069 | p03943 | C | #include<stdio.h>
int main(){
int a,b,c;
if(a=b+c){
printf("Yes");
}else if(b=a+c){
printf("Yes");
}else if(c=a+b){
printf("Yes");
}else{
printf("No")
}
return 0;
}
| main.c: In function 'main':
main.c:11:17: error: expected ';' before '}' token
11 | printf("No")
| ^
| ;
12 | }
| ~
|
s794697199 | p03943 | C | #include<stdion.h>
int main(){
int a,b,c;
if(a=b+c){
printf("Yes");
}else if(b=a+c){
printf("Yes");
}else if(c=a+b){
printf("Yes");
}else{
printf("No")
}
return 0;
}
| main.c:1:9: fatal error: stdion.h: No such file or directory
1 | #include<stdion.h>
| ^~~~~~~~~~
compilation terminated.
|
s559754488 | 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;
}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: lvalue required as left operand of assignment
7 | if((a+b=c)||(a+c=b)||(c+b=a)){
| ~^~
a.cc:7:17: error: lvalue required as left operand of assignment
7 | if((a+b=c)||(a+c=b)||(c+b=a)){
| ~^~
a.cc:7:26: error: lvalue required as left operand of assignment
7 | if((a+b=c)||(a+c=b)||(c+b=a)){
| ~^~
|
s186951242 | p03943 | C | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&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:7:23: error: lvalue required as left operand of assignment
7 | if(a=(b+c)||b=(a+c)||c=(a+b)){printf("Yes");}
| ^
|
s382657316 | p03943 | C | #include <stdio.h>
int main(void){
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&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:3:13: error: 'a' undeclared (first use in this function)
3 | scanf("%d",&a);
| ^
main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:15: error: 'b' undeclared (first use in this function)
4 | scanf("%d",&b);
| ^
main.c:5:15: error: 'c' undeclared (first use in this function)
5 | scanf("%d",&c);
| ^
|
s893992953 | p03943 | C | #include <stdio.h>
int main(void){
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&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:3:13: error: 'a' undeclared (first use in this function)
3 | scanf("%d",&a);
| ^
main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:15: error: 'b' undeclared (first use in this function)
4 | scanf("%d",&b);
| ^
main.c:5:15: error: 'c' undeclared (first use in this function)
5 | scanf("%d",&c);
| ^
|
s183248432 | p03943 | C | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a>=b&&a>=c){if(a=(b+c){printf("Yes");}else{printf("No");}}
if(b>=c&&b>=a){if(b=(a+c){printf("Yes");}else{printf("No");}}
if(c>=b&&c>=a){if(c=(b+a){printf("Yes");}else{printf("No");}}
return 0;
} | main.c: In function 'main':
main.c:5:28: error: expected ')' before '{' token
5 | if(a>=b&&a>=c){if(a=(b+c){printf("Yes");}else{printf("No");}}
| ~ ^
| )
main.c:5:63: error: expected expression before '}' token
5 | if(a>=b&&a>=c){if(a=(b+c){printf("Yes");}else{printf("No");}}
| ^
main.c:6:26: error: expected ')' before '{' token
6 | if(b>=c&&b>=a){if(b=(a+c){printf("Yes");}else{printf("No");}}
| ~ ^
| )
main.c:6:61: error: expected expression before '}' token
6 | if(b>=c&&b>=a){if(b=(a+c){printf("Yes");}else{printf("No");}}
| ^
main.c:7:26: error: expected ')' before '{' token
7 | if(c>=b&&c>=a){if(c=(b+a){printf("Yes");}else{printf("No");}}
| ~ ^
| )
main.c:7:61: error: expected expression before '}' token
7 | if(c>=b&&c>=a){if(c=(b+a){printf("Yes");}else{printf("No");}}
| ^
|
s730078674 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
// start
int a, b, c;
cin >> a >> b >> c;
if (a + b == c)
cout << "Yes" endl;
else if (a == b + c)
cout << "Yes" << endl;
else if (a + c == b)
cout << "Yes" << endl;
else
cout << "No" << endl;
// end
return 0;
}
| a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before 'endl'
16 | cout << "Yes" endl;
| ^~~~~
| ;
|
s404704272 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c; cin >> a >> b >> c;
int M;
M = max({a, b, c});
if (2 * M = a + b + c) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:9: error: lvalue required as left operand of assignment
9 | if (2 * M = a + b + c) {
| ~~^~~
|
s676050289 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c; cin >> a >> b >> c;
M = max({a, b, c});
if (2 * M = a + b + c) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:3: error: 'M' was not declared in this scope
7 | M = max({a, b, c});
| ^
|
s936663447 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c;
cin >> a >> b >> c;
int s = (a + b + c) / 2
if (s == a || s == b || s == c) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'if'
7 | if (s == a || s == b || s == c) {
| ^~
a.cc:10:3: error: 'else' without a previous 'if'
10 | else {
| ^~~~
|
s643629747 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c;
cin >> a >> b >> c;
int s = (a + b + c) / 2
if (s == max (a, b, c)) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'if'
7 | if (s == max (a, b, c)) {
| ^~
a.cc:10:3: error: 'else' without a previous 'if'
10 | else {
| ^~~~
|
s173001203 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,;
cin >> a >> b >> c;
if(a == (b+c)){
cout << "Yes";
}else if(b == (a+c)){
cout << "Yes";
}else if(c = (a+b)){
cout << "Yes";
}else{
cout << "No";
}
}
| a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
4 | int a,b,c,;
| ^
|
s065837336 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,;
cin >> a >> b >> c;
if(a == b+c){
cout << "Yes";
}else if(b == a+c){
cout << "Yes";
}else if(c = a+b){
cout << "Yes";
}else{
cout << "No";
}
}
| a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
4 | int a,b,c,;
| ^
|
s732989558 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace std ;
int main() {
int a,b,c ; cin >> a >> b >> c ;
int sum = a+b+c ;
int max = max({a,b,c});
cout << (max == sum -max) ? "Yes" : "No" ;
} | a.cc: In function 'int main()':
a.cc:9:16: error: 'max' cannot be used as a function
9 | int max = max({a,b,c});
| ~~~^~~~~~~~~
|
s859100804 | p03943 | C++ | A, B, C = map(int, input().split())
sum = A + B + C
M = max([A, B, C])
if M == sum - M:
print("Yes")
else:
print("No") | a.cc:1:1: error: 'A' does not name a type
1 | A, B, C = map(int, input().split())
| ^
|
s044870302 | 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;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [3]')
9 | cout >> "No" << endl;
| ~~~~ ^~ ~~~~
| | |
| | const char [3]
| std::ostream {aka std::basic_ostream<char>}
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/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:9:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
9 | cout >> "No" << endl;
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/iostream:42:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:9:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[3]]':
a.cc:9:13: required from here
9 | cout >> "No" << endl;
| ^~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
|
s219283375 | p03943 | C++ | #include<iostream>
using namespece 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:2:7: error: expected nested-name-specifier before 'namespece'
2 | using namespece std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout << "Yes" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout << "Yes" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | 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:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout >> "No" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s354490701 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>h;
if (a+b==c||b+c==a||a+c==b){
cout<<"Yes"<<endl;
}
else{
cout << "No" <<endl;
}
} | a.cc: In function 'int main()':
a.cc:6:14: error: 'h' was not declared in this scope
6 | cin>>a>>b>>h;
| ^
|
s308761290 | p03943 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) (v).begin(),(v).end()
using namespace std ;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
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 ;
return 0 ;
}
/* 吾輩はやれば出来る子である。
∩∩
(´・ω・)
_| ⊃/(___
/ └-(____/
 ̄ ̄ ̄ ̄ ̄ ̄ ̄
やる気はまだない
⊂⌒/ヽ-、__
/⊂_/____ /
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ */ | a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
27 | }
| ^
a.cc:15:1: note: to match this '{'
15 | {
| ^
|
s053303056 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
#include<vector>
int main(){
vector<int> x(3);
cin >> x.at(0) >> x.at(1) >> x.at(2) >> endl;
sort (x.begin(), x.end());
if (x.at(0) + x.at(1) == x.at(2)){
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:40: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>')
7 | cin >> x.at(0) >> x.at(1) >> x.at(2) >> endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: n |
s814674582 | p03943 | Java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String result = " ";
Integer [] a = new Integer[2] ;
for(int i =0; i < 3; i++) {
a[i] = scan.nextInt();
}
Arrays.sort(a[2]) ;
if (a[2] == a[1] + a[0]) {
result = "Yes" ;
} else {
result = "No" ;
}
System.out.println(result);
}
} | Main.java:15: error: no suitable method found for sort(Integer)
Arrays.sort(a[2]) ;
^
method Arrays.sort(int[]) is not applicable
(argument mismatch; Integer cannot be converted to int[])
method Arrays.sort(long[]) is not applicable
(argument mismatch; Integer cannot be converted to long[])
method Arrays.sort(short[]) is not applicable
(argument mismatch; Integer cannot be converted to short[])
method Arrays.sort(char[]) is not applicable
(argument mismatch; Integer cannot be converted to char[])
method Arrays.sort(byte[]) is not applicable
(argument mismatch; Integer cannot be converted to byte[])
method Arrays.sort(float[]) is not applicable
(argument mismatch; Integer cannot be converted to float[])
method Arrays.sort(double[]) is not applicable
(argument mismatch; Integer cannot be converted to double[])
method Arrays.sort(Object[]) is not applicable
(argument mismatch; Integer cannot be converted to Object[])
method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
(cannot infer type-variable(s) T#1
(actual and formal argument lists differ in length))
method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
(cannot infer type-variable(s) T#2
(actual and formal argument lists differ in length))
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
|
s632766533 | p03943 | C++ | #include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;
int main(){
string A, B, C;
cin >> A >> B >> C;
string ans = "No";
if(A + B + C == 2 * max(A, B, C)) ans = "Yes";
cout << ans << endl;
}
| a.cc: In function 'int main()':
a.cc:19:21: error: no match for 'operator*' (operand types are 'int' and 'const std::__cxx11::basic_string<char>')
19 | if(A + B + C == 2 * max(A, B, C)) ans = "Yes";
| ~ ^ ~~~~~~~~~~~~
| | |
| int const std::__cxx11::basic_string<char>
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 = __cxx11::basic_string<char>; _Compare = __cxx11::basic_string<char>]':
a.cc:19:26: required from here
19 | if(A + B + C == 2 * max(A, B, C)) ans = "Yes";
| ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: no match for call to '(std::__cxx11::basic_string<char>) (const std::__cxx11::basic_string<char>&, const std::__cxx11::basic_string<char>&)'
306 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~
|
s890194199 | p03943 | C++ | n=list(map(int,input().split()))
n.sort()
print("Yes" if n[2]==n[0]+n[1] else "No") | a.cc:1:1: error: 'n' does not name a type
1 | n=list(map(int,input().split()))
| ^
|
s069564963 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c ;
cin >>a >>b >>c ;
if(a+b==c) printf("Yes");
if(a+c==b) printf("Yes");
if(b+c==a) printf("Yes");
else printf("No")
} | a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
11 | else printf("No")
| ^
| ;
12 | }
| ~
|
s022338038 | p03943 | C++ | #include <cstdio>
using namespace std;
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if ((a+b+c)%2 == 0 && ((a+b+c)/2 == a || (a+b+c)/2 == b || (a+b+c)/2 == c) {
printf("Yes\n");
}
} | a.cc: In function 'int main()':
a.cc:7:77: error: expected ')' before '{' token
7 | if ((a+b+c)%2 == 0 && ((a+b+c)/2 == a || (a+b+c)/2 == b || (a+b+c)/2 == c) {
| ~ ^~
| )
a.cc:10:1: error: expected primary-expression before '}' token
10 | }
| ^
|
s484587185 | p03943 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
int d=a+b,b+c,c+a; e=a+b+c;
if(e==2*c) cout<<"Yes"<<endl;
else cout<<"No"<endl;
} | a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '+' token
7 | int d=a+b,b+c,c+a; e=a+b+c;
| ^
a.cc:7:22: error: 'e' was not declared in this scope
7 | int d=a+b,b+c,c+a; e=a+b+c;
| ^
a.cc:9:18: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | else cout<<"No"<endl;
| ~~~~~~~~~~^~~~~
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: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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | else cout<<"No"<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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
9 | else cout<<"No"<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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | else cout<<"No"<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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
9 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h: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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
9 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view: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:9:19: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | else cout<<"No"<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:9:19: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
9 | else cout<<"No"<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:9:19: note: couldn't deduce template parameter '_CharT'
9 | else cout<<"No"<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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | else cout<<"No"<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:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
9 | else cout<<"No"<endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:9:19: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
9 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:9:19: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
9 | else cout<<"No"<endl;
| ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s386117855 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, p,;
cin >> a >> b >> c;
p = max(max(a, b), c);
if(p == a + b + c - p)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:5:18: error: expected unqualified-id before ';' token
5 | int a, b, c, p,;
| ^
|
s847694654 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int x = max({a,b,c});
int n = a+b+c-max;
if(n==x)
cout << "Yes" <<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
7 | int n = a+b+c-max;
| ~~~~~^~~~
|
s471693842 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int max = max({a,b,c});
int n = a+b+c-max;
if(n==max)
cout << "Yes" <<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:16: error: 'max' cannot be used as a function
6 | int max = max({a,b,c});
| ~~~^~~~~~~~~
|
s510544501 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int max = ({a,b,c});
int n = a+b+c-max;
if(n==max)
cout << "Yes" <<endl;
else cout<<"No"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:20: error: expected ';' before '}' token
6 | int max = ({a,b,c});
| ^
| ;
|
s231213468 | 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 || c + a == b){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:14: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | cin >> a > b >> c;
| ~~~~~~~~ ^ ~~~~~~
| | |
| | int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:6:14: note: candidate: 'operator>(int, int)' (built-in)
6 | cin >> a > b >> c;
| ~~~~~~~~~^~~~~~~~
a.cc:6:14: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<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:1176:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
1176 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1176:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/regex.h:1236: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>&)'
1236 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1236:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/regex.h:1329: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>&)'
1329 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1329:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/regex.h:1403:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)'
1403 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1403:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/regex.h:1497:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
1497 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1497:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/regex.h:1573:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)'
1573 | operator>(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1573:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/regex.h:1673:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
1673 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1673:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>'
6 | cin >> a > b >> c;
| ^
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:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>'
6 | cin >> a > b >> c;
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
462 | operator>(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
507 | operator>(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1714 | operator>(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1774 | operator>(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
6 | cin >> a > b >> c;
| ^
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:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
695 | operator> (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/string_view:702: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> >)'
702 | operator> (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/string_view:710: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>)'
710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed:
a.cc:6:21: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
6 | cin >> a > b >> c;
| ^
/usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template |
s870804004 | p03943 | C++ | #include<stdio.h>
#include<stlib.h>
int main(void){
int a,b,c;
if(abs(a-b)==c){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | a.cc:2:9: fatal error: stlib.h: No such file or directory
2 | #include<stlib.h>
| ^~~~~~~~~
compilation terminated.
|
s513522416 | p03943 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //3つのキャンディーパックを2人に分ける
int a = sc.nextInt(); //キャンディーa
int b = sc.nextInt(); //キャンディーb
int c = sc.nextInt(); //キャンディーc
if(a+b==c || b+c==a || a+c==b){
System.out.println(YES);
}
else{
System.out.println(NO);
}
}
}
| Main.java:11: error: cannot find symbol
System.out.println(YES);
^
symbol: variable YES
location: class Main
Main.java:14: error: cannot find symbol
System.out.println(NO);
^
symbol: variable NO
location: class Main
2 errors
|
s179329326 | p03943 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); //3つのキャンディーパックを2人に分ける
int a = sc.nextInt(); //キャンディーa
int b = sc.nextInt(); //キャンディーb
int c = sc.nextInt(); //キャンディーc
if(a+b=c || b+c=a || a+c=b){
System.out.println(YES);
}
else{
System.out.println(NO);
}
}
}
| Main.java:10: error: unexpected type
if(a+b=c || b+c=a || a+c=b){
^
required: variable
found: value
Main.java:10: error: bad operand types for binary operator '||'
if(a+b=c || b+c=a || a+c=b){
^
first type: int
second type: int
Main.java:10: error: bad operand types for binary operator '||'
if(a+b=c || b+c=a || a+c=b){
^
first type: int
second type: int
Main.java:11: error: cannot find symbol
System.out.println(YES);
^
symbol: variable YES
location: class Main
Main.java:14: error: cannot find symbol
System.out.println(NO);
^
symbol: variable NO
location: class Main
5 errors
|
s890423578 | p03943 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int ans = 3;
if (a == b && b == c) {
cout << "1" << endl;
return 0;
}
if (a == b) {
ans--;
}
if (b == c){
ans--;
}
if (a == c) {
ans--;
}
cout << ans << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int ab, ac, bc;
ab = a + b;
ac = a + c;
bc = b + c;
if (a == bc || b == ac || c == ab) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
}
| a.cc:27:5: error: redefinition of 'int main()'
27 | int main() {
| ^~~~
a.cc:4:5: note: 'int main()' previously defined here
4 | int main() {
| ^~~~
|
s878736893 | p03943 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int ans = 3;
if (a == b && b == c) {
cout << "1" << endl;
return 0;
}
if (a == b) {
ans--;
}
if (b == c){
ans--;
}
if (a == c) {
ans--;
}
cout << ans << endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int ab, ac, bc;
ab = a + b;
ac = a + c;
bc = b + c;
if (a == bc || b == ac || c == ab) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
}
| a.cc:27:5: error: redefinition of 'int main()'
27 | int main() {
| ^~~~
a.cc:4:5: note: 'int main()' previously defined here
4 | int main() {
| ^~~~
|
s690166472 | p03943 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << ( a+b+c == 2*max({a,b,c}) ? "Yes" : "No")
} | a.cc: In function 'int main()':
a.cc:21:52: error: expected ';' before '}' token
21 | cout << ( a+b+c == 2*max({a,b,c}) ? "Yes" : "No")
| ^
| ;
22 | }
| ~
|
s245810277 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int a, b, c;
cin >> a >> b >> c;
if((a + b) == c) {
cout << "Yes" << endl;
}
else {
cout <, "No" << endl;
}
if((a + c) == b) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
if((b + c) == a) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before ',' token
12 | cout <, "No" << endl;
| ^
a.cc:12:18: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
12 | cout <, "No" << endl;
| ~~~~~^~~~~~~
|
s264858220 | p03943 | C++ | #include <iostream>
int main(void) {
int 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:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout << "Yes" << endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | cout << "Yes" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout << "Yes" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
7 | cout << "Yes" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc: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
/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)
| ^~~~
|
s371069067 | p03943 | C++ | #include <bitint mas/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
if(max(a,max(b,c))==c+min(a,b)){
cout << "Yes" << endl;
}else{
cout << "No" <<endl;
}
} | a.cc:1:10: fatal error: bitint mas/stdc++.h: No such file or directory
1 | #include <bitint mas/stdc++.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s914054817 | p03943 | C++ | #include<bits/stdc.h++>
using namespace std;
int main(){
int a , b, c , d;
cin >> a >> b >> c;
if(a + b == c){
d++;
}if (b + c == a){
d++;
}if (c + a == b){
d++;
}
if(d >= 1){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
| a.cc:1:9: fatal error: bits/stdc.h++: No such file or directory
1 | #include<bits/stdc.h++>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s745305995 | p03943 | C++ | #include<bits/stdc++.h++>
using namespace std;
int main(){
int a , b, c , d;
cin >> a >> b >> c;
if(a + b == c){
d++;
}if (b + c == a){
d++;
}if (c + a == b){
d++;
}
if(d >= 1){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
| a.cc:1:9: fatal error: bits/stdc++.h++: No such file or directory
1 | #include<bits/stdc++.h++>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
|
s946559676 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >>a>>b>>c;
if((a+b+c)%2=0)
cout<<"No";
else
cout<<"Yes";
} | a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
7 | if((a+b+c)%2=0)
| ~~~~~~~^~
|
s490544028 | 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;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:53: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: couldn't deduce template parameter '_Bi_iter'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: couldn't deduce template parameter '_Bi_iter'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
7 | if(a==b+c || b==a+c || c==a+b)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:7:55: note: couldn't deduce template parameter '_CharT'
7 | |
s304036846 | 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 || c+a==b) {
cout <<"Yes"<<endl;
}
else {
cout <<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
5 | cin a>>b>>c;
| ^~
| ;
|
s435128890 | p03943 | C++ | #include <bits/stdc++.h>
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;
}
} | a.cc: In function 'int main()':
a.cc:6:10: error: lvalue required as left operand of assignment
6 | if (max({a,b,c})=a+b+c-max({a,b,c})){
| ~~~^~~~~~~~~
|
s981710571 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
int a[3];
cin >> a[0]>> a[1]>> a[2];
sort(a,a+3);
if(a[0]+a[1]==a[2])ans="Yes";
else ans = "No";
cout << ans << endl;
} | a.cc: In function 'int main()':
a.cc:13:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
13 | if(a[0]+a[1]==a[2])ans="Yes";
| ^~~
| abs
a.cc:14:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
14 | else ans = "No";
| ^~~
| abs
a.cc:15:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
15 | cout << ans << endl;
| ^~~
| abs
|
s983501588 | p03943 | C++ | #include<iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool possible = (a + b == c) || (a + c == b) || (b + c == a);
cout << possible ? "Yes" : "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:9:35: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
9 | cout << possible ? "Yes" : "No" << endl;
| ~~~~~^~~~~~~
|
s785605842 | p03943 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b >> c;
if((a + b + c) % 2 == 0) {
cout << 'Yes' << endl;
} else {
cout << 'No' << endl;
}
return 0;
} | a.cc:9:13: warning: multi-character character constant [-Wmultichar]
9 | cout << 'Yes' << endl;
| ^~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
11 | cout << 'No' << endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:6:20: error: 'c' was not declared in this scope
6 | cin >> a >> b >> c;
| ^
|
s247613288 | p03943 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a[]=new int[3];
a[0]=sc.nextInt();
a[1]=sc.nextInt();
a[2]=sc.nextInt();
Arrays.sort(a);
if(a[2]==a[1]+a[0]){
System.out.println("Yes");
}else{
System.out.println("No");
}
}}
| Main.java:11: error: cannot find symbol
Arrays.sort(a);
^
symbol: variable Arrays
location: class Main
1 error
|
s080582121 | p03943 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a[]=new int[3];
a[0]=sc.nextInt();
a[1]=sc.nextInt();
a[2]=sc.nextInt();
Arrays.sort(a);
if(a[2]==a[1]+a[0]){
System.out.println("Yes");}else{System.out.println("No");}
}} | Main.java:11: error: cannot find symbol
Arrays.sort(a);
^
symbol: variable Arrays
location: class Main
1 error
|
s120611666 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void)
{
int a, b, c;
set<int> s;
scanf("%d%d%d", &a, &b, &c);
s.insert(a), s.insert(b), s.insert(c);
if (s[0] + s[1] == s[2])
printf("Yes\n");
else
printf("No\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:8: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
9 | if (s[0] + s[1] == s[2])
| ^
a.cc:9:15: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
9 | if (s[0] + s[1] == s[2])
| ^
a.cc:9:23: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
9 | if (s[0] + s[1] == s[2])
| ^
|
s923398615 | p03943 | C++ | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&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:14:17: error: expected ';' before '}' token
14 | return 0
| ^
| ;
15 | }
| ~
|
s768415231 | p03943 | C++ | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a+b==c || b+c==a || a+c==b){
printf("Yes\n")
}
else{
printf("No\n")
{
return 0;
} | a.cc:8:21: error: extended character is not valid in an identifier
8 | if(a+b==c || b+c==a || a+c==b){
| ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000b' was not declared in this scope
8 | if(a+b==c || b+c==a || a+c==b){
| ^~~
a.cc:9:32: error: expected ';' before '}' token
9 | printf("Yes\n")
| ^
| ;
10 | }
| ~
a.cc:12:31: error: expected ';' before '{' token
12 | printf("No\n")
| ^
| ;
13 | {
| ~
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:11:13: note: to match this '{'
11 | else{
| ^
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:3:1: note: to match this '{'
3 | {
| ^
|
s156582413 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector a(3);
cin>>a[0]>>a[1]>>a[2];
sort(a.begin(),a.end());
if(a[0]+a[1]){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:13: error: class template argument deduction failed:
5 | vector a(3);
| ^
a.cc:5:13: error: no matching function for call to 'vector(int)'
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:64,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:707:9: note: candidate: 'template<class _Tp, class _Alloc, class _InputIterator, class> vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc>'
707 | vector(_InputIterator __first, _InputIterator __last,
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:707:9: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:678:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::initializer_list<_Tp>, const _Alloc&)-> std::vector<_Tp, _Alloc>'
678 | vector(initializer_list<value_type> __l,
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:678:7: note: template argument deduction/substitution failed:
a.cc:5:13: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
5 | vector a(3);
| ^
/usr/include/c++/14/bits/stl_vector.h:659:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, std::__type_identity_t<_Alloc>&)-> std::vector<_Tp, _Alloc>'
659 | vector(vector&& __rv, const __type_identity_t<allocator_type>& __m)
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:659:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:640:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, const _Alloc&, std::false_type)-> std::vector<_Tp, _Alloc>'
640 | vector(vector&& __rv, const allocator_type& __m, false_type)
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:640:7: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:635:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, const _Alloc&, std::true_type)-> std::vector<_Tp, _Alloc>'
635 | vector(vector&& __rv, const allocator_type& __m, true_type) noexcept
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:635:7: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:624:7: note: candidate: 'template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&, std::__type_identity_t<_Alloc>&)-> std::vector<_Tp, _Alloc>'
624 | vector(const vector& __x, const __type_identity_t<allocator_type>& __a)
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:624:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:620:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc>'
620 | vector(vector&&) noexcept = default;
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:620:7: note: template argument deduction/substitution failed:
a.cc:5:13: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'int'
5 | vector a(3);
| ^
/usr/include/c++/14/bits/stl_vector.h:601:7: note: candidate: 'template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc>'
601 | vector(const vector& __x)
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:601:7: note: template argument deduction/substitution failed:
a.cc:5:13: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'int'
5 | vector a(3);
| ^
/usr/include/c++/14/bits/stl_vector.h:569:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::size_t, const _Tp&, const _Alloc&)-> std::vector<_Tp, _Alloc>'
569 | vector(size_type __n, const value_type& __value,
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:569:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:556:7: note: candidate: 'template<class _Tp, class _Alloc> vector(std::size_t, const _Alloc&)-> std::vector<_Tp, _Alloc>'
556 | vector(size_type __n, const allocator_type& __a = allocator_type())
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:556:7: note: template argument deduction/substitution failed:
a.cc:5:13: note: couldn't deduce template parameter '_Tp'
5 | vector a(3);
| ^
/usr/include/c++/14/bits/stl_vector.h:542:7: note: candidate: 'template<class _Tp, class _Alloc> vector(const _Alloc&)-> std::vector<_Tp, _Alloc>'
542 | vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:542:7: note: template argument deduction/substitution failed:
a.cc:5:13: note: couldn't deduce template parameter '_Tp'
5 | vector a(3);
| ^
/usr/include/c++/14/bits/stl_vector.h:531:7: note: candidate: 'template<class _Tp, class _Alloc> vector()-> std::vector<_Tp, _Alloc>'
531 | vector() = default;
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:531:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:428:11: note: candidate: 'template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>)-> std::vector<_Tp, _Alloc>'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:428:11: note: template argument deduction/substitution failed:
a.cc:5:13: note: mismatched types 'std::vector<_Tp, _Alloc>' and 'int'
5 | vector a(3);
| ^
/usr/include/c++/14/bits/stl_vector.h:2033:5: note: candidate: 'template<class _InputIterator, class _ValT, class _Allocator, class, class> std::vector(_InputIterator, _InputIterator, _Allocator)-> vector<_ValT, _Allocator>'
2033 | vector(_InputIterator, _InputIterator, _Allocator = _Allocator())
| ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:2033:5: note: candidate expects 2 arguments, 1 provided
|
s108255512 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int s = (a+b+c)/2;
else
if((a==s||b==s||c==s)&&2*s==a+b+c)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'else' without a previous 'if'
8 | else
| ^~~~
|
s844876799 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int s = a+b+c
if((a==s||b==s||c==s)&&s%2==0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
8 | if((a==s||b==s||c==s)&&s%2==0)
| ^~
a.cc:10:5: error: 'else' without a previous 'if'
10 | else
| ^~~~
|
s177689866 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
s = (a+b+c)/2;
if(a==s||b==s||c==s)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 's' was not declared in this scope
7 | s = (a+b+c)/2;
| ^
|
s996468490 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(max(max(a,c),b)=a+b+c){cout<<"Yes";}
else{cout<<"No";}
} | a.cc: In function 'int main()':
a.cc:6:21: error: assignment of read-only location 'std::max<int>((* & std::max<int>(a, c)), b)'
6 | if(max(max(a,c),b)=a+b+c){cout<<"Yes";}
| ~~~~~~~~~~~~~~~^~~~~~
|
s353703161 | p03943 | Java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] abc = new int[3];
int sum = 0;
for(int i = 0;i < 3;i++){
abc[i] = sc.nextInt();
sum += abc[i];
}
Arrays.sort(abc);
if(abc[2] == abc[1]+abc[0] || sum%2 == 0){
System.out.println("Yes");
}else{
System.out.println("No");
}
} | Main.java:20: error: reached end of file while parsing
}
^
1 error
|
s239958014 | p03943 | C++ | #include "pch.h"
#include <iostream>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
using namespace std;
int main()
{
int a,b,c,N;
cin >> a >> b >> c;
N == a + b + c - max(a, max(b,c);
cout << (N == a || N == b || N == c ? "Yes" : "No") << endl;
} | a.cc:1:10: fatal error: pch.h: No such file or directory
1 | #include "pch.h"
| ^~~~~~~
compilation terminated.
|
s608604804 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a+b+c)%2="0)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
| a.cc:7:16: warning: missing terminating " character
7 | if((a+b+c)%2="0)
| ^
a.cc:7:16: error: missing terminating " character
7 | if((a+b+c)%2="0)
| ^~~
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
7 | if((a+b+c)%2="0)
| ~~~~~~~^~
a.cc:9:3: error: expected primary-expression before 'else'
9 | else
| ^~~~
a.cc:8:23: error: expected ')' before 'else'
8 | cout<<"Yes"<<endl;
| ^
| )
9 | else
| ~~~~
a.cc:7:5: note: to match this '('
7 | if((a+b+c)%2="0)
| ^
|
s878638197 | p03943 | C++ | #include<bits/stac++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a+b+c)%2)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
} | a.cc:1:9: fatal error: bits/stac++.h: No such file or directory
1 | #include<bits/stac++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s332618160 | 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:8:31: error: lvalue required as left operand of assignment
8 | if(a + b = c || a + c = b || b + c = a){
| ~~^~~~~~~~
|
s859230965 | p03943 | C++ | #include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.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;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:14: error: expected primary-expression before ',' token
14 | cout<,"No"<<endl;
| ^
a.cc:14:19: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
14 | cout<,"No"<<endl;
| ~~~~^~~~~~
|
s623585371 | p03943 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c; cin >> a >> b >> c;
int maxc = max({a, b, c});
cout << ((a+b+c) - maxc == maxc ? "Yes" : "No") << endl;
}
| a.cc: In function 'int main()':
a.cc:6:17: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
6 | int maxc = 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
|
s468730614 | 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"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
}
| a.cc:5:1: error: 'include' does not name a type
5 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: 'cin' was not declared in this scope
10 | cin>>a>>b>>c;
| ^~~
a.cc:13:1: error: 'cout' was not declared in this scope
13 | cout<<"Yes"<<endl;
| ^~~~
a.cc:13:14: error: 'endl' was not declared in this scope
13 | cout<<"Yes"<<endl;
| ^~~~
a.cc:15:1: error: 'cout' was not declared in this scope
15 | cout<<"No"<<endl;
| ^~~~
a.cc:15:13: error: 'endl' was not declared in this scope
15 | cout<<"No"<<endl;
| ^~~~
|
s691764634 | p03943 | C++ |
include<iostream>
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;
}
return 0;
} | a.cc:3:1: error: 'include' does not name a type
3 | include<iostream>
| ^~~~~~~
|
s846970637 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> C(3)
cin >> C[0] >> C[1] >> C[2];
sort(begin.C(), end.C());
if (C[0] + C[1] == C[2]) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
6 | cin >> C[0] >> C[1] >> C[2];
| ^~~
a.cc:8:14: error: overloaded function with no contextual type information
8 | sort(begin.C(), end.C());
| ^
a.cc:8:23: error: overloaded function with no contextual type information
8 | sort(begin.C(), end.C());
| ^
|
s842989691 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a[3];
for(int i=0;i<n;i++)
cin>>a[i];
sort(a,a+3);
if(a[0]+a[1]==a[2])
cout<<"YES";
else cout<<"NO";
}
| a.cc: In function 'int main()':
a.cc:8:19: error: 'n' was not declared in this scope
8 | for(int i=0;i<n;i++)
| ^
|
s884350261 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a[3];
for(int i=0;i<3;i++)
cin>>a[i];
sort(a,a+3);
if(a[2]-a[1]==0 || a[0]-a[1]==0 || a[2]-a[0]==0)
{
cout<<"Yes";
return 0;
}
if(a[2]-a[1]>0)
{
if(a[0]+a[1]==a[2])
{
cout<<"YES";
return 0;
}
else break;
}
cout<<"NO";
return 0;
}
| a.cc: In function 'int main()':
a.cc:24:14: error: break statement not within loop or switch
24 | else break;
| ^~~~~
|
s051701151 | 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:22:2: error: expected '}' at end of input
22 | }
| ^
a.cc:17:12: note: to match this '{'
17 | int main() {
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.