submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s694230086 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==b+c)
cout<<Yes<<endl;
else if(b==a+c)
cout<<Yes<<endl;
else if(c==a+b)
cout<<Yes<<endl;
else
cout<<No<<endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: 'Yes' was not declared in this scope
7 | cout<<Yes<<endl;
| ^~~
a.cc:9:11: error: 'Yes' was not declared in this scope
9 | cout<<Yes<<endl;
| ^~~
a.cc:11:11: error: 'Yes' was not declared in this scope
11 | cout<<Ye... |
s462796438 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
switch((a+b+c)/3){
case a:
case b:
case c:
cout<<"Yes";
break;
default:
cout<<"No";
break;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:10: error: the value of 'a' is not usable in a constant expression
7 | case a:
| ^
a.cc:4:7: note: 'int a' is not const
4 | int a,b,c;
| ^
a.cc:7:10: error: the value of 'a' is not usable in a constant expression
7 | case a:
|... |
s911476667 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int a, b, c;
if (a == b + c) {
cout << "Yes" << endl;
}
else if (b == a + c) {
cout << "Yes" << endl;
}
else if (c == a + b) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
}
| a.cc:20:1: error: expected declaration before '}' token
20 | }
| ^
|
s099446843 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int ans=(a+b+c)/3;
if((ans==a||ans==b)||ans==c)
cout<<Yes<<endl;
else
cout<<No<<endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: 'Yes' was not declared in this scope
8 | cout<<Yes<<endl;
| ^~~
a.cc:10:11: error: 'No' was not declared in this scope
10 | cout<<No<<endl;
| ^~
|
s310730429 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,sum;
cin >> a >> b >> c;
sum==a+b+c;
sum%=3;
if (sum==0){
cout << "Yes" << endl;
}
else{
cout << "No" << end;
}
} | a.cc: In function 'int main()':
a.cc:15:18: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
15 | cout << "No" << end;
| ~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/istream:41,
from /usr/includ... |
s280848568 | p03943 | C++ | /*
IftekharMd.Shishir
Dept. of Information and Communication Engineering
University of Rajshahi
30.05.20
*/
#include<bits/stdc++.h>
#include<iostream>
#include<stdio.h>
#include<vector>
#include<array>
#include<map>
#include<set>
#include<tuple>
#include... | a.cc: In function 'int main()':
a.cc:97:10: error: 'a' was not declared in this scope
97 | cin>>a>>b>>c;
| ^
a.cc:97:13: error: 'b' was not declared in this scope
97 | cin>>a>>b>>c;
| ^
a.cc:97:16: error: 'c' was not declared in this scope
97 | cin>>a>>b>>c;
|... |
s852990294 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a>=b&&a>=c){
if(a=(b+c)){
System.out.println("Yes");
}else{
... | Main.java:16: error: ';' expected
}elseif(b>=a&&b>=c){
^
Main.java:22: error: ';' expected
}elseif(c>=a&&c>=b){
^
2 errors
|
s185874377 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a>=b&&a>=c){
if(a=(b+c)){
System.out.println("Yes");
}else{
... | Main.java:16: error: ';' expected
}elseif(b>=a&&b>=c){
^
Main.java:22: error: ';' expected
}elseif(c>=a&&c>=b){
^
2 errors
|
s921150982 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a>=b&&a>=c){
if(a=(b+c)){
System.out.println("Yes");
}else{
... | Main.java:16: error: illegal start of expression
}elseif(b>=a&&b?=c){
^
Main.java:16: error: : expected
}elseif(b>=a&&b?=c){
^
Main.java:16: error: ';' expected
}elseif(b>=a&&b?=c){
^
Main.java:22: error: ';' expected
... |
s112615108 | p03943 | C++ | #include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstd... | a.cc: In function 'int main()':
a.cc:37:31: error: lvalue required as left operand of assignment
37 | if(N + K == X || N + X == K || K + X = N)cout << "YES" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s801448284 | p03943 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
int a,b,c;cin>>a>>b>>C;
if(a+b==c||a+c==b||b+c==a) cout << "Yes" << endl;
else cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:24: error: 'C' was not declared in this scope
7 | int a,b,c;cin>>a>>b>>C;
| ^
|
s708637869 | p03943 | C++ | #include <iostream>
using namespace std;
int main( void )
{
int a, b, c;
cin >> a >> b >> c;
if ( a == ( b + c ) || b == ( a + c ) || c = ( b + a ) )
{
cout << "Yes";
}
else
{
cout << "No";
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:43: error: lvalue required as left operand of assignment
8 | if ( a == ( b + c ) || b == ( a + c ) || c = ( b + a ) )
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
|
s845064720 | p03943 | Java | import java.util.*;
import javax.lang.model.util.ElementScanner6;
public class ABC047_A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int[] arr = { a, b, c };
Arrays.sort(arr);
if (arr[0] ... | Main.java:5: error: class ABC047_A is public, should be declared in a file named ABC047_A.java
public class ABC047_A {
^
1 error
|
s648365617 | p03943 | Java | import java.util.*;
import javax.lang.model.util.ElementScanner6;
public class ABC047_A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int[] arr = { a, b, c };
Arrays.sort(arr);
if (arr[0] ... | Main.java:5: error: class ABC047_A is public, should be declared in a file named ABC047_A.java
public class ABC047_A {
^
1 error
|
s179987357 | p03943 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] n=new int[3];
n[0]=sc.nextInt(),n[1]=sc.nextInt(),n[2]=sc.nextInt();
Arrays.sort(n);
if(n[0]+n[1]==n[2]){
System.out.println("Yes");
}else{
System.out.println("... | Main.java:7: error: ';' expected
n[0]=sc.nextInt(),n[1]=sc.nextInt(),n[2]=sc.nextInt();
^
Main.java:7: error: ';' expected
n[0]=sc.nextInt(),n[1]=sc.nextInt(),n[2]=sc.nextInt();
^
2 errors
|
s568719524 | p03943 | Java | import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
public static void main(final String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
... | Main.java:26: error: package Sytem does not exist
Sytem.out.println("No");
^
1 error
|
s834786654 | p03943 | C | #include<stdio.h>
{
int main()
{
int a,b,c;
if(a+b==c || a+c==b || b+c==a){
printf("Yes");
}
else{
printf("No");
}
}
return 0;
}
| main.c:2:1: error: expected identifier or '(' before '{' token
2 | {
| ^
|
s335963977 | p03943 | C | include<stdio.h>
int main()
{
int a,b,c;
if(a+b==c || a+c==b || b+c==a){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s375383231 | 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" << end;
} else {
cout << "No" << end;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:19: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout << "Yes" << end;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/istream:41,
from /usr/inclu... |
s704194098 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);1
if(a==b+c || b==a+c || c==b+a)
{
cout<<"Yes"<<endl;
}
else
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before 'if'
10 | scanf("%d %d %d",&a,&b,&c);1
| ^
| ;
11 | if(a==b+c || b==a+c || c==b+a)
| ~~
a.cc:15:9: error: 'else' without a previous 'i... |
s707525322 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);1
if(a==b+c || b==a+c || c==b+a)
{
cout<<"Yes"<<endl;
}
else
cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before 'if'
10 | scanf("%d %d %d",&a,&b,&c);1
| ^
| ;
11 | if(a==b+c || b==a+c || c==b+a)
| ~~
a.cc:15:9: error: 'else' without a previous 'i... |
s483603184 | p03943 | C++ | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, ... | a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before 'cout'
13 | #define no cout << "No" << endl
| ^~~~
a.cc:59:8: note: in expansion of macro 'no'
59 | no no;
| ^~
|
s615289138 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
... | a.cc: In function 'int main()':
a.cc:17:8: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<long long int>')
17 | cin>>A[0]>>A[1]>>A[2];
| ~~~^~~~~~
| | |
| | std::vector<long long int>
| std::... |
s478660368 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int d,b,c;
cin>>d>>b>>c;
int a[n+1];
a[0] = d;
a[1] = b;
a[2] = c;
sort(a,a+n);
if(a[2] == a[1]+a[0])
cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:8: error: 'n' was not declared in this scope
9 | int a[n+1];
| ^
a.cc:11:2: error: 'a' was not declared in this scope
11 | a[0] = d;
| ^
|
s783302150 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int ma=max(a,max(b,c));
int min=a+b+c-ma;
cout << (ma==min ? "Yes" : "No") << endl;
} | a.cc:1: warning: unpaired UTF-8 bidirectional control character detected [-Wbidi-chars=]
1 | <U+202A>#include<iostream><U+202C>
| ~~~~~~~~
| | |
| | end of bidirectional context
| U+202A (LEFT-TO-RIGHT EMBEDDING)
a.cc:1:1: error: stray '#' in program
1 | #include<iostream>... |
s379250237 | p03943 | C++ | #include<iostream>
int main(){
int a,b,c;
cin >> a >> b >> c;
int max=max(a,max(b,c));
int min=a+b+c-max;
cout << (max==min ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s393363553 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int ab = a + b;
int bc = b + c;
int ca = c + a;
if(a == bc || b == ca || c == ab) {
... | Main.java:19: error: reached end of file while parsing
}
^
1 error
|
s099055082 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a == b + c || b = c + a || c = a + b) {
System.out.println("YES");
} else {
System.out.pr... | Main.java:10: error: bad operand types for binary operator '||'
if(a == b + c || b = c + a || c = a + b) {
^
first type: boolean
second type: int
Main.java:10: error: bad operand types for binary operator '||'
if(a == b + c || b = c + a || c = a + b) {
^
f... |
s250248409 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a+b==c or a+c==b or c+b==a ){
cout<<"Yes"
}
else{
cout<<"No"
}
} | a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '}' token
8 | cout<<"Yes"
| ^
| ;
9 | }
| ~
a.cc:11:15: error: expected ';' before '}' token
11 | cout<<"No"
| ^
| ;
12 | ... |
s784755918 | p03943 | C++ | a, b, c =map(int, input().split())
print("Yes" if a+b == c or a == b+c or b == a+c else "No") | a.cc:1:1: error: 'a' does not name a type
1 | a, b, c =map(int, input().split())
| ^
|
s022730949 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int vector<int> v(3);
for (int x:v) {
cin >> v.at(x);
}
sort(v.begin(),v.begin());
if (v.at(1)+v.at(0) == v.at(2)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:19: error: invalid declarator before 'v'
7 | int vector<int> v(3);
| ^
a.cc:8:14: error: 'v' was not declared in this scope
8 | for (int x:v) {
| ^
a.cc:12:8: error: 'v' was not declared in this scope
12 | sort(v.begin(),... |
s651641496 | p03943 | C++ | #include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int maxn = max({a, b, c}), sum = a + b + c; if (sum == 2 * maxn) cout << "Yes" << endl; else cout << "No" << endl; return 0; } | a.cc:1:26: warning: extra tokens at end of #include directive
1 | #include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int maxn = max({a, b, c}), sum = a + b + c; if (sum == 2 * maxn) cout << "Yes" << endl; else cout << "No" << endl; ret... |
s288308604 | p03943 | C++ | //https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8 より
macro_rules! input {
(source = $s:expr, $($r:tt)*) => {
let mut iter = $s.split_whitespace();
input_inner!{iter, $($r)*}
};
($($r:tt)*) => {
let s = {
use std::io::Read;
let mut s = String::new();
... | a.cc:33:10: error: too many decimal points in number
33 | (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
| ^~~~~~~
a.cc:2:1: error: 'macro_rules' does not name a type
2 | macro_rules! input {
| ^~~~~~~~~~~
a.cc:19:1: error: 'macro_rules' does not name a type
19 | ma... |
s588910098 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a+b=c) ||(a=b+c) ||(b=a+c)){
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=b+c) ||(b=a+c)){
| ~^~
|
s083227704 | p03943 | C++ | a=list(map(int,input().split())).sort()
if a[0]+a[1]==a[2]:
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=list(map(int,input().split())).sort()
... |
s452646898 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main(){
cin>>a>>b>>c;
if(a + b + c = 2 * max(max(a,b),c)){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:18: error: lvalue required as left operand of assignment
8 | if(a + b + c = 2 * max(max(a,b),c)){
| ~~~~~~^~~
|
s868692697 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<endl;
return 0;
} | a.cc:8:59: warning: missing terminating " character
8 | cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<endl;
| ^
a.cc:8:59: error: missing terminating " character
8 | cout<<(a==b||b==c||c==a||a+b==c||b+c==a||c+a==b?"Yes":"No)<<... |
s936722879 | 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";
}else{
cout << "No;
}
} | a.cc:9:13: warning: missing terminating " character
9 | cout << "No;
| ^
a.cc:9:13: error: missing terminating " character
9 | cout << "No;
| ^~~~
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
10 | }
| ^
|
s631579094 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
vector<int> data = {a, b, c}
sort(data.begin(), data.end());
if (a + b == c) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'sort'
8 | sort(data.begin(), data.end());
| ^~~~
|
s314494538 | 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:6:23: error: lvalue required as left operand of assignment
6 | if(a==b+c || b==a+c || c=a+b)
| ~~~~~~~~~~~~~~~~~^~~~
|
s115804444 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a;
int b;
int 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:9:20: error: expected unqualified-id before '>' token
9 | cin >> a >> b .> c;
| ^
|
s858060440 | p03943 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a == b + c){
System.out.println("Yes");
}else if(b == a + c){
System.out.println("Yes");
}else ... | Main.java:21: error: class, interface, enum, or record expected
}
^
1 error
|
s511255845 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C,
if (A>B & A>C & A == B+C){
cout<<"Yes"<<endl;
}
else if (B>C & B>A & B == A+C){
cout<<"Yes"<<endl;
}
else if (C>B & C>A & C == A+B){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'if'
7 | if (A>B & A>C & A == B+C){
| ^~
a.cc:10:4: error: 'else' without a previous 'if'
10 | else if (B>C & B>A & B == A+C){
| ^~~~
|
s893678567 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
sort(a,a+3);
if(a+b==c)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
} | In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAcc... |
s056155817 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<< ((a+c==b || b+c==a ||)? "Yes":"No")<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:37: error: expected primary-expression before ')' token
7 | cout<< ((a+c==b || b+c==a ||)? "Yes":"No")<<endl;
| ^
|
s837486707 | p03943 | Java | import java.util.Scanner;
public class practice{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int a=scan.nextInt();
Scanner scan1 = new Scanner(System.in);
int b=scan1.nextInt();
Scanner scan2 = new Scanner(System.in);
int c=scan2.nex... | Main.java:2: error: class practice is public, should be declared in a file named practice.java
public class practice{
^
1 error
|
s779466852 | p03943 | C++ | a,b,c = [int(i) for i in input().split()]
if a == b or b == c or a == c:
print("Yes")
elif a == b+c or b == a+c or c == a+b:
print("Yes")
else:
print("No") | a.cc:1:1: error: 'a' does not name a type
1 | a,b,c = [int(i) for i in input().split()]
| ^
|
s511695324 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C;
cin >> A >> B >> C;
if(A==B+C || B==A+C || C==A+B)
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
} | a.cc:10:3: error: expected unqualified-id before 'else'
10 | else{
| ^~~~
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s048215078 | 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:12:2: error: expected '}' at end of input
12 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s905284986 | 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 (c+b == a) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
| a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
19 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s757975793 | p03943 | C | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d\n",&a,&b,&c)
if(a-b-c==0 || b-a-c==0 ||c-a-b==0)
printf("Yes");
else
printf("No");
} | main.c: In function 'main':
main.c:4:30: error: expected ';' before 'if'
4 | scanf("%d %d %d\n",&a,&b,&c)
| ^
| ;
5 | if(a-b-c==0 || b-a-c==0 ||c-a-b==0)
| ~~
main.c:7:3: error: 'else' without a previous 'i... |
s026934370 | p03943 | C | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector<int> a(3);
for(int i=0;i<3;++i){
cin >> a[i];
}
sort(a.begin(),a.end());
if(a[0]+a[1] != a[2])cout << "No" << endl;
else cout << "Yes" << endl;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s851073076 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e;
cin >> a >> b >> c;
d = max{(a,b,c)};
e = a+ b+c-d;
if(d == e){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:6: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
7 | d = max{(a,b,c)};
| ^~~
|
s138097266 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c;
d = max{(a,b,c)};
e = a+ b+c-d;
if(d == e){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:6: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
7 | d = max{(a,b,c)};
| ^~~
a.cc:8:2: error: 'e' was not declared in this scope
8 | e = a+ b+c-d;
| ^
|
s825720059 | p03943 | Java | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.next... | Main.java:16: error: cannot find symbol
System.out.pritnln("No");
^
symbol: method pritnln(String)
location: variable out of type PrintStream
1 error
|
s558953823 | p03943 | Java | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.next();
int b = sc.next();
int c = sc.next();
... | Main.java:10: error: incompatible types: String cannot be converted to int
int a = sc.next();
^
Main.java:11: error: incompatible types: String cannot be converted to int
int b = sc.next();
^
Main.java:12: error: incompatible types: String cannot be converte... |
s815665392 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
int sum = a + b + c;
if (sum - max((a,b),c) == max((a,b),c) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:41: error: expected ';' before 'cout'
7 | if (sum - max((a,b),c) == max((a,b),c) cout << "Yes" << endl;
| ^~~~~
| ;
a.cc:8:3: error: expected primary-expression before 'else'
8 | ... |
s865635848 | p03943 | C++ | #include<iostram>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==b+c or b==a+c or c==a+b)cout<<"Yes\n";else cout<<"No\n";} | a.cc:1:9: fatal error: iostram: No such file or directory
1 | #include<iostram>
| ^~~~~~~~~
compilation terminated.
|
s130455545 | p03943 | C | #include<stdio.h>
int main(void){
int a,b,c,sum;
scanf("%d%d%d",&a,&b,&c);
sum=a+b+c;
if(sum%2==0) ? printf("Yes"); : printf("No");
return 0;
}
| main.c: In function 'main':
main.c:6:16: error: expected expression before '?' token
6 | if(sum%2==0) ? printf("Yes"); : printf("No");
| ^
main.c:6:33: error: expected expression before ':' token
6 | if(sum%2==0) ? printf("Yes"); : printf("No");
| ^... |
s895749606 | p03943 | C | #include<stdio.h>
int main(void){
int a,b,c,sum;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
sum=a+b+c;
if(sum%2==0) ? printf("Yes"); : printf("No");
return 0;
}
| main.c: In function 'main':
main.c:8:16: error: expected expression before '?' token
8 | if(sum%2==0) ? printf("Yes"); : printf("No");
| ^
main.c:8:33: error: expected expression before ':' token
8 | if(sum%2==0) ? printf("Yes"); : printf("No");
| ^... |
s975183975 | 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";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(a+b =c || a+c =b || b+c==a)cout<<"Yes";
| ~~^~~~~~
|
s422866079 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a+b+c == 2*max(a,b,c)){
cout << "Yes";
}else{
cout << "No";
}
return 0;
} | In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/includ... |
s549190794 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(3);
cin >> a;
sort(a.begin(),a.end());
if(a.at(0)+a.at(1) == a.at(2)){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:9: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>')
6 | cin >> a;
| ~~~ ^~ ~
| | |
| | std::vector<int>
| std::istream {aka std::basic_istream<char>... |
s499653612 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(3);
getline(cin,a);
sort(a.begin(),a.end());
if(a.at(0)+a.at(1) == a.at(2)){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:12: error: no matching function for call to 'getline(std::istream&, std::vector<int>&)'
6 | getline(cin,a);
| ~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/inclu... |
s111888970 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int a[4];
int main()
{
for(int i=1;i<=3;i++)
scanf("%d",&a[i]);
sort(a+1,a+4);
if(a[1]+a[2]==a[3])
printf("Yes\n");
else printf("No\n);
return 0;
} | a.cc:11:21: warning: missing terminating " character
11 | else printf("No\n);
| ^
a.cc:11:21: error: missing terminating " character
11 | else printf("No\n);
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:4: error: expected primary-expression ... |
s833052758 | p03943 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c;
if(a>b)
{
d=a;
a=b;
b=d;
}
if(b>c)
{
d=b;
b=c;
c=d;
}
if(a>b)
{
d=a;
a=b;
b=d;
}
if(a+b=c) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:25:13: error: lvalue required as left operand of assignment
25 | if(a+b=c) cout<<"Yes"<<endl;
| ~^~
|
s892950490 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,b;
cin >> n >> a >> b;
if(n=a+b||a=b+n||b=a+n){
cout << "Yes";
}
else{
cout << "No";
}
}
| a.cc: In function 'int main()':
a.cc:6:18: error: lvalue required as left operand of assignment
6 | if(n=a+b||a=b+n||b=a+n){
| ~~~^~~
|
s705660606 | p03943 | C++ | #include<iostream>
using namespace std;
int a[2];
int main(){
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
if(a[0]+a[1]==a[2]) cout<<"Yes";
else cout<<"No";} | a.cc: In function 'int main()':
a.cc:6:9: error: 'sort' was not declared in this scope; did you mean 'short'?
6 | sort(a,a+3);
| ^~~~
| short
|
s424942248 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define F(i,a,b) for(i=a;a<=b;i++)
#define arr(a,n) for( i=0;i<n;i++)cin>>a[i];
#define fi first
#define se second
#define mp make_pair
#define mod 1000000007
#define YES cout<<"YES... | a.cc:44:9: error: macro "s" passed 2 arguments, but takes just 0
44 | s(a,a+n)
| ^
a.cc:24:9: note: macro "s" defined here
24 | #define s() sort(a,a+n);
| ^
a.cc: In function 'int main()':
a.cc:43:16: error: conflicting declaration 'long long int a [n]'
43 | cin>>n;ll int a[n];for... |
s825374663 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<string> vec(3)={a,b,c};
cin>>a>>b>>c;
sort(vec.begin(),vec.end());
reverse(vec.begin(),vec.begin());
if(vec.at(0)==vec.at(1)+vec.at(2)){
cout<<"YES"<<endl;
}
else {
cout<<"NO"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:22: error: expected ',' or ';' before '=' token
4 | vector<string> vec(3)={a,b,c};
| ^
a.cc:5:6: error: 'a' was not declared in this scope
5 | cin>>a>>b>>c;
| ^
a.cc:5:9: error: 'b' was not declared in this scope
5 | cin>>a>>b>>c;
... |
s156371806 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec={a,b,c};
cin>>a>>b>>c;
sort(vec.begin(),vec.end());
reverse(vec.begin(),vec.begin());
if(vec.at(0)==vec.at(1)+vec.at(2)){
cout<<"YES"<<endl;
}
else {
cout<<"NO"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:18: error: 'a' was not declared in this scope
4 | vector<int> vec={a,b,c};
| ^
a.cc:4:20: error: 'b' was not declared in this scope
4 | vector<int> vec={a,b,c};
| ^
a.cc:4:22: error: 'c' was not declared in this scope
4 |... |
s728150263 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec={a,b,c}
cin>>a>>b>>c;
sort(vec.begin(),vec.end());
reverse(vec.begin(),vec.begin());
if(vec.at(0)==vec.at(1)+vec.at(2)){
cout<<"YES"<<endl;
}
else {
cout<<"NO"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:18: error: 'a' was not declared in this scope
4 | vector<int> vec={a,b,c}
| ^
a.cc:4:20: error: 'b' was not declared in this scope
4 | vector<int> vec={a,b,c}
| ^
a.cc:4:22: error: 'c' was not declared in this scope
4 | v... |
s043383716 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c ;
string ans ="No";
if(a+b==c)
ans = "Yes;
if(a == b+c)
ans = "Yes
if(a+c== b)
ans = "Yes
cout << ans ;
}
| a.cc:9:10: warning: missing terminating " character
9 | ans = "Yes;
| ^
a.cc:9:10: error: missing terminating " character
9 | ans = "Yes;
| ^~~~~
a.cc:11:11: warning: missing terminating " character
11 | ans = "Yes
| ^
a.cc:11:11: error: missing termina... |
s720941452 | p03943 | Java | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int max = math.max(math.max(a, b), c);
if ((max == a+b || max == b+c || max == c+a)) {
System.out.prin... | Main.java:11: error: cannot find symbol
int max = math.max(math.max(a, b), c);
^
symbol: variable math
location: class Main
Main.java:11: error: cannot find symbol
int max = math.max(math.max(a, b), c);
^
symbol: variable math
location: class Main
2 errors
|
s699055021 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;
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:11:13: error: expected primary-expression before '||' token
11 | if(a+b==c)||(a+c==b)||(b+c==a)cout << "Yes" << endl;
| ^~
|
s875513191 | 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;}
cout<<No<<endl;
} | a.cc: In function 'int main()':
a.cc:9:43: error: 'Yes' was not declared in this scope
9 | if(a+b==c|| a+c==b||b+c==a){cout<<Yes<<endl;}
| ^~~
a.cc:11:15: error: 'No' was not declared in this scope
11 | cout<<No<<endl;
| ^~
|
s193557263 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
int c = Integer.parseInt(sc.next());
if(((a+b == c) || ((a+c == b) || ((b+c == a)) {
System.out.println("Yes");... | Main.java:9: error: ')' expected
if(((a+b == c) || ((a+c == b) || ((b+c == a)) {
^
1 error
|
s071080679 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
float a, b, c;
cin >> a >> b >> c >> endl;
if (fmod(a+b+c, 3) == 0){
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:28: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>')
6 | cin >> a >> b >> c >> endl;
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included ... |
s672214917 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c endl;
if (mod(a+b+c, 3) == 0){
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'endl'
6 | cin >> a >> b >> c endl;
| ^~~~~
| ;
a.cc:7:13: error: 'mod' was not declared in this scope; did you mean 'modf'?
7 | if (mod(a+b+c, 3) == 0){
| ... |
s225043968 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c endl
if (mod(a+b+c, 3) == 0){
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'endl'
6 | cin >> a >> b >> c endl
| ^~~~~
| ;
a.cc:10:17: error: 'else' without a previous 'if'
10 | else
| ^~~~
|
s743498173 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c endl
if (mod(a+b+c, 3) == 0;){
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'endl'
6 | cin >> a >> b >> c endl
| ^~~~~
| ;
a.cc:7:32: error: expected primary-expression before ')' token
7 | if (mod(a+b+c, 3) == 0;){
| ... |
s476246388 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
bool A = 0;
if(a+b==c||a+c==b||b+c==a)A=1;
if(A)
cout << Yes <<endl;
else{
cout << No <<endl;}
} | a.cc: In function 'int main()':
a.cc:10:11: error: 'Yes' was not declared in this scope
10 | cout << Yes <<endl;
| ^~~
a.cc:12:11: error: 'No' was not declared in this scope
12 | cout << No <<endl;}
| ^~
|
s522172913 | p03943 | C++ | include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
bool A = 0;
if(a+b==c||a+c==b||b+c==a)A=1;
if(A)
cout << Yes <<endl;
else{
cout << No <<endl;}
} | a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a >> b >> c;
| ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
10 | cout << Yes <<endl;
| ... |
s453584629 | p03943 | C++ | include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
bool A = 0;
if(a+b==c||a+c==b||b+c==a)A=1;
if(A)
cout << Yes <<endl;
else{
cout << No <<endl;}
} | a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> a >> b >> c;
| ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
10 | cout << Yes <<endl;
| ... |
s043547266 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
bool A = 0;
if(a+b==c||a+c==b||b+c==a)A=1
cout << A <<endl;
} | a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'cout'
8 | if(a+b==c||a+c==b||b+c==a)A=1
| ^
| ;
9 |
10 | cout << A <<endl;
| ~~~~
|
s735103937 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
bool A = 0;
if(a+b===c||a+c==b||b+c==a)A=1
cout << A <<endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '=' token
8 | if(a+b===c||a+c==b||b+c==a)A=1
| ^
a.cc:8:33: error: expected ';' before 'cout'
8 | if(a+b===c||a+c==b||b+c==a)A=1
| ^
| ... |
s653426494 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,d;
cin>>a>>b>>c;
if(a+b==c||a+c==b||b+c==c)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
| a.cc:8:3: error: extended character is not valid in an identifier
8 | cout<<"Yes"<<endl;
| ^
a.cc: In function 'int main()':
a.cc:8:3: error: '\U00003000cout' was not declared in this scope
8 | cout<<"Yes"<<endl;
| ^~~~~~
|
s121678131 | p03943 | C | #include<stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a + b == c||a = b + c) printf("YES");
else printf("No");
return 0;
} | main.c: In function 'main':
main.c:5:20: error: lvalue required as left operand of assignment
5 | if(a + b == c||a = b + c) printf("YES");
| ^
|
s839383388 | p03943 | C++ | #include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a + b == c || a + c == b || b + c == a) { puts("Yes") }
else puts("No");
} | a.cc: In function 'int main()':
a.cc:6:66: error: expected ';' before '}' token
6 | if (a + b == c || a + c == b || b + c == a) { puts("Yes") }
| ^~
| ;
|
s284755192 | p03943 | C++ |
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a+b=c||c+b=a||a+c=b)
cout<<"Yes";
else
cout<<"No";
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:20: error: lvalue required as left operand of assignment
10 | if(a+b=c||c+b=a||a+c=b)
| ~^~~~~
|
s824357050 | 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 || a=b+c) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:23: error: lvalue required as left operand of assignment
6 | if(a+b==c || a+c==b || a=b+c) cout << "Yes" << endl;
| ~~~~~~~~~~~~~~~~~^~~~
|
s577251373 | p03943 | C++ | //shara's here
#include<bits/stdc++.h>
int main(){
int x,y,z;
if(x+y==z||x+z==y||y+z==x)cout<<"Yes";
else cout<<"No";
return 0;
} | a.cc: In function 'int main()':
a.cc:5:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | if(x+y==z||x+z==y||y+z==x)cout<<"Yes";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu... |
s229404203 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f;
cin >> a >> b >> c;
d = (max(a,b),c);
e = a+ b+c-d
if(d == e){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:7:10: warning: ignoring return value of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
7 | d = (max(a,b),c);
| ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
... |
s739346250 | p03943 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if (2*max({a,b,c})==a+b+c) {
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
9 | if (2*max({a,b,c})==a+b+c) {
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
... |
s304247339 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
cout << (((max({A, B, C}))==(A+B+C-max({A, B, C})))?"Yes":"No")) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:66: error: expected ';' before ')' token
7 | cout << (((max({A, B, C}))==(A+B+C-max({A, B, C})))?"Yes":"No")) << endl;
| ^
| ;
|
s363570042 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
cout << ((max({A, B, C}))==(A+B+C-max({A, B, C})?"Yes":"No")) << endl;
}
| a.cc: In function 'int main()':
a.cc:7:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | cout << ((max({A, B, C}))==(A+B+C-max({A, B, C})?"Yes":"No")) << endl;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
s584264275 | p03943 | C++ | #include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(in... | a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
2 | #include<boost/multi_array.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s081876911 | p03943 | C++ | #include"bits/stdc++.h"#include<boost/multi_array.hpp>#include<boost/optional.hpp>#include<boost/range/irange.hpp>#include<boost/range/algorithm.hpp>#include<boost/range/adaptors.hpp>using namespace std;namespace adaptor = boost::adaptors;#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)#define rep3(i,m,n) for(int (i)=m;(i... | a.cc:1:24: warning: extra tokens at end of #include directive
1 | #include"bits/stdc++.h"#include<boost/multi_array.hpp>#include<boost/optional.hpp>#include<boost/range/irange.hpp>#include<boost/range/algorithm.hpp>#include<boost/range/adaptors.hpp>using namespace std;namespace adaptor = boost::adaptors;#define rep... |
s140033251 | p03943 | C++ | #include <iostream>
using namespace std;
int main(void){
int a,b,c;
cin>>a>>b>>c;
if(a+c=b||a+b=c||b+c=a) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:20: error: lvalue required as left operand of assignment
6 | if(a+c=b||a+b=c||b+c=a) cout<<"YES"<<endl;
| ~^~~~~
|
s385805506 | p03943 | C++ | #include <iostream>
using namespace std;
int main(void){
int a,b,c;
cin<<a<<b<<c;
if((a+b+c)%2==0)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
| a.cc: In function 'int main()':
a.cc:5:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
5 | cin<<a<<b<<c;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:5:8: note: candidate:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.