submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s622683176
p04004
C++
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static long MOD = 1_000_000_007; static long[] pow3 = new long[1_000_000]; static long[] fact = new long[1_000_000]; static long[] finv = new long[1_000_000]; static int N, M, K; public static void main(String[] args) { ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s979525018
p04004
C++
#include <bits/stdc++.h> using namespace std; #define PB push_back #define MP make_pair #define LL long long #define int LL #define FOR(i,a,b) for(int i = (a); i <= (b); i++) #define RE(i,n) FOR(i,1,n) #define REP(i,n) FOR(i,0,(int)(n)-1) #define R(i,n) REP(i,n) #define VI vector<int> #define PII pair<int,int> #define...
a.cc:6:12: error: expected primary-expression before 'long' 6 | #define LL long long | ^~~~ a.cc:7:13: note: in expansion of macro 'LL' 7 | #define int LL | ^~ a.cc:175:9: note: in expansion of macro 'int' 175 | FFT fft(int(1e5)+2); | ^~~
s232247181
p04004
C++
#include "bits/stdc++.h" #include <gmp.h> using namespace std; #define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i)) #define rer(i,l,u) for(int (i)=(int)(l);(i)<=(int)(u);++(i)) #define reu(i,l,u) for(int (i)=(int)(l);(i)<(int)(u);++(i)) static const int INF = 0x3f3f3f3f; static const long long INFL = 0x3f3f3f3f3f3f3f3fLL...
/usr/bin/ld: /tmp/cc1PXXUO.o: in function `DynamicLibrary::DynamicLibrary(char const*)': a.cc:(.text._ZN14DynamicLibraryC2EPKc[_ZN14DynamicLibraryC5EPKc]+0x1d): undefined reference to `__libc_dlopen_mode' /usr/bin/ld: /tmp/cc1PXXUO.o: in function `DynamicLibrary::get(char const*) const': a.cc:(.text._ZNK14DynamicLibrar...
s564564286
p04005
C++
#include <stdio.h> #include <iostream> #include <algorithm> #include <vector> #include <cmath> #include <string> #include <iomanip> #include <bits/stdc++.h> #include <fstream> #include <map> using namespace std; typedef long long ll; #define INF 1000000000000 //10^12:極めて大きい値,∞ #define REP(i,n) for(ll i=0;i<(ll)(n);i++)...
a.cc: In function 'int main()': a.cc:31:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int') 31 | cout >> 0 >> endl; | ~~~~ ^~ ~ | | | | | int | std::ostream {aka std::basic_ostream<char>} a.cc:31:10...
s763111391
p04005
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1e18; const int N = 2010; ll n, x, a[N], ans, dp[N][2]; void init() { for (ll i = 0; i < n; i++) dp[i][0] = dp[i][1] = INF; } ll get(ll start) { init(); dp[start][0] = a[start]; for (ll step = 1; step < n; step++) { ll i = (...
a.cc: In function 'int main()': a.cc:32:19: error: request for member 'begin' in 'a', which is of non-class type 'll [2010]' {aka 'long long int [2010]'} 32 | reverse(a.begin(), a.end()); | ^~~~~ a.cc:32:30: error: request for member 'end' in 'a', which is of non-class type 'll [2010]...
s536884363
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; long long all = a*b*c; if (all % 2LL == 0) cout << 0 << endl; else { long long ans = min(a*b, b*c, c*a); cout << ans << endl; } }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s938182661
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int const NMAX = 100; int v[1 + NMAX + 1]; int main() { unsigned long long a, b, c; cin >> a >> b >> c; cout << min(abs(((a / 2) + a % 2) * (b * c) - ((a / 2)) * (b * c) ),min(abs(((b / 2) + b % 2) * (a * c) - ((b / 2)) * (a * c) ), abs(((c / 2) + ...
a.cc: In function 'int main()': a.cc:13:18: error: call of overloaded 'abs(long long unsigned int)' is ambiguous 13 | cout << min(abs(((a / 2) + a % 2) * (b * c) - ((a / 2)) * (b * c) ),min(abs(((b / 2) + b % 2) * (a * c) - ((b / 2)) * (a * c) ), abs(((c / 2) + c % 2) * (b * a) - ((c / 2)) * (b * a) ))); | ...
s956227096
p04005
C++
#include<bits/stdc++.h> using namespace std; int main() { ll edge[3]; bool even = false; for (int i = 0; i < 3; ++i) { cin >> edge[i]; if (edge[i] % 2 == 0) even = true; } sort(edge, edge + 3); cout << (even ? 0 : edge[0] * edge[1]) << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'll' was not declared in this scope 5 | ll edge[3]; | ^~ a.cc:8:16: error: 'edge' was not declared in this scope 8 | cin >> edge[i]; | ^~~~ a.cc:11:10: error: 'edge' was not declared in this scope 11 | sort(edge, ...
s954464889
p04005
C++
#include <bits/stdc++.h> using ll = long long; using namespace std; #define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++) #define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++) #define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--) #define rreps(i,n) for(int i=((int)(n));i>0;i--) #define repi(i,x) for(a...
a.cc: In function 'int main()': a.cc:33:23: error: cannot resolve overloaded function 'min' based on conversion to type 'll' {aka 'long long int'} 33 | ans = min{a * b, b * c, c * a}; | ^~~
s530128905
p04005
C++
#include <bits/stdc++.h> using ll = long long; using namespace std; #define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++) #define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++) #define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--) #define rreps(i,n) for(int i=((int)(n));i>0;i--) #define repi(i,x) for(a...
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s141914340
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin >> a >> b >> c; if( a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ cout << 0 << endl; }else{ cout << min({a,b,c)} * (a+b+c-min({a,b,c})-max({a,b,c})) << endl; } }
a.cc: In function 'int main()': a.cc:10:23: error: expected '}' before ')' token 10 | cout << min({a,b,c)} * (a+b+c-min({a,b,c})-max({a,b,c})) << endl; | ~ ^ a.cc:10:24: error: expected ';' before '}' token 10 | cout << min({a,b,c)} * (a+b+c-min({a,b,c})-max({a,b,c})) << endl; ...
s254190368
p04005
C++
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int,int> P; int INF = 1e9+7; int mod = 100000; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { int A,B,C; cin >> A >> B >> C; if(A%2 == 0 || B%2 == 0 || C%2 == 0) { cout << 0 << endl; retur...
a.cc: In function 'int main()': a.cc:14:17: error: expected ';' before '}' token 14 | return 0 | ^ | ; 15 | } | ~
s882519300
p04005
C++
// IOI 2021 #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ends ' ' #define die(x) return cout << x << endl, 0 #define all(v) v.begin(), v.end() #define sz(x) (int)(x.size()) void debug_out() { cerr << endl; } template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) { cerr...
a.cc: In function 'int main()': a.cc:32:21: error: 'n' was not declared in this scope 32 | sort(A, A + n); | ^
s473743511
p04005
C++
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i,n) for(int i = 0; i < (n); ++i) #define ll long long #define P pair<ll,ll> #define all(v) (v).begin(),(v).end() const ll mod = 1e9+7; const ll INF = 1e18; const double pi = acos(-1.0); int main(void) { ll a,b,c,ans; cin>>a>>b>>c; ...
a.cc: In function 'int main()': a.cc:17:61: error: expected ')' before '-' token 17 | ans = a*b*c-max({a,b,c})*(min({a,b,c}))*(sum-max({a,b,c}-min({a,b,c}))); | ~ ^ | )
s304155574
p04005
C++
#include<bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using ll=long long; using namespace std; int main(){ vector<ll> a(3); rep(i,3) cin>>a[i]; if(a[0]%2==0 ||a[1]%2==0 ||a[2]%2==0) cout<<0<<"\n"; else{ sort(a.begin(),a.end()); cout<<a[0]*a[1]*(a[2]-a[2]/2)-a[0]*a[1]*(a[2]/2)<...
a.cc: In function 'int main()': a.cc:14:2: error: expected '}' at end of input 14 | } | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s426231690
p04005
C++
#include <iostream> #include <bits/stdc++.h> #include <vector> #include <algorithm> #include <cctype> #include <string> #include <map> #include <set> #include <math.h> #include <cmath> #define ll long long using namespace std; using P = pair<int,int>; int main(){ int A, B, C, X, mn, md, mx; cin >> A >> B >> C; ...
a.cc: In function 'int main()': a.cc:11:12: error: expected primary-expression before 'long' 11 | #define ll long long | ^~~~ a.cc:28:11: note: in expansion of macro 'll' 28 | ans = ll((mx/2+1)*md*mn) - ll((mx/2)*md*mn); | ^~
s540048497
p04005
C++
#include<bits/stdc++.h> using namespace std; const int N=2000+10; typedef long long ll; const ll llf=(1ll<<63)-1; ll dp[N][N],a[N]; int main() { int n; ll x,ans=llf; scanf("%d%lld",&n,&x); for(int i=1;i<=n;i++) { scanf("%lld",&a[i]); dp[0][i]=a[i]; } for(int i=1;i<=n-1;i++...
a.cc:7:23: warning: integer overflow in expression of type 'long long int' results in '9223372036854775807' [-Woverflow] 7 | const ll llf=(1ll<<63)-1; | ~~~~~~~~~^~ a.cc: In function 'int main()': a.cc:35:6: error: expected '}' at end of input 35 | } | ^ a.cc:10:1: note: to matc...
s041697088
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int A; int B; int C; int main(){ cin >> A >> B >> C; if(A % 2 == 0 || B % 2 == 0 || C % 2 == 0){ cout << "0"; } else{ cout << min(A * B, B * C, C * A); } }
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...
s823293606
p04005
Java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] side = new int[3]; for(int i = 0;i<side.length;i++) side[i] = sc.nextInt(); if(side[0]%2==0||side[1]%2==0||side[2]%2==0){ System.out.println(0); } else { ...
Main.java:11: error: ';' expected long tmp2 = side[0]*side[1]l; ^ 1 error
s501587536
p04005
C++
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; int main() { int a,b,c; cin >> a >> b >> c; if(a%2 * b%2 * c%2 == 0) cout << 0 << endl; else cout << min(a*b,b*c,c*a) << endl; return 0; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s118518399
p04005
C++
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int A,B,C; cin >> A >> B >> C; if(A%2 == 0 || B%2 == 0 || C%2 == 0) { cout << 0 << endl; } else { cout << min(A*B,A*C,B*C) << endl; } }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s207514978
p04005
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define FOR(i, m, n) for (int i = (m); i < (n); i++) #define FORR(i, m, n) for (int i = (m); i >= (n); i--) #define REP(i, n) FOR(i, 0, (n)) #define REPR(i, n) FORR(i, (n) - 1, 0) #define REP1(i, n) FOR(i, 1, (n) + 1) #define ...
a.cc: In function 'void solve()': a.cc:44:10: error: no matching function for call to 'chmin(ll&, int)' 44 | chmin(mn, f(a, b, c)); | ~~~~~^~~~~~~~~~~~~~~~ a.cc:17:31: note: candidate: 'template<class T> bool chmin(T&, T)' 17 | template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; retur...
s675294039
p04005
C++
#include <bits/stdc++.h> using namespace std; int main(){ ll a,b,c; cin >> a >> b >> c; if(a%2==0||b%2==0||c%2==0){ cout << 0 << endl; } else{ cout << min(a*b,min(b*c,c*a)) << endl; } }
a.cc: In function 'int main()': a.cc:5:3: error: 'll' was not declared in this scope 5 | ll 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; | ...
s278877274
p04005
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; int d=max(a,max(b,c)); int e=min(a,min(b,c)); int f=a+b+c-d-e; if(d%2==0){ cout << 0 << endl; } else{ cout << e*f << endl; }a }
a.cc: In function 'int main()': a.cc:17:5: error: expected ';' before '}' token 17 | }a | ^ | ; 18 | } | ~
s813471364
p04005
C++
#include <iostream> #include <vector> #include <cstdlib> using namespace std; int main() { long long a[3]; cin>>a[0]>>a[1]>>a[2]; int counter=0; sort(a,a+3); for(int i=0; i<3;i++){ if(a[i]%2==0){ counter++;}} if(counter>0) cout<<0<<endl; else cout<<a[0]*a[1]<<endl; }
a.cc: In function 'int main()': a.cc:9:5: error: 'sort' was not declared in this scope; did you mean 'short'? 9 | sort(a,a+3); | ^~~~ | short
s410637255
p04005
C++
#include <iostream> #include <vector> #include <cstdlib> using namespace std; int main() { long long a[3]; cin>>a[0]>>a[1]>>a[2]; int counter1=0; int counter2=0; int answer=0; int a=0; sort(a,a+3); for(int i=0; i<3;i++){ if(a[i]%2==0){ counter++;}} if(counter>0) cout<<0<<...
a.cc: In function 'int main()': a.cc:11:9: error: conflicting declaration 'int a' 11 | int a=0; | ^ a.cc:6:15: note: previous declaration as 'long long int a [3]' 6 | long long a[3]; | ^ a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'short'? 12...
s337709569
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A, B, C; cin >> A >> B >> C; x=abs(ceil((double)A/2)*B*C-floor((double)A/2)*B*C); y=abs(ceil((double)B/2)*A*C-floor((double)B/2)*A*C); z=abs(ceil((double)C/2)*B*A-floor((double)C/2)*B*A); cout << min(min(x,y),z) <<endl; }
a.cc: In function 'int main()': a.cc:8:3: error: 'x' was not declared in this scope 8 | x=abs(ceil((double)A/2)*B*C-floor((double)A/2)*B*C); | ^ a.cc:9:3: error: 'y' was not declared in this scope 9 | y=abs(ceil((double)B/2)*A*C-floor((double)B/2)*A*C); | ^ a.cc:10:3: error: 'z' was not decl...
s593030578
p04005
C++
#include <iostream> #include <vector> using namespace std; int main() { int N, M, X; cin >> N >> M >> X; int a[3]; a[0] = N; a[1] = M; a[2] = X; sort(a,a+3); if(N%2 == 0 || M%2 == 0 || X%2 == 0){ cout << "0" << endl; } else{ cout << a[0]*a[1] << endl; } }
a.cc: In function 'int main()': a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'short'? 15 | sort(a,a+3); | ^~~~ | short
s439593306
p04005
C++
#include <stdio.h> #include <stdlib.h> #include <string> #include <iostream> #include <vector> using namespace std; int main(){ vector<int> hen; int x; for (int i = 0; i < 3; i++) { cin >> x; hen.push_back(x); } for (auto j: hen) { if (j % 2 == 0) { co...
a.cc: In function 'int main()': a.cc:25:5: error: 'sort' was not declared in this scope; did you mean 'short'? 25 | sort(hen.begin(), hen.end()); | ^~~~ | short
s541935498
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<long> a(3); cin >> a.at(0) >> a.at(1) >> a.at(2); sort(a.begin(), a.end()); if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) cout << 0; else cout << (ceil(a.at(2) / 2.0) * a.at(1) * a.at(0)) - (floor(a.at(2) / 2.0) * a.at(1) * a.at(0));...
a.cc: In function 'int main()': a.cc:11:9: error: no match for 'operator%' (operand types are 'std::vector<long int>' and 'int') 11 | if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) | ~ ^ ~ | | | | | int | std::vector<long int> In file included from /usr/include/c++/...
s903587155
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if(a%2==1 && b%2==1 && c%2==1){ ans = min (a*b, b*c); ans = min (ans, c*a); cout << ans << endl; } else cout << 0 << endl; }
a.cc: In function 'int main()': a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'? 7 | ans = min (a*b, b*c); | ^~~ | abs
s352952351
p04005
C++
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> typedef long long ll; using namespace std; #define REP(inc, bgn, end) for (int inc = bgn; inc < end; inc++) int main() { int a, b, c; cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) { cout << 0 << endl; exit(0); } ...
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:2: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s715563658
p04005
C++
#include <iostream> int main() { //若有边长为偶数,结果为0; //皆为奇数,结果为两短边之积乘1。 int a,b,c,max; cin>>a>>b>>c; if(a%2==0||b%2==0||c%2==0) cout<<"0"; else { max=a; if(b>a) max=b; if(c>b) max=c; if(max==a) cout<<b*c; else if(max==b) cout<<a*c; else if(max==c) cout<<a*b; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 7 | 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; ...
s007112450
p04005
C
#include<iostream> #include<math.h> #include<algorithm> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0)cout << 0 << endl; else { int d = max(a, max(b, c)); if (d == a)cout << b * c << endl; else if (d == b)cout << a * c << endl; else if (...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s258610426
p04005
C++
#include<iostream> using namespace std; int a, b, c, ab, bc, ac; int min; int main() { cin >> a >> b >> c; ab = a * b; min = ab; bc = b * c; if (bc < min) min = bc; ac = a * c; if (ac < min) min = ac; if (min == ab) { int temp; temp = (c - c / 2) - c / 2; temp = temp * ab; cout << temp; return 0;...
a.cc: In function 'int main()': a.cc:9:9: error: reference to 'min' is ambiguous 9 | min = ab; | ^~~ 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, ...
s918950796
p04005
C++
#include<iostream> using namespace std; int a, b, c, ab, bc, ac; int min; int main() { cin >> a >> b >> c; ab = a * b; min = ab; bc = b * c; if (bc < min) min = bc; ac = a * c; if (ac < min) min = ac; if (min == ab) { int temp; temp = (c - c / 2) - c / 2; temp = temp * ab; cout << temp; return 0;...
a.cc: In function 'int main()': a.cc:9:9: error: reference to 'min' is ambiguous 9 | min = ab; | ^~~ 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, ...
s298157139
p04005
C
#include<iostream> #include<algorithm> using namespace std; int main(){ long long a[3]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[2]%2==0){ cout<<"0"<<endl; } else{ cout<<a[1]*a[2]<<endl; } return 0; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s685283049
p04005
C
#include<iostream> #include<cstdio> using namespace std; int main(){ long long a, b, c, jShu = 0x3f3f3f3f3f3f3f3f; cin >> a >> b >> c; if(a%2 && b*c < jShu) jShu = b*c; if(!(a%2)) jShu = 0; if(b%2 && a*c < jShu) jShu = a*c; if(!(b%2)) jShu = 0; if(c%2 && a*b < jShu) jShu = a*b; if(!(c%2)) jShu = 0; cout...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s664054205
p04005
C++
#include<iostream> using namespace std; int a, b, c, ab, bc, ac; int min; int main() { cin >> a >> b >> c; ab = a * b; min = ab; bc = b * c; if (bc < min) min = bc; ac = a * c; if (ac < min) min = ac; if (min == ab) { int temp; temp = (c - c / 2) - c / 2; temp = temp * ab; cout << temp; return 0;...
a.cc: In function 'int main()': a.cc:9:9: error: reference to 'min' is ambiguous 9 | min = ab; | ^~~ 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, ...
s111456070
p04005
C++
#include<iostream> #include<alogrithm> using namespace std; int main(){ int a[3]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[2]%2==0){ cout<<0<<endl; }else{ cout<<a[0]*a[1]<<endl; } return 0; }
a.cc:2:9: fatal error: alogrithm: No such file or directory 2 | #include<alogrithm> | ^~~~~~~~~~~ compilation terminated.
s628289380
p04005
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int a,b,c; cin>.a>>b>>c; if(a%2==1 && b%2==1 && c%2==1) { cout<<min(a*b,min(b*c,c*a)); } else cout<<0; }
a.cc: In function 'int main()': a.cc:7:13: error: expected primary-expression before '.' token 7 | cin>.a>>b>>c; | ^
s825773455
p04005
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ vector<int> a(3); cin>>a[0]>>a[1]>>a[2]; if(a%2==1 && b%2==1 && c%2==1) { sort(a.begin(),a.end()); cout<<a[0]*a[1]; } else cout<<0; }
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator%' (operand types are 'std::vector<int>' and 'int') 8 | if(a%2==1 && b%2==1 && c%2==1) { | ~^~ | | | | | int | std::vector<int> In file included from /usr/include/c++/14/valarray:605, ...
s178664345
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, C; cin >> A >> B >> C; if (A%2==0 || B%2==0 || C%2==0) { cout << 0 << endl; } else { cout << min(A*B, B*C, C*A) << endl; } }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s841757593
p04005
C++
#include<iostream> using namespace std; int main(){ long a,b,c;cin>>a>>b>>c; if(a%2==b%2==c%2==0)cout<<0<<endl; else cout<<min({a*b,b*c,c*a}); }
a.cc: In function 'int main()': a.cc:6:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)' 6 | else cout<<min({a*b,b*c,c*a}); | ~~~^~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes....
s098828108
p04005
C++
#include <bits/stdc++.h> #define int long long #define pb push_back #define l first #define r second using namespace std; const int maxn = 2e5 + 1; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a, b, c; cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) ...
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s201261476
p04005
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long int a , b , c; cin >> a >> b >> c; if( a % 2 == 0 || b % 2 == 0 || c % 2 == 0 ) { cout << 0 << endl; return 0; } int min=1000000000; int diff = ( a - a / 2 ) * b * c - a / 2 * b * c; if( min > diff ) min = diff; diff = a * ( b - b / 2 ) * c - a * ( b ...
a.cc: In function 'int main()': a.cc:13:21: error: expected '}' at end of input 13 | cout << min << endl; | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s695046360
p04005
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a , b , c; cin >> a >> b >> c; if( a % 2 == 0 || b % 2 == 0 || c % 2 == 0 ) { cout << 0 << endl; return 0; } int min=2000000000; int block; int block = a / 2 * b * c; int diff; int diff = ( a / 2 + 1) * b * c - block; if( min > diff ) min = diff; ...
a.cc: In function 'int main()': a.cc:9:13: error: redeclaration of 'int block' 9 | int block = a / 2 * b * c; | ^~~~~ a.cc:8:13: note: 'int block' previously declared here 8 | int block; | ^~~~~ a.cc:11:13: error: redeclaration of 'int diff' 11 | in...
s590877753
p04005
C++
#include <bits/stdc++.h> using namespace std; int main(){ long long int a,b,c; cin>>a>>b>>c; long long int ab,abc,ans; ab=a*b; abc=a*b*c; ans=abc-(ab*(c/2)*2); cout<<ans<<endl; return 0;
a.cc: In function 'int main()': a.cc:15:12: error: expected '}' at end of input 15 | return 0; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s299716280
p04005
C++
5 3 5
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 5 3 5 | ^
s182757282
p04005
C++
#include <bits/stdc++.h> #include <math.h> #define rep(i, n) for(int i = 0; i < n; ++i) using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; if(a % 2 == 1 && b % 2 == 1 && c % 2 == 1){ vector<int64_t> v; v.push_back(a); v.push_back(b); v.push_back(c); sort(v.begin(), b.end()); c...
a.cc: In function 'int main()': a.cc:12:23: error: request for member 'end' in 'b', which is of non-class type 'int64_t' {aka 'long int'} 12 | sort(v.begin(), b.end()); | ^~~
s167672564
p04005
C++
#include <bits/stdc++.h> #include <math.h> #define rep(i, n) for(int i = 0; i < n; ++i) using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; if(a % 2 == 1 && b % 2 == 1 && c % 2 == 1){ vector<int64_t> v = {a, b, c}; sort(v.begin(), b.end()); cout << v[0] * v[1] << endl; } else c...
a.cc: In function 'int main()': a.cc:11:23: error: request for member 'end' in 'b', which is of non-class type 'int64_t' {aka 'long int'} 11 | sort(v.begin(), b.end()); | ^~~
s809103144
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { array<long, 3> Edge; //3辺を入れる配列 long result = 0; bool odd = true; cin >> Edge[0] >> Edge[1] >> Edge[2]; //配列に入力 //配列のサイズ分forして、偶数があったらoddにfalseを入れる。 for (int i : Edge) { if (i % 2 == 0) { odd = false; ...
a.cc: In function 'int main()': a.cc:31:14: error: expected '}' at end of input 31 | return 0; | ^ a.cc:5:1: note: to match this '{' 5 | { | ^
s482115579
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { const int n = 3; int result = 0; array<int, n> Edge; cin >> Edge[0] >> Edge[1] >> Edge[2]; bool result = true; for (int i = 0; i < n; i++) { if (Edge[i] % 2 == 0) { result = false; } } i...
a.cc: In function 'int main()': a.cc:11:10: error: conflicting declaration 'bool result' 11 | bool result = true; | ^~~~~~ a.cc:7:9: note: previous declaration as 'int result' 7 | int result = 0; | ^~~~~~
s133342702
p04005
C++
#include <bits/stdc++.h> using namespace std; using Int = long long; #define PUTS(x) cout << (x) << endl; vector<Int> IntsIn(int n) { auto v = vector<Int>(0); for (int i = 0; i < n; i++) { Int a; cin >> a; v.push_back(a); } return v; } int main() { auto v = IntsIn(3); au...
a.cc: In function 'int main()': a.cc:19:15: error: 'Min' was not declared in this scope; did you mean 'sin'? 19 | ans = Min(v[0] * v[1], v[1] * v[2], v[2] * v[0]); | ^~~ | sin
s651114974
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int main(){ long long a,b,c; cin >> a >> b >> c; if(a%2==0 || b%2==0 || c%2==0)cout << 0 << endl; else { ll mid = a+b+c-max({a,b,c})-min({a,b,c}); cout << min({a,b,c}) * mid << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:5: error: 'll' was not declared in this scope 10 | ll mid = a+b+c-max({a,b,c})-min({a,b,c}); | ^~ a.cc:10:31: error: expected primary-expression before ')' token 10 | ll mid = a+b+c-max({a,b,c})-min({a,b,c}); | ^ a.cc:10...
s998313718
p04005
C++
#include <bits/stdc++.h> using namesace std; int main(){ long long arr[3]; cin>>arr[0]>>arr[1]>>arr[2]; sort(arr,arr+3); if( (arr[0]&1) && (arr[1]&1) && (arr[2]&1)){ cout<<arr[0]*arr[1]<<endl; } else cout<<"0\n"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesace' 2 | using namesace 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>>arr[0]>>arr[1]>>arr[2]; | ^~~ | std::cin In file included fr...
s914307221
p04005
C++
#include <bits/stdc++.h> using namesace std; int main(){ int arr[3]; cin>>arr[0]>>arr[1]>>arr[2]; sort(arr,arr+3); if( (arr[0]&1) && (arr[1]&1) && (arr[2]&1)){ cout<<arr[0]*arr[1]<<endl; } else cout<<"0\n"; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesace' 2 | using namesace 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>>arr[0]>>arr[1]>>arr[2]; | ^~~ | std::cin In file included fr...
s023246939
p04005
C++
#include <bits/stdc++.h> using namespace std; int main () { int A, B, C; int A = 2, B =2, C=4; cout << A*B*C-A*A*A-B*B*B << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: redeclaration of 'int A' 6 | int A = 2, B =2, C=4; | ^ a.cc:5:7: note: 'int A' previously declared here 5 | int A, B, C; | ^ a.cc:6:14: error: redeclaration of 'int B' 6 | int A = 2, B =2, C=4; | ^ a.cc:5:10: n...
s267116906
p04005
C++
#include <bits/stdc++.h> using namespace std; int main () { int A, B, C; int A = 2, B =2, C=4; cout << A*B*C-A*A*A-B*B*B << endl; }
a.cc: In function 'int main()': a.cc:6:7: error: redeclaration of 'int A' 6 | int A = 2, B =2, C=4; | ^ a.cc:5:7: note: 'int A' previously declared here 5 | int A, B, C; | ^ a.cc:6:14: error: redeclaration of 'int B' 6 | int A = 2, B =2, C=4; | ^ a.cc:5:10: n...
s642034927
p04005
C++
#include <bits/stdc++.h> using namespace std; int main () { int = A, B, C; cin >> A >> B >> C; cout << A*B*C-A*A*A-B*B*B << 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; ...
s218715147
p04005
C++
#include <bits/stdc++.h> using namespace std; int main () { int = A, B, C; cin >> A, B, C; cout << A*B*C-A*A*A-B*B*B << 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:13: error: 'B' was not declared in this scope 6 | cin >> A, B, C; | ...
s646494706
p04005
C++
#include <bits/stdc++.h> using namespace std; #define int long long int ans(int l,int b,int h){ if (l%2==0 || b%2==0 || h%2==0){ return(0); } if(l%2==1 & b%2==1 & h%2==1){ int multi[3]; int lb = l*b; int bh = b*h; int lh = l*h; multi[0] = lb; multi[1...
cc1plus: error: '::main' must return 'int' a.cc: In function 'long long int ans(long long int, long long int, long long int)': a.cc:22:1: warning: control reaches end of non-void function [-Wreturn-type] 22 | } | ^
s667399315
p04005
C++
#include <bits/stdc++.h> using namespace std; #define int long long int ans(int l,int b,int h){ if (l%2==0 || b%2==0 || h%2==0){ return(0); } if(l%2==1 & b%2==1 & h%2==1){ int multi[3]; int lb = l*b; int bh = b*h; int lh = l*h; multi[0] = lb; multi[1] ...
cc1plus: error: '::main' must return 'int' a.cc: In function 'long long int ans(long long int, long long int, long long int)': a.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type] 20 | } | ^
s041859539
p04005
C++
#include <bits/stdc++.h> using namespace std; #define int long long int ans(int l,int b,int h){ if (l%2==0 || b%2==0 || h%2==0){ return(0); } if(l%2==1 & b%2==1 & h%2==1){ int multi[3]; int lb = l*b; int bh = b*h; int lh = l*h; multi[0] = lb; multi[1...
a.cc: In function 'long long int ans(long long int, long long int, long long int)': a.cc:18:27: error: 'k' was not declared in this scope 18 | sort(multi, multi+k); | ^ a.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type] 21 | } | ^
s491967797
p04005
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%2 == 0 || B%2 == 0 || C%2 ==0) { System.out.println(0); return; } System.out.print...
Main.java:14: error: no suitable method found for min(long,long,long) System.out.println(Math.min(Math.min((long) A*B, (long) B*C, (long) C*A))); ^ method Math.min(int,int) is not applicable (actual and formal argument lists differ in length) method Math.min(long,lo...
s317157317
p04005
C++
#include <bits/stdc++.h> #include <algorithm> using namespace std; int main() { long long int a,b,c; cin >> a>>b>>c; long long int d =(a%2)*(b%2)*(c%2)*min(a*b,c*b,a*c); cout << d << endl; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s382779871
p04005
C++
#include <bits/stdc++.h> using namespace std; int a, b, c; int res[3]; int solve() { if (a%2==0 || b%2==0 || c%2==0) return 0; else { res[3] = {a, b, c}; sort (res.begin(), res.end()); return res[0]*res[1]; } int main() { cin >> a >> b >> c; cout << res << endl; }
a.cc: In function 'int solve()': a.cc:8:22: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment 8 | res[3] = {a, b, c}; | ^ a.cc:9:15: error: request for member 'begin' in 'res', which is of non-class type 'int [3]' 9 | sort (res.begin(), res.end()...
s755403506
p04005
C++
#include <iostream> #include <algorithm> using namespace std; #define rep(i,n) for(ll i=0;i<n;i++) int main(){ ll A[3]; int cnt = 0; rep(i,3){ cin >> A[i]; if (A[i] % 2 == 0) cnt++; } sort(A,A+3); //cout << A[0] << endl; if (cnt){ cout << 0 << endl; return 0...
a.cc: In function 'int main()': a.cc:8:5: error: 'll' was not declared in this scope 8 | ll A[3]; | ^~ a.cc:10:9: error: expected ';' before 'i' 10 | rep(i,3){ | ^ a.cc:5:25: note: in definition of macro 'rep' 5 | #define rep(i,n) for(ll i=0;i<n;i++) | ...
s471035641
p04005
C++
#include <bits/stdc++.h> using namespace std; double a , b , c , z; int main() { cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ cout << 0; return 0; } z = a * b * c / max({a , b , c}); cout << z; }
a.cc: In function 'int main()': a.cc:10:15: error: invalid operands of types 'double' and 'int' to binary 'operator%' 10 | if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ | ~ ^ ~ | | | | | int | double a.cc:10:29: error: invalid operand...
s722257813
p04005
C++
#include <bits/stdc++.h> using namespace std; long long a , b , c , z; int main() { cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ cout << 0; return 0; } z = a * b * c / max( a , max(b , c)) cout << z; }
a.cc: In function 'int main()': a.cc:14:45: error: expected ';' before 'cout' 14 | z = a * b * c / max( a , max(b , c)) | ^ | ; 15 | cout << z; | ~~~~
s826535611
p04005
C++
#include <bits/stdc++.h> using namespace std; int a , b , c , x , ans1 = 0 , ans2 = 0; int main() { cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ cout << 0; retutn 0; } x = max(a , max(b , c)) / 2; if(a == max(a , max(b , c))){ ans1 += x * b * c; ans2 += (x+1) * b * c; } else if(...
a.cc: In function 'int main()': a.cc:12:17: error: 'retutn' was not declared in this scope 12 | retutn 0; | ^~~~~~ a.cc:28:28: error: 'abs2' was not declared in this scope; did you mean 'ans2'? 28 | cout << abs(ans1 , abs2); | ^~~~ ...
s324698676
p04005
C++
#inclede<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<a*b*c<<endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inclede; did you mean #include? 1 | #inclede<bits/stdc++.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope 5 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in hea...
s198602716
p04005
C++
#inclede<bits/stdc++.h> using namespace sdt; int main(){ int a,b,c; cin>>a>>b>>c; cout<<a*b*c<<endl; return 0; }
a.cc:1:2: error: invalid preprocessing directive #inclede; did you mean #include? 1 | #inclede<bits/stdc++.h> | ^~~~~~~ | include a.cc:2:17: error: 'sdt' is not a namespace-name 2 | using namespace sdt; | ^~~ a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not decl...
s198856814
p04005
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #define en end() #define pb(a) pu...
a.cc: In function 'int main()': a.cc:226:39: error: expected primary-expression before ')' token 226 | if(a[0]%2==1&&a[1]%2==1&&a[2]%2==1&&) | ^
s600770914
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a % 2 == 0 || b % 2 == 0) || c % 2 == 0); cout << 0 << endl; else if { int ans; ans = min (a*c, min (a*b, b*c)); cout << ans << endl; } }
a.cc: In function 'int main()': a.cc:9:3: error: 'else' without a previous 'if' 9 | else if { | ^~~~ a.cc:9:11: error: expected '(' before '{' token 9 | else if { | ^ | (
s835330560
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a % 2 == 0 || b % 2 == 0) || c % 2 == 0); cout << 0 << endl; if else { int ans; ans = min (a*c, min (a*b, b*c)); cout << ans << endl; } }
a.cc: In function 'int main()': a.cc:9:6: error: expected '(' before 'else' 9 | if else { | ^~~~ | (
s885509223
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a % 2 == 0 || b % 2 == 0) || c % 2 == 0) cout << 0 << endl; if else { int ans; ans = min (a*c, min (a*b, b*c)); cout << ans << endl; } }
a.cc: In function 'int main()': a.cc:9:6: error: expected '(' before 'else' 9 | if else { | ^~~~ | (
s936395810
p04005
C++
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define all(X) (X).begin(), (X).end() #define cmp_all(X) (X).begin(), (X).end(), cmp #define B begin() #define E end() #define sz size() #define skip continue #define ppi pair<pair<int, int>, int> #define pii pair<int, int> ...
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int...
s453724424
p04005
C++
#include<iostream> using namespace std; long long a[10000]; int main(){ cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); cout<<((a[0]&1&a[1]&1&a[2]&1)?a[0]*a[1]:0)<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'sort' was not declared in this scope; did you mean 'short'? 6 | sort(a,a+3); | ^~~~ | short
s524130136
p04005
C++
#include<iostream> #include<algorithm> long long a[3]; int main(){ std::cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); std::cout<<((a[0]&1&a[1]&1&a[2]&1)?a[0]*a[1]:0)<<endl; }
a.cc: In function 'int main()': a.cc:6:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'? 6 | sort(a,a+3); | ^~~~ | std::sort In file included from /usr/include/c++/14/algorithm:86, from a.cc:2: /usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: no...
s047908202
p04005
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<bitset> #include<set> #include<map> #include<stack> #include<queue> #include<deque> #include<list> #include<iomanip> #include<cmath> #include<cstring> using namespace std; #define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #...
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...
s268190538
p04005
C++
#include <iostream> #include <iomanip> #include <algorithm> #include <cstdio> #include <math.h> #include <set> #include <map> #include <queue> #include <string> #include <string.h> #include <bitset> #define REP(i,a,n) for(int i=a;i<=n;++i) #define PER(i,a,n) for(int i=n;i>=a;--i) #define hr putchar(10) #define pb push_...
a.cc:35:1: error: extended character   is not valid in an identifier 35 |   | ^ a.cc:36:1: error: extended character   is not valid in an identifier 36 |   | ^ a.cc:37:1: error: extended character   is not valid in an identifier 37 |   | ^ a.cc:43:1: error: extended character   is not valid i...
s592995144
p04005
C++
#include<bits/stdc++.h> using namespace std; // #define DEBUG // #define TIME /* Learn : - Problem Type : - Source : - */ #pragma GCC optimize ("Ofast") #define sint( a ) int a; qread(a); #define sint2( a, b ) int a,b; qread(a),qread(b); #define sint3( a, b, c ) int a,b,c; qread(a),qread(b),qread(c); #define int1( a )...
a.cc: In function 'void qread(int&)': a.cc:59:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 59 | register char c = getchar(); | ^ a.cc: In function 'int main()': a.cc:111:13: error: cannot bind non-const lvalue reference of type 'int&' to a ...
s877071091
p04005
C++
#include <bits/stdc++.h> const int MOD = 1000000007; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define copy(from, to) copy(from.begin(), from.end(), back_inserter(to)) #define sort(a) sort(a.begin(), a.end()) #define reverse(s) reverse(s.begin(), s.end()) #define p(s) cout << (s) << endl typedef long long ...
a.cc: In function 'int main()': a.cc:58:1: error: expected ';' before '}' token 58 | } | ^
s153137555
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin >> a >> b >> c; cout << min{a*b,b*c,c*a} << endl; }
a.cc: In function 'int main()': a.cc:6:8: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>') 6 | cout << min{a*b,b*c,c*a} << endl; | ~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, ...
s275615078
p04005
C++
#include<bits/stdc++.h> #include<algorithm> using namespace std; int main(){ long long x,y,z; cin>>x >>y >>z; if(x%2==0||y%2==0||z%2==0){ cout<<0<<endl; }else{ cout<<min(x*y,y*z,z*x)<<endl; } return 0; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s795717831
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ long long x,y,z; cin>>x >>y >>z; if(x%2==0||y%2==0||z%2==0){ cout<<0<<endl; }else{ cout<<min(x*y,y*z,z*x)<<endl; } return 0; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s516220509
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ long long x,y,z; cin>>x >>y >>z; if(x%2==0||y%2==0||z%2==0){ cout<<0<<endl; }else{ cout<<x*y*z/max(x,y,z)<<endl; } return 0; }
In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Com...
s348918109
p04005
C++
#include<bits/std++.h> using namespace std; int main(){ long long x,y,z; cin>>x >>y >>z; if(x%2==0||y%2==0||z%2==0){ cout<<0<<endl; }else{ cout<<x*y*z/max(x,y,z)<<endl; } return 0; }
a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s688481038
p04005
C++
include<bits/stdc++.h> using namespace std; long min1(long long a,long long b,long long c){ return min(min(a*b,a*c),b*c); } int main() { long long a,b,c; cin>>a>>b>>c; if(!(a%2)||!(b%2)||!(c%2)) { cout<<0; return 0; } cout<<min1(a,b,c); return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'long int min1(long long int, long long int, long long int)': a.cc:4:20: error: 'min' was not declared in this scope; did you mean 'min1'? 4 | return min(min(a*b,a*c),b*c); | ...
s575432023
p04005
C++
#include<bits/srdc++.h> using namespace std; int main(){ int a,b,c,m;cin>>a>>b>>c; if(a%2||b%2||c%2)cout<<0<<endl; else{ m=min(a,b); m=min(m,c); cout<<a*b*c/m<<endl; } }
a.cc:1:9: fatal error: bits/srdc++.h: No such file or directory 1 | #include<bits/srdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s366392606
p04005
C++
#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <iostream> #include <string> #include <vector> #include <map> #include <set> #include <stack> #include <list> #include <queue> #include <deque> #include <algorithm> #include <numeric> #include <utility> #include <complex> #include <functi...
a.cc: In function 'int main()': a.cc:42:24: error: expected primary-expression before 'return' 42 | cout<<0<<"\n", return 0; | ^~~~~~
s680534810
p04005
C
#include <stdio.h> int main(){ double a,b,c,s=1; scanf("%lf%lf%lf",&a,&b,&c); if(a%2&&b%2&&c%2){ if(a>=b&&a>=c)s=a; else if(b>=a&&b>=c)s=b; else if(c>=a&&c>=b)s=c; }else a=0; printf("%d",(int)((a*b*c)/s)); return 0; }
main.c: In function 'main': main.c:5:7: error: invalid operands to binary % (have 'double' and 'int') 5 | if(a%2&&b%2&&c%2){ | ^ main.c:5:12: error: invalid operands to binary % (have 'double' and 'int') 5 | if(a%2&&b%2&&c%2){ | ^ main.c:5:17: error: invalid operands to binary %...
s174552924
p04005
C++
#include<iostream> #include<algorithm> using namespace std; int main() { long long a,b,c; cin >> a >> b >> c; if(a%2==||b%2==0||c%2==0) { cout << 0 << endl; } else { cout << min({a*b,b*c,c*a}) << endl; } }
a.cc: In function 'int main()': a.cc:7:11: error: expected primary-expression before '||' token 7 | if(a%2==||b%2==0||c%2==0) { | ^~
s669882713
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int main() { vector<int> dim(3); cin >> dim[0] >> dim[1] >> dim[2]; if((dim[0] % 2 == 0) ||(dim[1] % 2 == 0) || (dim[2] % 2 == 0)){ cout << "0" << endl; return 0; } sort(dim.begin(), dim.end()); cout << dim[0] * d...
a.cc: In function 'int main()': a.cc:8:5: error: 'vector' was not declared in this scope 8 | vector<int> dim(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 |...
s112717102
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int main() { vector<int> dim(3); cin >> dim[0] >> dim[1] >> dim[2]; if((dim[0] % 2 == 0) ||(dim[1] % 2 == 0) || (dim[2] % 2 == 0)){ cout << "0" << endl; return 0; } sort(dim.begin(), dim.end()); cout << abs((dim[0...
a.cc: In function 'int main()': a.cc:8:5: error: 'vector' was not declared in this scope 8 | vector<int> dim(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 |...
s996895607
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int main(void){ int a,b,c; cin >> a >> b >> c; if((a * b * c) % 2 == 0) cout << 0 << endl; else cout << min(a * b,b * c,c * a) << 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...
s086320319
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int main(void){ int a,b,c; cin >> a >> b >> c; if((a * b * c) / 2 == 0) cout << 0 << endl; else cout << min(a * b,b * c,c * a) << 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...
s039944367
p04005
C++
#include<bits/stdc++.h> using namespace std; int main () { ll a,b,c,t; cin>>a>>b>>c; if(a%2==0||b%2==0||c%2==0){ cout<<'0'<<endl; } else{ t = min(min(a*b,b*c),c*a); cout<<t<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:4: error: 'll' was not declared in this scope 7 | ll a,b,c,t; | ^~ a.cc:8:8: error: 'a' was not declared in this scope 8 | cin>>a>>b>>c; | ^ a.cc:8:11: error: 'b' was not declared in this scope 8 | cin>>a>>b>>c; | ^ a.cc:8:1...
s924623658
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { int a[3], count = 0; for (int i = 0; i<3; i++) cin >> a[i]; sort (a, a+n); for (int i = 0; i<3; i++) { if (a[i]%2 == 0) count ++; } if (count == 0) cout << min(a*b, min(a*c,b*c)) << endl; else cout << "0" << endl; return 0; }...
a.cc: In function 'int main()': a.cc:7:14: error: 'n' was not declared in this scope 7 | sort (a, a+n); | ^ a.cc:13:19: error: 'b' was not declared in this scope 13 | cout << min(a*b, min(a*c,b*c)) << endl; | ^ a.cc:13:28: error: 'c' was not declared in this scope...