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 #defi...
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: erro...
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> #inc...
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 ...
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.ou...
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.prin...
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....
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.ou...
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"); ...
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 ...
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 l...
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...
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 d...
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]...
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 d...
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 ';' be...
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: reque...
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.c...
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+...
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.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(...
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 i...
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 iden...
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 '<i...
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/includ...
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 ...
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("%...
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("%...
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){pri...
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 =...
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::basi...
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.c...
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"<<...
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; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^...
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...
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[]...
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 ...
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...
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) { | ~ ^~ | ...
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<' (opera...
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::b...
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+...
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 erro...
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=...
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 ty...
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 s...
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 s...
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...
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 << "...
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; ...
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 fr...
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 =...
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...
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{ ...
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....
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]) | ...
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){ | ^~...
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, ...
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); ...
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+...
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, ...
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: e...
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 contex...
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"; ...
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, _...
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() { | ^