submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s724049638
p03943
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++) #define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define __GET_MACRO3(_1, _2, _...
a.cc: In function 'int main()': a.cc:20:22: error: lvalue required as left operand of assignment 20 | if(a+b=c || b+c=a || c+a=b) { cout << "Yes" << endl;} | ~~^~~~~~ a.cc:22:2: error: expected '}' at end of input 22 | } | ^ a.cc:17:12: note: to match this '{' 17 | int main()...
s476333133
p03943
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++) #define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define __GET_MACRO3(_1, _2, _...
a.cc: In function 'int main()': a.cc:20:22: error: lvalue required as left operand of assignment 20 | if(a+b=c || b+c=a || c+a=b) cout << "Yes" << endl; | ~~^~~~~~
s381148304
p03943
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++) #define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define __GET_MACRO3(_1, _2, _...
a.cc: In function 'int main()': a.cc:21:24: error: 'yes' was not declared in this scope 21 | if((D%2)==0) cout << yes << endl; | ^~~ a.cc:22:24: error: 'no' was not declared in this scope 22 | if((D%2)==1) cout << no << endl; | ^~
s217790145
p03943
C++
#include <stdc++.h> using namespace std; int main() { int W,H,N; cin >> W>>H>>N; vector<vector<int>> data(N, vector<int>(3)); // 入力 (2重ループを用いる) for (int i = 0; i < N; i++) { for (int j = 0; j < 3; j++) { cin >> data.at(i).at(j); } } int lx=0,hx=W,ly=0,hy=H; for(int i...
a.cc:1:10: fatal error: stdc++.h: No such file or directory 1 | #include <stdc++.h> | ^~~~~~~~~~ compilation terminated.
s665346527
p03943
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<n;i++) long long inf=(long long)1E17; #define i_7 (long long)(1E9+7) long mod(long a){ long long c=a%i_7; if(c>=0)return c; return c+i_7; } using namespace std; bool prime(int n){ if(n==1){ return false; }else if(n==2){ return true; }else...
a.cc: In function 'int main()': a.cc:92:16: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 92 | cout<<"Yes"<endl; | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-...
s566236959
p03943
C++
#include <cstdio> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if((a+b+c)%2=0){ printf("Yes"); } else{ printf("No"); } }
a.cc: In function 'int main()': a.cc:6:19: error: lvalue required as left operand of assignment 6 | if((a+b+c)%2=0){ | ~~~~~~~^~
s369982905
p03943
C++
#include<bits/stdc++.h> using namespace std; int main(void){ int a,b,c; bool flag=fasle; cin>>a>>b>>c; if(a+b==c||b+c==a||a+c==b) flag=true; cout<<((flag)?"Yes":"No")<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: 'fasle' was not declared in this scope 6 | bool flag=fasle; | ^~~~~
s115679463
p03943
C++
#include<bits/stdc++.h> using namespace std; int main(void){ int a,b,c; cin>>a>>b>>c; cout<<((a+b+c%2==0)?"Yes":"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:35: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout<<((a+b+c%2==0)?"Yes":"No"<<endl; | ~~~~^~~~~~ a.cc:7:41: error: expected ')' before ';' token 7 | c...
s587887177
p03943
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; bool f = 0; if(a == b + c || b = a + c || c = a + b) f = 1; if(f) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:30: error: lvalue required as left operand of assignment 7 | if(a == b + c || b = a + c || c = a + b) f = 1; | ~~~~~~^~~~
s613593494
p03943
C++
#include <bits/stdc++;> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==b+c||b==c+a||c==a+b){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc:1:10: fatal error: bits/stdc++;: No such file or directory 1 | #include <bits/stdc++;> | ^~~~~~~~~~~~~~ compilation terminated.
s374821765
p03943
C++
#include<iostream> #include<algorihtm> using namespace std; int main(){ int a,b,c,mx; cin>>a>>b>>c; mx=max(a,max(b,c)); if(mx*2==a+b+c) cout<<"Yes"<<endl; else cout<<"No"<<endl; }
a.cc:2:9: fatal error: algorihtm: No such file or directory 2 | #include<algorihtm> | ^~~~~~~~~~~ compilation terminated.
s509219309
p03943
C++
#include<bits/stdc++.h> using namespace std; int main(){ vector<int>ame(3); for (int i = 0; i < 3; ++i) { cin >> ame.at(i); } sort(ame.begin() ,ame.end()) if(ame.at(0) + ame.at(1) == ame.at(2)){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:10:37: error: expected ';' before 'if' 10 | sort(ame.begin() ,ame.end()) | ^ | ; 11 | if(ame.at(0) + ame.at(1) == ame.at(2)){ | ~~ a.cc:...
s723146465
p03943
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scaner sc = new Scaner(System in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if(A == B + C){ System.out.println("Yes"); } else if(B == A + C){ System....
Main.java:4: error: ')' or ',' expected Scaner sc = new Scaner(System in); ^ Main.java:4: error: not a statement Scaner sc = new Scaner(System in); ^ Main.java:4: error: ';' expected Scaner sc = new Scaner(System in); ...
s594617836
p03943
C++
#include<iostream> #include<cstdio> #include<vector> #include<queue> #include<map> #include<unordered_map> #include<stack> #include<string> #include<algorithm> #include<functional> #include<cstring> #include<utility> #include<bits/stdc++.h> #include<math.h> using namespace std; /**** Type Define ****/ typedef long lo...
a.cc: In function 'int main()': a.cc:182:15: error: no matching function for call to 'max(ll&, bool)' 182 | if(max(a,max(b,c)==a+b+c-max(a,max(b,c))){ | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/l...
s981418162
p03943
C++
#include <iostream> #include <algorithm> int main(){ int a, b, c; cin >> a >> b >> c; int sum = min(a, b); sum += min(max(a, b), c); cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> a >> b >> c; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Lin...
s602631004
p03943
C++
int main(){ int a, b, c; cin >> a >> b >> c; int sum = min(a, b); sum += min(max(a, b), c); cout << ((max(max(a, b), c) == sum) ? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:3:3: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:4:13: error: 'min' was not declared in this scope; did you mean 'main'? 4 | int sum = min(a, b); | ^~~ | main a.cc:5:14: error: 'max' was not d...
s882751584
p03943
C++
#include <iostream> #include <algorithm> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; int sum = min(a, b); sum += min(max(a, b), c); cout << (max(max(a, b), c) == sum) ? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:52: error: expected ';' before ')' token 11 | cout << (max(max(a, b), c) == sum) ? "YES" : "NO") << endl; | ^ | ;
s859653371
p03943
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int max=max(a,b); max=max(max,c); if((a+b+c)%max==0)cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:20: error: 'max' cannot be used as a function 8 | int max=max(a,b); | ~~~^~~~~ a.cc:9:16: error: 'max' cannot be used as a function 9 | max=max(max,c); | ~~~^~~~~~~
s508891930
p03943
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int max=max(a,b); max=max(max,c); if((a+b+c)%max==0)cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:20: error: 'max' cannot be used as a function 7 | int max=max(a,b); | ~~~^~~~~ a.cc:8:16: error: 'max' cannot be used as a function 8 | max=max(max,c); | ~~~^~~~~~~
s643239819
p03943
C++
#include <bits/stdc++.h> using namespace std; using llong = long long; using P = pair<llong, llong>; #define BE(x) x.begin(), x.end() const llong inf = llong(1e18)+7; const llong mod = 1e9+7; int main(){ vector<int> v(3); cin >> v[0] >>v[1] >> v[2]; sort(BE(v)); cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << ...
a.cc: In function 'int main()': a.cc:17:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}) 17 | cout << (v[0] + v[1]) == v[2] ? "Yes" : "No" << endl; a.cc:17:31: note: candidate: 'operator==(int...
s498268428
p03943
C
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==b+c||b==a+c||c==a+b||){printf("Yes");} else{printf("No");} return 0; }
main.c: In function 'main': main.c:5:28: error: expected expression before ')' token 5 | if(a==b+c||b==a+c||c==a+b||){printf("Yes");} | ^
s284854494
p03943
C++
#include <iosteam> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; cout << (a+b==c || b+c==a || c+a-b? "YES" : "NO") << endl; }
a.cc:1:10: fatal error: iosteam: No such file or directory 1 | #include <iosteam> | ^~~~~~~~~ compilation terminated.
s257675199
p03943
C++
#include <bits/stdc++.h> using namespace std; int main () { int = a, b, c; cin >> a >> b >> c; if ( a+b == c || a+c == b || b+c == a ) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:5:7: error: expected unqualified-id before '=' token 5 | int = a, b, c; | ^ a.cc:6:10: error: 'a' was not declared in this scope 6 | cin >> a >> b >> c; | ^ a.cc:6:15: error: 'b' was not declared in this scope 6 | cin >> a >> b >> c; ...
s998200296
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(max(a,max(b,c))*2 =a+b+c){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:7:21: error: lvalue required as left operand of assignment 7 | if(max(a,max(b,c))*2 =a+b+c){ | ~~~~~~~~~~~~~~~^~
s337144387
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; int max; cin >> a >> b >> c; if(max(a,max(b,c))*2 =a+b+c){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:15: error: 'max' cannot be used as a function 8 | if(max(a,max(b,c))*2 =a+b+c){ | ~~~^~~~~ a.cc:8:20: error: 'max' cannot be used as a function 8 | if(max(a,max(b,c))*2 =a+b+c){ | ^
s804441867
p03943
C
#include<stdio.h> #include<math.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a == b + c || b == c + a || c = a + b){ printf("Yes"); }else{ printf("No"); } return 0; }
main.c: In function 'main': main.c:6:36: error: lvalue required as left operand of assignment 6 | if(a == b + c || b == c + a || c = a + b){ | ^
s078554751
p03943
C++
#include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <algorithm> #include <bitset> #inc...
a.cc: In function 'int main()': a.cc:62:13: error: lvalue required as left operand of assignment 62 | if(a+b=c){ | ~^~ a.cc:64:19: error: lvalue required as left operand of assignment 64 | }else if(a+c=b){ | ~^~ a.cc:66:19: error: lvalue required as left ope...
s940859081
p03943
C++
// https://atcoder.jp/contests/abc047/tasks/abc047_a #include <iostream> #include <algorithm> using namespace std; int main() { /* Magic word */ cin.tie(0); ios::sync_with_stdio(false); /* ---------- */ int a, b, c; cin >> a >> b >> c; int maximum = max(a, b, c); string result = maximum == a + b + ...
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...
s260376010
p03943
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <iomanip> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a + b + c - max(a, b, c) * 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/includ...
s799929309
p03943
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <iomanip> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a + b + c - max(a, b, c) * 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/includ...
s377043440
p03943
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <iomanip> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a + b + c - max(a, b, c) * 2 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/includ...
s309497045
p03943
C++
a, b, c = [ int(x) for x in input().split() ] m = max(max(a, b), c) s = a + b + c ans = m * 2 == s print("Yes" if ans else "No") print()
a.cc:1:1: error: 'a' does not name a type 1 | a, b, c = [ int(x) for x in input().split() ] | ^
s123509760
p03943
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a==b+c || b==a+c || c=a+b) cout<<"Yes"; else cout<<"No"; }
a.cc: In function 'int main()': a.cc:7:23: error: lvalue required as left operand of assignment 7 | if(a==b+c || b==a+c || c=a+b) | ~~~~~~~~~~~~~~~~~^~~~
s115224732
p03943
C++
#include <iostream> #include <vector> int main(){ int totalPack = 3; std::vector<int> pack(totalPack); for (int i=0; i<totalPack; i++) { std::cin >> pack[i]; } std::sort(pack.begin(), pack.end()); int maxPackNumber = pack[2]; if (maxPackNumber == (pack[0] + pack[1])) { st...
a.cc: In function 'int main()': a.cc:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 13 | std::sort(pack.begin(), pack.end()); | ^~~~ | qsort
s917752384
p03943
C++
#include <iostream> #include <vector> int main(){ int totalPack = 3; std::vector<int> pack(totalPack); for (int i=0; i<totalPack; i++) { std::cin >> pack[i]; } sort(pack.begin(), pack.end()); int maxPackNumber = pack[2]; if (maxPackNumber == (pack[0] + pack[1])) { std::co...
a.cc: In function 'int main()': a.cc:13:5: error: 'sort' was not declared in this scope; did you mean 'short'? 13 | sort(pack.begin(), pack.end()); | ^~~~ | short
s223537401
p03943
C++
#include <iostream> #include <vector> int main(){ int totalPack = 3; std::vector<int> pack(totalPack); for (int i=0; i<totalPack; i++) { std::cin >> pack[i]; } std::sort(pack.begin(), pack.end()); int maxPackNumber = pack[2]; if (maxPackNumber == (pack[0] + pack[1])) { st...
a.cc: In function 'int main()': a.cc:13:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'? 13 | std::sort(pack.begin(), pack.end()); | ^~~~ | qsort
s921452352
p03943
C++
#include<iostream> #include<algorithm> using namespace std; int main(void) { vector<int> a[3]; int Nmax = 0; cin >> a[0]>> a[1] >> a[2]; sort(a.begin().a.end()); if(a[2] == a[1] + a[0]){cout << "YES";} else{cout << "NO";} return 0; }
a.cc: In function 'int main()': a.cc:7:3: error: 'vector' was not declared in this scope 7 | vector<int> a[3]; | ^~~~~~ a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 2 | #include<algorithm> +++ |+#include <vector> 3 | using ...
s186568816
p03943
C++
#include<iostream> #include<algorithm> using namespace std; int main(void) { int a[3],Nmax = 0; cin >> a[0]>> a[1] >> a[2]; sort(a.begin().a.end()); if(a[2] == a[1] + a[0]){cout << "YES";} else{cout << "NO";} return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]' 9 | sort(a.begin().a.end()); | ^~~~~
s351526333
p03943
C++
#include <iostream> using namespace std; int main() { int a, b, c,; cin >> a >> b >> c; int total = a + b + c; if (total % 2 == 0 && (a == total / 2 || b == total / 2 || c == total / 2)) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:5:15: error: expected unqualified-id before ';' token 5 | int a, b, c,; | ^
s657664168
p03943
Java
public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int w = scan.nextInt(); int h = scan.nextInt(); int n = scan.nextInt(); int[] xn = new int[n]; int[] yn = new int[n]; int[] an = new int[n]; for (int i = 0; i < n; i...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s352721699
p03943
C++
#include<iostream> using namespace std; int main () { int a,b,c; cin>>a>>b>>c; if(a+b == c||b+c ==a || c+a == b){ cout << "Yes" }else { cout << "No" } cout <<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:18: error: expected ';' before '}' token 7 | cout << "Yes" | ^ | ; 8 | }else { | ~ a.cc:9:17: error: expected ';' before '}' token 9 | cout << "No" | ^ | ...
s122940111
p03943
C++
#include <iostream> #include <algorithm> int main() { int W, H, N; std::cin >> W >> H >> N; int x[N], y[N], a[N]; int region[4]; region[0] = 0; region[1] = W; region[2] = 0; region[3] = H; for ( int i = 0; i < N; i++ ) { std::cin >> x >> y >> a; if (a==1) region[0] = std::max(region[0], x); ...
a.cc: In function 'int main()': a.cc:15:14: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [N]') 15 | std::cin >> x >> y >> a; | ~~~~~~~~ ^~ ~ | | | | | int [N] | std::istream {aka std::...
s076307607
p03943
C++
#include <cstdio> int main(){ int a,b,c; scanf("%d%d%d"&a,&b,&c); if(a+b==c||a+c==b||b+c==a)printf("Yes\n"); else printf("No\n"); }
a.cc: In function 'int main()': a.cc:4:23: error: invalid operands of types 'const char [7]' and 'int' to binary 'operator&' 4 | scanf("%d%d%d"&a,&b,&c); | ~~~~~~~~^~ | | | | | int | const char [7]
s126324491
p03943
C++
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main(){ vector<int> aa(3); for(auto &x:aa){ cin>>x; } sort(aa.begin().aa.end()); if(aa[0]+aa[1]==aa[2]){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:16:19: error: 'std::vector<int>::iterator' has no member named 'aa' 16 | sort(aa.begin().aa.end()); | ^~
s950945205
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { int a; int b; int c; cin>>a>>b>>c; if ((a+b+c)%==0) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
a.cc: In function 'int main(int, const char**)': a.cc:13:18: error: expected primary-expression before '=' token 13 | if ((a+b+c)%==0) { | ^
s385749138
p03943
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> #include <map> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> plglg; typedef pair<double, ll> pdlg; typedef tuple<int, int, int> tiii; typedef tuple<ll, ll, ll> tlglglg; typedef tup...
a.cc: In function 'int main()': a.cc:24:40: error: expected primary-expression before ')' token 24 | sort(a.begin(), a.end(), greater<int>); | ^
s916397820
p03943
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> #include <map> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> plglg; typedef pair<double, ll> pdlg; typedef tuple<int, int, int> tiii; typedef tuple<ll, ll, ll> tlglglg; typedef tup...
a.cc: In function 'int main()': a.cc:22:7: error: request for member 'push_back' in 'a', which is of non-class type 'std::vector<int> [3]' 22 | a.push_back(temp); | ^~~~~~~~~ a.cc:24:10: error: request for member 'begin' in 'a', which is of non-class type 'std::vector<int> [3]' 24 | sort(a.begin...
s586009736
p03943
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> #include <map> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> plglg; typedef pair<double, ll> pdlg; typedef tuple<int, int, int> tiii; typedef tuple<ll, ll, ll> tlglglg; typedef tup...
a.cc: In function 'int main()': a.cc:22:12: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int') 22 | a[i] = temp; | ^~~~ In file included from /usr/include/c++/14/vector:72, from a.cc:3: /usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'st...
s847123811
p03943
C++
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> #include <map> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> plglg; typedef pair<double, ll> pdlg; typedef tuple<int, int, int> tiii; typedef tuple<ll, ll, ll> tlglglg; typedef tup...
a.cc: In function 'int main()': a.cc:19:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int>') 19 | cin >> a[0] >> a[1] >> a[2]; | ~~~ ^~ ~~~~ | | | | | std::vector<int> | std::istream {aka std::...
s283013043
p03943
C
#include<stdio.h> int main(void) { int W,H,N,x,y,a; int ansx = 0,ansy = 0; scanf("%d%d%d",&W,&H,&N); for(int i = 0;i < N;i++) { scanf("%d%d%d",&x,&y,&a); switch(a) { case 1: if(ansx < x){ansx = x;} break; case 2: if(x < W){W = x;} break; case 3...
main.c: In function 'main': main.c:29:6: error: 'w' undeclared (first use in this function) 29 | if(w <= x || h <= y){printf("0");} | ^ main.c:29:6: note: each undeclared identifier is reported only once for each function it appears in main.c:29:16: error: 'h' undeclared (first use in this function) ...
s210491594
p03943
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; maxabc = max(max(a,b),c); if (a+b+c-maxabc==maxabc) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'maxabc' was not declared in this scope; did you mean 'imaxabs'? 7 | maxabc = max(max(a,b),c); | ^~~~~~ | imaxabs
s577103050
p03943
C++
#include<bits/stdc++> using namespace std; int main(){ int a,b,c; cin>> a >> b >>c; if((a+b==c)||(a+c==b)||(b+c==a))cout <<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s364965155
p03943
C++
#include <iostream> using namespace std; int a,b,c; int main(){ cin >> a >> b >> c; cout << ((a+b=c || b+c==a || c+a==b)? "Yes":"No") << endl; }
a.cc: In function 'int main()': a.cc:6:14: error: lvalue required as left operand of assignment 6 | cout << ((a+b=c || b+c==a || c+a==b)? "Yes":"No") << endl; | ~^~
s189733036
p03943
C++
A=list(map(int,input().split())) if( sum(A) == 2*max(A) ) print("Yes") else print( "No" )
a.cc:1:1: error: 'A' does not name a type 1 | A=list(map(int,input().split())) | ^
s499584432
p03943
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<(a+b+c)%2==0?"Yes":"No"; return 0; }
a.cc: In function 'int main()': a.cc:7:18: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 7 | cout<<(a+b+c)%2==0?"Yes":"No"; | ~~~~~~~~~~~~~~~^~~ | | | | | int | std::basic_ostream<char> a.cc:7:18: note: c...
s920897439
p03943
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(max({a,b,c}) == a+b+c-max({a,b,c})){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:11: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 7 | if(max({a,b,c}) == a+b+c-max({a,b,c})){ | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h...
s323471570
p03943
C++
#include <iostream> using namespace std; int main(){ int a, b, c, same=0; cin >> a >> b >> c; if (a + b = c) same = 1; if (b + c = a) same = 1; if (a + c = b) same = 1; if (same = 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: lvalue required as left operand of assignment 7 | if (a + b = c) same = 1; | ~~^~~ a.cc:8:9: error: lvalue required as left operand of assignment 8 | if (b + c = a) same = 1; | ~~^~~ a.cc:9:9: error: lvalue required as left operand of ...
s513738513
p03943
C++
#include <iostream> #include <algorithm> using namespace std; int main() { int a[3]; for (int i = 0; i < 3; ++i) cin >> a[i]; sort(a[3].begin(), a[3].end()); if (a[0]+a[1] == a[2]) { cout << "YES"; } else { cout << "NO"; } return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: request for member 'begin' in 'a[3]', which is of non-class type 'int' 8 | sort(a[3].begin(), a[3].end()); | ^~~~~ a.cc:8:27: error: request for member 'end' in 'a[3]', which is of non-class type 'int' 8 | sort(a[3].begin(), a[3].end()); ...
s528877029
p03943
C++
#include <iostream> #include <algorithm> using namespace std; int main() { int a[3]; for (int i = 0; i < 3; ++i) cin >> a[i]; sort(a.begin(), a.end()); if (a[0]+a[1] == a[2]) { cout << "YES"; } else { cout << "NO"; } return 0; }
a.cc: In function 'int main()': a.cc:8:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]' 8 | sort(a.begin(), a.end()); | ^~~~~ a.cc:8:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]' 8 | sort(a.begin(), a.end()); | ...
s988953951
p03943
C++
#include <bits/stdc++.h> #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) typedef long long ll; using namespace std; const int MOD = 1000000007; const int INF = 1010000000; const double EPS = 1e-10; int h,w,x; char s[1000][1000]; bool visited [1000][1000]; pair<int,int> start,goal; queue<pair...
a.cc: In function 'int main()': a.cc:19:38: error: no matching function for call to 'sort(int [3], int)' 19 | int a[3];cin>>a[0]>>a[1]>>a[2];sort(a,3); | ~~~~^~~~~ In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/...
s876440679
p03943
C++
#include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp using namespace std; typedef pair<int, int> P; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); i++) #define repto(i, n) for(int i = 0; i <= (n); i++) #define all(c) (c).begin(), (c).end() #define uniq(c) c.erase(unique(all(c)), (c).end()) // ユニーク...
a.cc:12:1: error: extended character 。 is not valid in an identifier 12 | る。連続した値を除去して切り出す。 | ^ a.cc:12:1: error: extended character 。 is not valid in an identifier a.cc:12:1: error: '\U0000308b\U00003002\U00009023\U00007d9a\U00003057\U0000305f\U00005024\U00003092\U00009664\U000053bb\U00003057\U00003066\U00005...
s747579393
p03943
C++
#include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp int main() { int a, b, c; cin >> a >> b >> c; if (a + c == b || a + b == c || b + c == a ) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >> b >> c; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18...
s346263635
p03943
C++
#include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp using namespace std; typedef pair<int, int> P; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); i++) #define repto(i, n) for(int i = 0; i <= (n); i++) #define all(c) (c).begin(), (c).end() #define uniq(c) c.erase(unique(all(c)), (c).end()) // ユニーク...
a.cc:12:1: error: extended character 。 is not valid in an identifier 12 | る。連続した値を除去して切り出す。 | ^ a.cc:12:1: error: extended character 。 is not valid in an identifier a.cc:12:1: error: '\U0000308b\U00003002\U00009023\U00007d9a\U00003057\U0000305f\U00005024\U00003092\U00009664\U000053bb\U00003057\U00003066\U00005...
s998393356
p03943
C++
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b==c||a+c==b||b+c==a){ cout<<"Yes"<<endl; }else cout<<"No"<<endl; }
a.cc: In function 'int main()': a.cc:7:13: error: 'c\U0000ff5c\U0000ff5ca' was not declared in this scope 7 | if(a+b==c||a+c==b||b+c==a){ | ^~~~~~ a.cc:7:23: error: 'b\U0000ff5c\U0000ff5cb' was not declared in this scope 7 | if(a+b==c||a+c==b||b+c==a){ | ^~~...
s167197791
p03943
C
#include<stdio.h> #define MAX 100 int main(){ float x1=0,x2=0,x3,x4,y1=0,y2,y3=0,y4,i=0,t,L[MAX]; for(int i=0;i<3;i++){ scanf("%f",&L[i]); } x3=x4=L[0]; y2=y4=L[1]; t=L[2]; for(i=0;i<t;i++){ for(int j=0;j<3;j++){ scanf("%f",&L[j]); } switch(L[2]){ case 1: if(x1<L[0]){ ...
main.c: In function 'main': main.c:16:12: error: switch quantity not an integer 16 | switch(L[2]){ | ^
s640746692
p03943
C
#include<stdio.h> #define MAX 3 int main() { int a[MAX],i,SUM=0; for(i=0;i<MAX;i++){ scanf("%d",&a[i]); if(a[i]<=0||a[i]>100){ printf("No"); } SUM+=a[i]; } if(SUM%2==1){ printf("No"); } SUM=SUM/2 if(SUM==a[0]||SUM==a[1]||SUM==a[2]){ printf("Yes");...
main.c: In function 'main': main.c:16:14: error: expected ';' before 'if' 16 | SUM=SUM/2 | ^ | ; 17 | if(SUM==a[0]||SUM==a[1]||SUM==a[2]){ | ~~
s317749637
p03943
C
#include<stdio.h> #define MAX 3 int main() { float a[MAX],i,SUM; for(i=0;i<MAX;i++){ if(scanf("%f",&a[i]) == 1) if(a[i]<=0||a[i]>100){ printf("No"); } SUM+=a[i]; } SUM=(SUM/2); if(SUM==a[0]||SUM==a[1]||SUM==a[2]){ printf("Yes"); }else{ printf("No"); ...
main.c: In function 'main': main.c:7:23: error: array subscript is not an integer 7 | if(scanf("%f",&a[i]) == 1) | ^ main.c:8:11: error: array subscript is not an integer 8 | if(a[i]<=0||a[i]>100){ | ^ main.c:8:20: error: array subscript is not an integer ...
s199007810
p03943
C
#include<stdio.h> #define MAX 3 int main() { float a[MAX],i,SUM; for(i=0;i<MAX;i++){ if(scanf("%d",&a[i]) == 1) if(a[i]<=0||a[i]>100){ printf("No"); } SUM+=a[i]; } SUM=(SUM/2); if(SUM==a[0]||SUM==a[1]||SUM==a[2]){ printf("Yes"); }else{ printf("No"); ...
main.c: In function 'main': main.c:7:23: error: array subscript is not an integer 7 | if(scanf("%d",&a[i]) == 1) | ^ main.c:8:11: error: array subscript is not an integer 8 | if(a[i]<=0||a[i]>100){ | ^ main.c:8:20: error: array subscript is not an integer ...
s912767310
p03943
C++
int main(){ int a, b, c; cin >> a >> b >> c; bool flag = true; if(a+b == c) flag = true; else if(a+c == b) flag = true; else if(b+c == a) flag = true; else flag = false; if(flag) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope 4 | cin >> a >> b >> c; | ^~~ a.cc:13:14: error: 'cout' was not declared in this scope 13 | if(flag) cout << "Yes" << endl; | ^~~~ a.cc:13:31: error: 'endl' was not declared in this scope ...
s578308536
p03943
C
#include <stdio.h> #include<string.h> int main() { long long int a,b,c=0,d=0,w=0,i,str1=0,str2=0,flag,j,count=0,k,n,sum=0; scanf("%lld %lld %lld",&a,&b,&c); if((a+b==c || b+c==a || a+c==b ) { printf("Yes\n"); }else{ printf("No\n"); } return 0; }
main.c: In function 'main': main.c:8:33: error: expected ')' before '{' token 8 | if((a+b==c || b+c==a || a+c==b ) | ~ ^ | ) 9 | { | ~ main.c:15:1: error: expected expression before '}' token 15 | ...
s251764088
p03943
C++
#include <cstdio> int main() { int a = 0,b = 0,c = 0; scanf("%d %d %d",&a,&b,&c); if (a + b=c)printf ("Yes"); else if (a + c=b)printf ("Yes"); else if (b + c=a)printf ("Yes"); else printf ("No"); return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: lvalue required as left operand of assignment 6 | if (a + b=c)printf ("Yes"); | ~~^~~ a.cc:7:20: error: lvalue required as left operand of assignment 7 | else if (a + c=b)printf ("Yes"); | ~~^~~ a.cc:8:20:...
s872380293
p03943
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a==b+c||b=a+c||c=a+b) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:7:19: error: lvalue required as left operand of assignment 7 | if(a==b+c||b=a+c||c=a+b) cout << "Yes" << endl; | ~~~^~~
s405228979
p03943
C++
int main() { int a, b, c; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if (a+b==c) { printf("Yes\n"); } else { if (b+c==a) { printf("Yes\n"); } else { if (c+a==b) { printf("Yes\n"); } else { printf("No\n"); } } } system("pause"); }
a.cc: In function 'int main()': a.cc:4:9: error: 'scanf' was not declared in this scope 4 | scanf("%d",&a); | ^~~~~ a.cc:9:17: error: 'printf' was not declared in this scope 9 | printf("Yes\n"); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<...
s968049233
p03943
C
#include <stdio.h> int main(){ int a,b,c,s; scanf("%d%d%d",&a,&b,&c); s=(a+b+c)/2 puts((s-a)*(s-b)*(s-c)?"No":"Yws"); }
main.c: In function 'main': main.c:5:14: error: expected ';' before 'puts' 5 | s=(a+b+c)/2 | ^ | ; 6 | puts((s-a)*(s-b)*(s-c)?"No":"Yws"); | ~~~~
s949574861
p03943
C++
#include <stdio.h> int main(void) { int a, b, c; scanf("%d%d%d", &a, &b, &c); if (a+b==c || b+c==a || c+a=b) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: lvalue required as left operand of assignment 7 | if (a+b==c || b+c==a || c+a=b) { | ~~~~~~~~~~~~~~~~~^~~~~~
s558606981
p03943
C++
#include<cstdio> using namespace std; int main(){ int a,b,c; scanf("%d %d %d",6a,&b,&c); if(a+b==c||b+c==a||a+c==b) printf("Yes\n"); else printf("No\n"); }
a.cc: In function 'int main()': a.cc:5:20: error: unable to find numeric literal operator 'operator""a' 5 | scanf("%d %d %d",6a,&b,&c); | ^~
s091067664
p03943
C++
#include<iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(a+b==c||b+c==a||a+c==b){ cout << "Yes" << endl; }else{ cout << "No << endl; } return 0; }
a.cc:9:13: warning: missing terminating " character 9 | cout << "No << endl; | ^ a.cc:9:13: error: missing terminating " character 9 | cout << "No << endl; | ^~~~~~~~~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before '}' token ...
s681049817
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(a + b = c || a + c = b || c + b = a) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:29: error: lvalue required as left operand of assignment 8 | if(a + b = c || a + c = b || c + b = a) cout << "Yes" << endl; | ~~^~~~~~~~
s393618508
p03943
C++
#include <iostream> #include <sstream> #include <algorithm> #include <string> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <memory> #include <complex> #include <numeric> #include <cstdio> #include <iomanip> #define REP(i,m,n) for(int i=int(m);i<int(n);i++)...
a.cc: In function 'void solve()': a.cc:61:29: error: lvalue required as left operand of assignment 61 | if (a[0] + a[1] == a[2] || a[0] = a[1] + a[2]) cout << "Yes" << endl;
s560390251
p03943
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b=c||b+c==a||a+c==b) return puts("YES"),0; return puts("NO"),0; }
a.cc: In function 'int main()': a.cc:7:9: error: lvalue required as left operand of assignment 7 | if(a+b=c||b+c==a||a+c==b) | ~^~
s429749941
p03943
C++
a, b, c = map(int, input().split()) if a == b + c: print('Yes') elif a + b == c: print('Yes') elif a + c == b: print('Yes') else: print('No')
a.cc:4:11: warning: multi-character character constant [-Wmultichar] 4 | print('Yes') | ^~~~~ a.cc:6:11: warning: multi-character character constant [-Wmultichar] 6 | print('Yes') | ^~~~~ a.cc:8:11: warning: multi-character character constant [-Wmultichar] 8 | pri...
s610281004
p03943
C++
#include<iostream> using namespace std; int main() { int a,b,c,sum1,sum2,sum3; cin>>a; cin>>b; cin>>c; sum1=a+b;sum2=b+c;sum3=c+a; if(sum1==c) {cout<<"YES"<<endl; } else if(sum2==a) {cout<<"YES"<<endl; } else if (sum3==b) else if {cout<<"YES"<<endl;...
a.cc: In function 'int main()': a.cc:18:10: error: expected primary-expression before 'else' 18 | else if | ^~~~
s644616557
p03943
C++
#include<iostream> using namespace std; int main() { int a,b,c,sum1,sum2,sum3; cin>>a; cin>>b; cin>>c; sum1=a+b;sum2=b+c;sum3=c+a; if(sum1==c){cout<<"YES"<<endl;} else if(sum2==a){cout<<"YES"<<endl;} else if (sum3==b) else if{cout<<"YES"<<endl;} else{cout<<"...
a.cc: In function 'int main()': a.cc:14:10: error: expected primary-expression before 'else' 14 | else if{cout<<"YES"<<endl;} | ^~~~
s764631131
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(){ cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[0] + a[1] == a[2]){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:5:8: error: 'a' was not declared in this scope 5 | cin>>a[0]>>a[1]>>a[2]; | ^
s164024554
p03943
C++
#include <iostream> #include <vector> #include <cmath> using std::cin; using std::cout; using std::endl; using std::vector; using std::sort; int main() { vector<int> s; for (int i = 0; i < 3; i++) cin >> s[i]; sort(s.begin(), s.end()); if (s[0] + s[1] == s[2]) cout << "Yes" << endl; else ...
a.cc:9:12: error: 'sort' has not been declared in 'std' 9 | using std::sort; | ^~~~ a.cc: In function 'int main()': a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'sqrt'? 15 | sort(s.begin(), s.end()); | ^~~~ | sqrt
s955343466
p03943
C++
#include<iostream> #include<vector> using namespace std; int main(){ vector<int> v(3); cin >> v[0] >> v[1] >> v[2]; sort(v.begin(), v.end()); if(v[0]+v[1]==v[2]){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'? 8 | sort(v.begin(), v.end()); | ^~~~ | short
s962065304
p03943
C
#include<stdio.h> int main(){ int a,b,c; scnaf("%d %d %d",&a,&b,&c); if(a+b==c||a+c==b||b+c==a){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
main.c: In function 'main': main.c:4:5: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 4 | scnaf("%d %d %d",&a,&b,&c); | ^~~~~ | scanf
s389503283
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(a==b+c||b=a+c||c==a+b) cout << "Yes" << endl; } else{cout << "No" << endl;} }
a.cc: In function 'int main()': a.cc:8:12: error: lvalue required as left operand of assignment 8 | if(a==b+c||b=a+c||c==a+b) | ~~~~~~^~~ a.cc: At global scope: a.cc:11:5: error: expected unqualified-id before 'else' 11 | else{cout << "No" << endl;} | ^~~~ a.cc:12:3: error: expected de...
s459276462
p03943
C++
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <complex> #include <fstream> #include <cmath> using namespace std; int main(void){ int num[3]; cin >> num[0] >> num[1] >> num[2]; for(int i=0;i<3;i++){ if(num[0]+num[1]+num[2] % num[i] == true && num[i]==(num[0]+...
a.cc: In function 'int main()': a.cc:15:85: error: expected ')' before '{' token 15 | if(num[0]+num[1]+num[2] % num[i] == true && num[i]==(num[0]+num[1]+num[2])/2{ | ~ ^ | ...
s208288747
p03943
C++
a,b,c=map(int,input().split()) print("Yes" if 2*max(a,b,c)==a+b+c else "No")
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=map(int,input().split()) | ^
s921193376
p03943
C++
#include<iostream> #include<string> using namespace std; int main(void){ int a,b,c string flag="NO"; cin>>a>>b>>c; if(a+b==c)flag="YES"; else if(abs(a-b)==c)flag=="YES"; cout<<flag<<endl; }
a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'string' 6 | string flag="NO"; | ^~~~~~ a.cc:7:16: error: 'c' was not declared in this scope 7 | cin>>a>>b>>c; | ^ a.cc:8:15: error: 'flag' was not declared in this scope 8 | if(a+b==c)fla...
s302258535
p03943
C++
#include<iosteam> #include<string> using namespace std; int main(void){ int a,b,c string flag="NO"; cin>>a>>b>>c; if(a+b==c)flag="YES"; else if(abs(a-b)==c)flag=="YES"; cout<<flag<<endl; }
a.cc:1:9: fatal error: iosteam: No such file or directory 1 | #include<iosteam> | ^~~~~~~~~ compilation terminated.
s575050883
p03943
C++
#include <iostream> using namespace std; int main() { int a,b,c = 0; cin >> a >> b >> c; int m= 0; int w= 0; m = std::max({a,b,c}); w =a + b + c; if(w == (2*m)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:17: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 10 | m = std::max({a,b,c}); | ~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s817633464
p03943
C++
#include <iostream> using namespace std; int main() { int a,b,c = 0; cin >> a >> b >> c; int m= 0; int w= 0; m = max({a,b,c}); w =a + b + c; if(w == (2*m)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 10 | m = max({a,b,c}); | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s266379305
p03943
C++
#include <iostream> using namespace std; int main() { int a,b,c = 0; cin >> a >> b >> c; int m= 0; int w= 0; m = max({a,b,c}); w =a + b + c; if(w == (2*m)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 10 | m = max({a,b,c}); | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s703173843
p03943
C++
#include <iostream> using namespace std; int main() { int a,b,c = 0; cin >> a >> b >> c; int m= 0; int w= 0; m = max({a,b,c}); w =a + b + c if(w == (2*m)){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 10 | m = max({a,b,c}); | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s734495176
p03943
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int x=(a+b+c)/2 if(x==a||x==b||x==c){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'if' 8 | if(x==a||x==b||x==c){ | ^~ a.cc:11:3: error: 'else' without a previous 'if' 11 | else{ | ^~~~
s640705312
p03943
C++
#include <iostream> #include <algorithm> using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; if(max(max(a,b),c)-(a+b+c-max(max(a,b),c)==0){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:48: error: expected ';' before '{' token 7 | if(max(max(a,b),c)-(a+b+c-max(max(a,b),c)==0){ | ^ | ; a.cc:9:4: error: expected primary-expression before 'else' 9 | ...
s175442667
p03943
Java
import java.io.*; public class a { public static void main (String[] args) throws IOException { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String str1 = br.readLine(); String[] str2 = str1.split(" ", 0); int i[] ...
Main.java:3: error: class a is public, should be declared in a file named a.java public class a ^ 1 error
s643650228
p03943
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b - sc.nextInt(); int c = sc.nextInt(); if(a+b == c||b+c == a||c+a == b) System.out.println("Yes"); else System.out.println("No"); } }
Main.java:6: error: ';' expected int b - sc.nextInt(); ^ 1 error