submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s064723109
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.begin(), a.end()); for (int i = 0; i<3; i++) { if (a[i]%2 == 0) count ++; } if (count == 0) cout << a[0]*a[1] << endl; else cout << "0" << endl; return 0; } ...
a.cc: In function 'int main()': a.cc:7:11: error: request for member 'begin' in 'a', which is of non-class type 'int [3]' 7 | sort (a.begin(), a.end()); | ^~~~~ a.cc:7:22: error: request for member 'end' in 'a', which is of non-class type 'int [3]' 7 | sort (a.begin(), a.end()); | ...
s285279274
p04005
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<lomg> x(3); cin >> x.at(0) >> x.at(1) >> x.at(2); if(x.at(0) % 2 == 0 || x.at(1) % 2 == 0 || x.at(2) % 2 == 0){ cout << 0 << endl; } else{ sort(x.begin(), x.end()); cout << x.at(0) * x.at(1) << endl; } }
a.cc: In function 'int main()': a.cc:5:10: error: 'lomg' was not declared in this scope; did you mean 'long'? 5 | vector<lomg> x(3); | ^~~~ | long a.cc:5:14: error: template argument 1 is invalid 5 | vector<lomg> x(3); | ^ a.cc:5:14: error: template argument ...
s025803564
p04005
C++
#include <bits/stdc++.h> using namespace std; const long long mod = pow(10, 9) + 7; const long long MOD = 998244353; const long long INF = 1LL << 60; const int inf = pow(10, 9) + 7; template <class T> bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;} template <class T> bool chmax(T& a, T b) {if (a ...
a.cc: In function 'int main()': a.cc:21:40: error: expected ';' before 'cout' 21 | else ans = min({A * B, B * C, C * A}) | ^ | ; 22 | 23 | cout << ans << endl; | ~~~~
s578454918
p04005
C++
#include <bits/stdc++.h> using namespace std; const long long mod = pow(10, 9) + 7; const long long MOD = 998244353; const long long INF = 1LL << 60; const int inf = pow(10, 9) + 7; template <class T> bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;} template <class T> bool chmax(T& a, T b) {if (a ...
a.cc: In function 'int main()': a.cc:21:40: error: expected ';' before 'cout' 21 | else ans = min({A * B, B * C, C * A}) | ^ | ; 22 | 23 | cout << ans << endl; | ~~~~
s774026279
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(min(a*b,b*c)a*c)<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:33: error: expected ')' before 'a' 8 | }else cout<<min(min(a*b,b*c)a*c)<<endl; | ~ ^ | ) a.cc:8:20: error: no matching function for call to 'min(const long long int&)' 8 | }else cout<<min(min...
s860666183
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 { cout << min{b * c, c * a, a * b} << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:30: error: expected ')' before 'c' 7 | if(a % 2 == 0 || b % 2 == 0 c % 2 == 0) { | ~ ^~ | ) a.cc:10:10: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and...
s590858985
p04005
C++
#include<iostream> 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{ cout << min(a*b, b*c, c*a) << endl; } }
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...
s345882822
p04005
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; int main() { ll a, b, c; cin >> a >> b >> c; if (a % 2 && b % 2 && c % 2) { cout << min(a * b, b * c, c * a) << endl; } else { cout << 0 << endl; } }
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...
s443294989
p04005
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <cmath> #include <set> 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{ long long d = max(a,max(b,c)); i...
a.cc: In function 'int main()': a.cc:18:9: error: expected '}' before 'else' 18 | else{ | ^~~~ a.cc:16:19: note: to match this '{' 16 | if(c == d){ | ^
s415934769
p04005
C++
#include<iostream> #include<vector> #include<altorithm> using namespace std; int main(void){ vector<int> v(3); int p = 1; for(int i = 0; i < 3; i++){ cin >> v[i]; p *= v[i]; } if(p % 2 == 0) cout << 0 << endl; else{ sort(v.begin(), v.end()); cout << v[0] * v[1] << endl; } return 0; }
a.cc:3:9: fatal error: altorithm: No such file or directory 3 | #include<altorithm> | ^~~~~~~~~~~ compilation terminated.
s405849283
p04005
C++
#include<iostream> #include<vector> using namespace std; int main(void){ vector<int> v(3); int p = 1; for(int i = 0; i < 3; i++){ cin >> v[i]; p *= v[i]; } if(p % 2 == 0) cout << 0 << endl; else{ sort(v.begin(), v.end()); cout << v[0] * v[1] << endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:5: error: 'sort' was not declared in this scope; did you mean 'short'? 15 | sort(v.begin(), v.end()); | ^~~~ | short
s705774827
p04005
C++
#include <iostream> #include <functional> 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; }
a.cc: In function 'int main()': a.cc:8:21: error: no matching function for call to 'min(<brace-enclosed initializer list>)' 8 | else cout << min({A*B, B*C, C*A}) << endl; | ~~~^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/...
s863091857
p04005
C++
#include <iostream> 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; }
a.cc: In function 'int main()': a.cc:7:21: error: no matching function for call to 'min(<brace-enclosed initializer list>)' 7 | else cout << min({A*B, B*C, C*A}) << endl; | ~~~^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/...
s241236773
p04005
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, b, c; cin >> a >> b >> c; ans = a * b * c; ans = min(ans, (a / 2) * b * c); ans = min(ans, a * (b / 2) * c); ans = min(ans, a * b * (c / 2)); ans = a * b * c - ans * 2; cout << ans; return 0; }
a.cc: In function 'int main()': a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'? 10 | ans = a * b * c; | ^~~ | abs
s992316304
p04005
C++
#include<iostream> #include<algorithm> #include<vector> #include<string> #include<map> #include<set> #include<queue> #include<stack> #include<limits> #include<iomanip> #include<cmath> #include<climits> using namespace std; typedef long long ll; typedef pair<int,int> P; const int mod=1e9+7; int main(){ ll a,b,c;...
a.cc: In function 'int main()': a.cc:24:56: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<' 24 | cout << ((a%2)*(b%2)*(c%2)==0?0:min({a*b,b*c,c*a}) << endl; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ a.cc:24:63: error...
s271806340
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; }else{ cout << min(a*b, min(b*c, c*a)); } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:9: note...
s288062741
p04005
C++
#include<bits/stdc++.h> #define all(x) (x).begin(),(x).end() typedef long long ll; #define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i) using namespace std; #define sz(x) ((int)(x).size()) #define ZERO(a) memset(a,0,sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) #define MEMSET(v, h) memset((v), h, sizeof(v))...
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...
s557464425
p04005
C++
#include<bits/stdc++.h> #define all(x) (x).begin(),(x).end() typedef long long ll; #define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i) using namespace std; #define sz(x) ((int)(x).size()) #define ZERO(a) memset(a,0,sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) #define MEMSET(v, h) memset((v), h, sizeof(v))...
a.cc: In function 'int main()': a.cc:25:37: error: 'ans' was not declared in this scope; did you mean 'abs'? 25 | if(a % 2 || b % 2 || c % 2) ans = 0; | ^~~ | abs In file included from /usr/include/c++/14/algorithm:60, ...
s538720342
p04005
C++
#include<bits/stdc++.h> #define all(x) (x).begin(),(x).end() typedef long long ll; #define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i) using namespace std; #define sz(x) ((int)(x).size()) #define ZERO(a) memset(a,0,sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) #define MEMSET(v, h) memset((v), h, sizeof(v))...
a.cc: In function 'int main()': a.cc:31:21: error: 'pat1' was not declared in this scope 31 | cout << min(pat1,pat2,pat3) << endl; | ^~~~ a.cc:31:26: error: 'pat2' was not declared in this scope 31 | cout << min(pat1,pat2,pat3) << endl; | ^~...
s399475037
p04005
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i,n) for(int i=0;i<n;i++) #define why(n,x) int n;while(cin >>n,n!=x) #define iFOR(i,x,n)for(int i=x;i<n;i++) #define unless(flg) if ( !(flg) ) #define read cin<< #define echo cout<< #define fin <<'\n' #define __ <<" "<< #define ___ <<" " #define bash push_back #...
a.cc: In function 'void solve()': a.cc:15:59: error: invalid types 'int[int]' for array subscript 15 | #define cinf(n,x) for(int UNCH=0;UNCH<(n);UNCH++) cin >> x[UNCH]; | ^ a.cc:45:3: note: in expansion of macro 'cinf' 45 | cinf(3,a); | ^~~...
s541235561
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a[3]; cin>>a[0]>>a[1]>>a[2]; if(a[0]%2==0 || a[1]%2==0 || a[2]%2==0){ cour<<0<<endl; return 0; } sort(a,a+3); cout<<a[0]*a[1]; }
a.cc: In function 'int main()': a.cc:8:9: error: 'cour' was not declared in this scope 8 | cour<<0<<endl; | ^~~~
s019146640
p04005
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a[3]; cin>>a[0]>>a[1]>>a[2]; if(a[0]%2==0 || a[1]%2==0 || a[2]%2==0){ cour<<0<<endl; return 0; } sort(a,a+3); reverse(a,a+3); cout<<(a[0]-a[0]/2*2)*a[1]*a[2]; }
a.cc: In function 'int main()': a.cc:8:9: error: 'cour' was not declared in this scope 8 | cour<<0<<endl; | ^~~~
s650860778
p04005
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define Abs(x)((x) < 0 ? (x) * -1 : (x)) #define rep(x, y) for ((x) = 0; (x) < (y); (x)++) #define repin(x, y) for ((x) = 0; (x) <= (y); (x)++) #define nep(x, y) for ((x) = (y) - 1; 0 <= (x); (x)--) #define nepi(x, y...
a.cc: In function 'int main()': a.cc:85:9: error: 'blue' was not declared in this scope 85 | blue = x; | ^~~~ a.cc:86:9: error: 'red' was not declared in this scope; did you mean 'read'? 86 | red = y; | ^~~ | read
s006533846
p04005
C++
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <iomanip> #include <math.h> using namespace std; int main() { vector<double> A(3); cin >> A[0] >> A[1] >> A[2] ; sort(A.begin(), A.end()); if (A[0] % 2 == 0 || A[1] % 2 == 0 || A[2] % 2 == 0) { cout << 0 << endl; } else { ...
a.cc: In function 'int main()': a.cc:14:18: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} and 'int' to binary 'operator%' 14 | if (A[0] % 2 == 0 || A[1] % 2 == 0 || A[2] % 2 == 0) { a.cc:14:35: error: invalid operands of types '__gnu_c...
s145156928
p04005
C++
#include <iostream> #include <vector> using namespace std; int main(){ int s,h; vector<int> x(3); for(int i=0;i<3;i++)cin >> x.at(i); sort(x.begin(),x.end()); s=x.at(0)*x.at(1); h=x.at(2); if(h%2==0)cout << 0 << endl; else cout << s << endl; }
a.cc: In function 'int main()': a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'? 9 | sort(x.begin(),x.end()); | ^~~~ | short
s675247224
p04005
C++
#include <iostream> #include <algorithm> using namespace std; long long int main() { long long int A, B, C; cin >> A >> B >> C; cout << ((A * B * C) % 2) * A * B * C / max({ A, B, C }) << endl; }
a.cc:5:11: error: '::main' must return 'int' 5 | long long int main() { | ^~~
s393498866
p04005
C++
#include<iostream> #include<algorithm> using namespace std; int main(){ long long int a[3]; cin >> a[0] >> a[1]>> a[2]; if(a[0]%2==0||a[1]%2==0||a[2]%2==0){ cout << 0 << endl; } else{ sort(a,a+3); cout << a[0]*a[1] << endl; } }
a.cc: In function 'int main()': a.cc:7:20: error: unable to find numeric literal operator 'operator""\U0000ff3d' 7 | cin >> a[0] >> a[1]>> a[2]; | ^~~ a.cc:7:30: error: expected ']' before ';' token 7 | cin >> a[0] >> a[1]>> a[2]; | ^ | ...
s701223949
p04005
C++
#include <iostream> using namespace std; int main(){ int A, B, C; cin >> A >> B >> C; cout << (A*B*C)/max({A,B,C}) << endl; }
a.cc: In function 'int main()': a.cc:7:22: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 7 | cout << (A*B*C)/max({A,B,C}) << endl; | ~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_cl...
s176869510
p04005
C++
#include <bits/stdc++.h> using namespace std; namespace io { template <typename T> inline void read(T &x) { bool flag = false; char c = getchar(); while ((c < '0' || c > '9') && c != '-') c = getchar(); c == '-' ? flag = true, x = 0 : x = c - '0'; c = getchar(); while (c >= '0' && c <= '9') x =...
a.cc: In function 'int main()': a.cc:23:5: error: 'LL' was not declared in this scope 23 | LL a, b, c; | ^~ a.cc:24:10: error: 'a' was not declared in this scope 24 | read(a); read(b); read(c); | ^ a.cc:24:19: error: 'b' was not declared in this scope 24 | read(a); read(b);...
s480737675
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; return 0; } else { long long dif[3]; dif[0] = a * b; dif[1] = b * c; dif[2] = c * a; sort(dif, dif + 3); cout << dif[0] << endl; return...
a.cc: In function 'int main()': a.cc:7:24: error: lvalue required as left operand of assignment 7 | if (a % 2 == 0 || b % 2 = 0 || c % 2 == 0) { | ~~~~~~~~~~~^~~~~~~~
s197380536
p04005
C++
#include<bits/stdc++.h> using namespace std; int main() { cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) cout << 0; else cout << min (min (a*b, a*c), b*c); return 0; }
a.cc: In function 'int main()': a.cc:5:12: error: 'a' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:17: error: 'b' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:22: error: 'c' was not declared in this scope 5 | cin >>...
s681875234
p04005
C++
#include<bits//stdc++.h> #define int long long using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int d=max({a,b,c}),e=min({a,b,c}); int f=a+b+c-d-e; if(d%2==1&&e%2==1&&f%2==1){ cout<<e*f<<endl; } else{ cout<<0<<endl; } return 0; }
cc1plus: error: '::main' must return 'int'
s852490542
p04005
C++
#include <bits/stdc++.h> using namespace std long long a,b,c; int main() {cin>>a>>b>>c; if(a%2==0||b%2==0||c%2==0) {cout<<0; return 0; } cout<<min(min(a*b,a*c),b*c); return 0; }
a.cc:2:20: error: expected ';' before 'long' 2 | using namespace std | ^ | ; 3 | long long a,b,c; | ~~~~
s324138208
p04005
C++
v#include <bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; i++) #define repr(i, n) for(int i = n;i >= 0;i--) #define for1(i, m, n) for(int i = m;i < n;i++) #define ll long long #define endl '\n' using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); ll int a, b, c; cin >> a >> b >...
a.cc:1:2: error: stray '#' in program 1 | v#include <bits/stdc++.h> | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:12:9: error: 'cin' was not declared in this scope 12 | cin.tie(0); | ^~~ a.cc:13:9: error...
s135269330
p04005
C++
#include<bits/stdc++.h> #define lli long long int #define MOD 1000000007 #define FOR(i,n) for(int i=0;i<(int)N;i++) #define ALL(x) (x).begin(),(x).end() using namespace std; inline int getint(){ int n; scanf("%d",&n); return n; } inline vector<int> getints(int n){ vector<int> a(n); for(int i=0;i<n...
a.cc: In function 'int main()': a.cc:40:24: error: conversion from 'vector<int>' to non-scalar type 'vector<long long int>' requested 40 | vector<lli> a=getints(3); | ~~~~~~~^~~
s085253808
p04005
C++
#include <bits/stdc++.h> #define re register #define max(a,b) ((a)>(b)?(a):(b)) #define min(a,b) ((a)<(b)?(a):(b)) using namespace std; #define long long ll; #define ms(arr) memset(arr, 0, sizeof(arr)) const int inf = 0x3f3f3f3f; ll a,b,c; int main() { cin>>a>>b>>c; if(a%2==0||b%2==0||c%2==0) { cout<<0...
a.cc:9:1: error: 'll' does not name a type 9 | ll a,b,c; | ^~ a.cc: In function 'int main()': a.cc:12:10: error: 'a' was not declared in this scope 12 | cin>>a>>b>>c; | ^ a.cc:12:13: error: 'b' was not declared in this scope 12 | cin>>a>>b>>c; | ^ a.cc:12:16: err...
s450981355
p04005
C++
#include <bits/stdc++.h> using namespace std; long long a,b,c; int main() { cin>>a>>b>>c; cout<<min(a*b*(c&1),min(a*c*(b&1),b*c*(a&1)); exit(0); }
a.cc: In function 'int main()': a.cc:8:47: error: expected ')' before ';' token 8 | cout<<min(a*b*(c&1),min(a*c*(b&1),b*c*(a&1)); | ~ ^ | )
s021271022
p04005
C++
#include <algorithm> #include <iostream> using namespace std; int main(){ long a, b, c, ans; cin >> a >> b >> c; if ( a % 2 == 0 || a % 2 == 0 || c % 2 == 0){ ans = 0; }else if ( a >= b && a >= c ){ ans = b * c; }else if ( b >= a && b >= c ){ ans = a * c; }else[ ans = a * b; } cout...
a.cc: In function 'int main()': a.cc:16:16: error: expected ',' before ';' token 16 | ans = a * b; | ^ | , a.cc:16:16: error: expected identifier before ';' token a.cc:16:16: error: expected ']' before ';' token 16 | ans = a * b; | ^ | ...
s049950920
p04005
C++
#include<cstdio> #include<algprithm> using namespace std; int main(){ long a,b,c,ans; scanf("%ld %ld %ld",&a,&b,&c); if(a%2&&b%2&&c%2){ ans=min(a*b,a*c); ans=min(ans,b*c); } else ans=0; printf("%d\n",ans); }
a.cc:2:9: fatal error: algprithm: No such file or directory 2 | #include<algprithm> | ^~~~~~~~~~~ compilation terminated.
s183597280
p04005
Java
import java.util.*; import java.util.Arrays; class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long[] t = new int[3]; t[0] =Long.parseLong(sc.next()); t[1] =Long.parseLong(sc.next()); t[2] =Long.parseLong(sc.next()); Arrays.sort(...
Main.java:9: error: incompatible types: int[] cannot be converted to long[] long[] t = new int[3]; ^ 1 error
s785520628
p04005
C++
#include<iostream> #include<algorithm> #include<stdint> using namespace std; int main() { int64_t A[3]; cin >> A[0] >> A[1] >> A[2]; sort(A, A+3); if ((A[0] & A[1] & A[2] & 1) > 0) cout << A[0] * A[1]; else cout << 0; return 0; } /* 31536000のコメント解説欄 ここテンプレで用意してるから、A問題とかだとこの先空欄の危険あり また、コンテスト後に https://31536000.ha...
a.cc:3:9: fatal error: stdint: No such file or directory 3 | #include<stdint> | ^~~~~~~~ compilation terminated.
s992921903
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 cout << min({a*b,b*c,c*a}) <<endl; }
a.cc: In function 'int main()': a.cc:6:8: error: expected primary-expression before '.' token 6 | cin >.a>>b>>c; | ^
s482512463
p04005
C++
#include <algorithm> #include <iostream> using namespace std; #define pi 3.14159265 int main() { long long ans = 0, i = 0, j = 0, k = 0, l = 0; long long a, b, c; cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) ans = 0; else ans=min(a*b,b*c,c*a);; cout << ans << endl; return 0; }
In file included from /usr/include/c++/14/algorithm:60, 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; _Compare = long long int]': a.cc:16:10: required from here 16 | ...
s847591565
p04005
C++
#include <algorithm> #include <iostream> using namespace std; #define pi 3.14159265 int main() { long long ans = 0, i = 0, j = 0, k = 0, l = 0; long long a, b, c; cin >> a >> b >> c; if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) ans = 0; else ans=ans= min(a*b,b*c,c*a);; cout << ans << endl; return 0; }
In file included from /usr/include/c++/14/algorithm:60, 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; _Compare = long long int]': a.cc:16:15: required from here 16 | ...
s794026914
p04005
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); Array.Sor...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. using System; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected using System.Collections.Generic; ^ Main.java:3: error: class, interface, enum, or reco...
s504003636
p04005
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); Array...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. using System; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected using System.Collections.Generic; ^ Main.java:3: error: class, interface, enum, or record expected usin...
s693135314
p04005
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] A = new int[3]; A[0] = int.Parse(Console.ReadLine()); A[1] = in...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. using System; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected using System.Collections.Generic; ^ Main.java:3: error: class, interface, enum, or record expected usin...
s718939471
p04005
C++
#include<cstdio> int a[3],s; int main(){ int t; scanf("%d%d%d",&a[0],&a[1],&a[2]); for(int i=0;i<=2;i++) if(a[i]%2==0) s++;a for(int i=1;i<=2;i++) for(int j=i;j<=2;j++) if(a[i]>a[j]){ t=a[i]; a[i]=a[j]; a[j]=t; } if(s==2||s==3) printf("0"); else printf("%d",a[0]*a[1]); }
a.cc: In function 'int main()': a.cc:8:30: error: expected ';' before 'for' 8 | s++;a | ^ | ; 9 | for(int i=1;i<=2;i++) | ~~~ a.cc:9:21: error: 'i' was not declared in this scop...
s264445610
p04005
C++
#include<cstdio> int a[3],s; int main(){ int t; scanf("%d%d%d",&a[0],&a[1],&a[2]); for(int i=0;i<=2;i++) if(a[i]%2==0) s++;a for(int i=1;i<=2;i++) for(int j=i;j<=2;j++) if(a[i]>a[j]){ t=a[i]; a[i]=a[j]; a[j]=t; } if(s==2||s==3) printf("0"); else printf("%d",a[0]*a[1]); }
a.cc: In function 'int main()': a.cc:8:30: error: expected ';' before 'for' 8 | s++;a | ^ | ; 9 | for(int i=1;i<=2;i++) | ~~~ a.cc:9:21: error: 'i' was not declared in this scop...
s060787409
p04005
C++
#include <iostream> using namespace std; vector<int> v(3); int main(){ ios_base::sync_with_stdio(false); cin >> v[0] >> v[1] >> v[2]; sort(v.begin(), v.end()); if(v[2] & 1){ cout << v[0] * 1LL * v[1] << endl; } else{ cout << 0 << endl; } return 0; }
a.cc:5:1: error: 'vector' does not name a type 5 | vector<int> v(3); | ^~~~~~ a.cc: In function 'int main()': a.cc:9:16: error: 'v' was not declared in this scope 9 | cin >> v[0] >> v[1] >> v[2]; | ^ a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'...
s589897579
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) printf("0"); else { long long ans=a*b; ans=min(ans,a*c); ans=min(ans,b*c); } printf("%lld",ans); }
a.cc: In function 'int main()': a.cc:15:23: error: 'ans' was not declared in this scope; did you mean 'abs'? 15 | printf("%lld",ans); | ^~~ | abs
s474396379
p04005
C++
#include <bits/stdc++.h> #define ll long long 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, 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 = long long int; _Com...
s944163311
p04005
C++
// sandeep_007 #include <bits/stdc++.h> using namespace std; #define PI acos(-1) #define mod 1000000007 #define ll long long #define nitro std::ios_base::sync_with_stdio (false); cin.tie(NULL) #define pb push_back #define mp make_pair #define vi vector < ll > #define mod 1000000007 bool sortbysec(const pair<ll...
a.cc: In function 'int main()': a.cc:79:64: error: no matching function for call to 'max(short int&, int)' 79 | if (x1>1&&x3<x1) dp[x1-1][x2][y1][y2] = max(dp[x1-1][x2][y1][y2],tmp+X(x1-1,max(y1,y3),min(y2,y4))); | ~~~^~~~~~~~~~~~~...
s447352726
p04005
C++
#include <iostream> using namespace std; int main() { ll a, b, c; cin >> a >> b >> c; ll da = (a - a / 2) * b * c - a / 2 * b * c; ll db = (b - b / 2) * a * c - b / 2 * a * c; ll dc = (c - c / 2) * a * b - c / 2 * a * b; cout << min(da, min(db, dc)) << endl; return 0; }
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; | ...
s121440791
p04005
C++
#include <bits/stdc++.h> using namespace std; #define NDEBUG #ifdef DEBUG #include "../cout11.h" #undef NDEBUG #endif #include <cassert> typedef long long ll; typedef unsigned long long ull; typedef pair<int,int> ii; typedef pair<ll,ll> llll; typedef pair<double,double> dd; typedef vector<int> vi; typedef vector<vec...
a.cc: In function 'll solve(ll, ll, ll)': a.cc:66:13: error: 'd' was not declared in this scope 66 | return -d; | ^
s084302888
p04005
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; #define FOR(i,a,b) for(int (i)=(a);(i)<=(b);(i)++) #define rep(i,n) FOR(i,0,n-1) #define int long long int s[200005]; signed main(){ int a,b,c;cin>>a>>b>>c; if(a&0 || b&0 || c&0) cout <, 0 <<endl; else { int an...
a.cc: In function 'int main()': a.cc:16:37: error: expected primary-expression before ',' token 16 | if(a&0 || b&0 || c&0) cout <, 0 <<endl; | ^ a.cc:16:41: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 1...
s701793023
p04005
C++
#include <iostream> #include <algorithm> #include <cmath> #include <limits> #include <vector> #include <cstdio> #include <bits/stdc++.h> #include <set> #include <stdio.h> using namespace std; using ll =long long; int main (void) { ll s[3]; cin >> s[0] >> s[1] >> s[2]; if (s[0]*s[1]*s[2]%2==0){ cout << 0; ...
a.cc: In function 'int main()': a.cc:21:3: error: 'ans' was not declared in this scope; did you mean 'abs'? 21 | ans=s[0]*s[1]; | ^~~ | abs
s312869176
p04005
C++
#include <iostream> #include <climits> #include <stack> #include <queue> #include <string> #include <random> #include <utility> #include <cmath> #include <set> #include <map> #include <math.h> #include <string.h> #include <iomanip> #include <stdlib.h> #include <algorithm> #include <vector> using namespace std; typede...
a.cc:38:4: error: redefinition of 'll c' 38 | ll c=0; | ^ a.cc:36:8: note: 'll c' previously declared here 36 | ll a,b,c; | ^
s072923952
p04005
C++
#include <bits/stdc++.h> #define F(i,j,k) for(int i=(j);i<=(k);++i) using namespace std; const int N=100005; struct V{int head;}v[N]; struct E{int u,v,next;}e[N*2]; int n,m,ecnt=1,degree[N]; inline void add(int x,int y){ e[++ecnt].u=x,e[ecnt].v=y; e[ecnt].next=v[x].head,v[x].head=ecnt; e[++ecnt].u=y,e[ecnt].v=x; e[...
a.cc: In function 'void dfs(int, int, int)': a.cc:19:9: error: reference to 'size' is ambiguous 19 | size[x]+=fl,vis[x]=1; | ^~~~ In file included from /usr/include/c++/14/string:53, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/...
s121701843
p04005
C++
#include <bits/stdc++.h> using namespace std; long long INF=1e15; signed main(){ ios::sync_with_stdio(false); cin.tie(0); int a,b,c; cin>>a>>b>>c; long long ans=abs((a/2)*b*c-(a-a/2)*b*c); ans=min(ans,abs((a*(b/2)*c)-a*(b-b/2)*c)); ans=min(ans,abs((a*b*(c/2))-a*b*(c-c/2))); cout<<a...
a.cc: In function 'int main()': a.cc:15:12: error: no matching function for call to 'min(long long int&, int)' 15 | ans=min(ans,abs((a*(b/2)*c)-a*(b-b/2)*c)); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-li...
s023674128
p04005
C++
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <algorithm> #include <queue> using namespace std; typedef long long LL; const int Maxn = 1e5 + 5; const int inf = 1 << 30; const LL Inf = 1LL << 60; int main () { int a,b,c; scanf("%d%d%d",&a,&b,&c); LL s; s = a*b*c; if (s%2 == 0) pr...
a.cc: In function 'int main()': a.cc:23:32: error: no matching function for call to 'min(LL&, int)' 23 | d = min(d,a*c); | ~~~^~~~~~~ In file included from /usr/include/c++/14/bits/specfun.h:43, from /usr/include/c++/14/cmath:3906, ...
s828885951
p04005
Java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long[] a = new long[3]; a[0] = sc.nextLong(); a[1] = sc.nextLong(); a[2] = sc.nextLong(); sc.close(); if(a[0]%2==1 && a[1]%2==1 && a[2]%2==1){ Arrays.s...
Main.java:12: error: cannot find symbol Arrays.sort(a); ^ symbol: variable Arrays location: class Main 1 error
s119788423
p04005
Java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long[] a = new long a; a[0] = sc.nextLong(); a[1] = sc.nextLong(); a[2] = sc.nextLong(); sc.close(); if(a[0]%2==1 && a[1]%2==1 && a[2]%2==1){ Arrays.so...
Main.java:6: error: '[' expected long[] a = new long a; ^ Main.java:6: error: ']' expected long[] a = new long a; ^ 2 errors
s262522195
p04005
C++
use std::io; fn next_vec() -> Vec<i64> { let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); buf.split_whitespace().map(|n| n.parse().unwrap()).collect() } fn main() { let v = next_vec(); let a = v[0]; let b = v[1]; let c = v[2]; let ans = if a % 2 != 0 && b % 2 != ...
a.cc:1:1: error: 'use' does not name a type 1 | use std::io; | ^~~ a.cc:3:1: error: 'fn' does not name a type 3 | fn next_vec() -> Vec<i64> { | ^~ a.cc:9:1: error: 'fn' does not name a type 9 | fn main() { | ^~
s722668669
p04005
C++
#include <iostream> #include <vector> #include <algorithm> #include <set> using namespace std; int main(void) { long a=0; long b=0; long c=0; long res = numeric_limits<long>::max(); cin >> a >> b >> c; bool has_one_even = a%2 == 0 || b % 2 == 0 || c % 2 == 0; if(has_one_even) { res = 0; }else { res = m...
a.cc: In function 'int main()': a.cc:13:20: error: 'numeric_limits' was not declared in this scope 13 | long res = numeric_limits<long>::max(); | ^~~~~~~~~~~~~~ a.cc:13:35: error: expected primary-expression before 'long' 13 | long res = numeric_limits<long>::max(); ...
s874261763
p04005
C++
#include <bits/stdc++.h> using namespace std; char a[503][503],b[503][503]; int main(){ init(); int h,w; scanf("%d%d",&h,&w); for(int i=1;i<=h;i++) scanf("%s",a[i]+1),strcpy(b[i]+1,a[i]+1); for(int i=1;i<=h;i++) a[i][1]='#',b[i][w]='#'; for(int i=1;i<=w;i++) a[h][i]='#',b[1][i]='#'; a[1][1]='.',b[h][w]='.'...
a.cc: In function 'int main()': a.cc:5:9: error: 'init' was not declared in this scope; did you mean 'int'? 5 | init(); | ^~~~ | int
s411188521
p04005
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, n) for(int i = 0; i < (n); i++) #define FORR(x, arr) for(auto& x:arr) #define ITR(x, c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define MEM(a, x) memset(a, x, sizeof(a)) #define ALL(a) a.begin(), a.end() #define UNIQUE(a) a.erase(unique(ALL(a)), a...
a.cc: In function 'int main(int, const char**)': a.cc:21:42: error: expected initializer before '*=' token 21 | if (i != j) ll x *= a[j]; | ^~
s774179885
p04005
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, n) for(int i = 0; i < (n); i++) #define FORR(x, arr) for(auto& x:arr) #define ITR(x, c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define MEM(a, x) memset(a, x, sizeof(a)) #define ALL(a) a.begin(), a.end() #define UNIQUE(a) a.erase(unique(ALL(a)), a...
a.cc: In function 'int main(int, const char**)': a.cc:17:18: warning: left shift count >= width of type [-Wshift-count-overflow] 17 | ll mi = 1<<60; | ~^~~~ a.cc:21:42: error: expected initializer before '*=' token 21 | if (i != j) ll x *= a[j]; | ...
s813478870
p04005
C++
// ConsoleApplication1.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include <iostream> #include <memory> using namespace std; void main() { int x, y, z; cin >> x; cin >> y; cin >> z; if(x >= y && x >= z) { if (x % 2 == 0) { cout << 0; return; } cout << y * z; }else if( y >= x && y >= z) { if (y ...
a.cc:8:1: error: '::main' must return 'int' 8 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:20:25: error: return-statement with no value, in function returning 'int' [-fpermissive] 20 | return; | ^~~~~~ a.cc:28:25: error: return-statement wi...
s090933716
p04005
C++
#include <bits/stdc++.h> #define ll long long #define INF 1000000005 #define MOD 1000000007 #define EPS 1e-10 #define rep(i,n) for(int i=0;i<(int)(n);++i) #define rrep(i,n) for(int i=(int)(n)-1;i>=0;--i) #define srep(i,s,t) for(int i=(int)(s);i<(int)(t);++i) #define each(a,b) for(auto (a): (b)) #define all(v) (v).begin...
a.cc: In function 'int main()': a.cc:39:20: error: expected primary-expression before '||' token 39 | 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, ...
s917720681
p04005
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int ans=min(b*c,min(a*c,a*b); if(a%2==0||b%2==0||c%2==0) cout<<ans<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:31: error: expected ')' before ';' token 7 | int ans=min(b*c,min(a*c,a*b); | ~ ^ | )
s703495681
p04005
C++
import Control.Applicative import Data.List import System.IO main = do [a,b,c] <- sort <$> map read <$> words <$> getLine :: IO [Int] putStrLn $ show $ a * b * abs (c `mod` 2)
a.cc:7:38: error: stray '`' in program 7 | putStrLn $ show $ a * b * abs (c `mod` 2) | ^ a.cc:7:42: error: stray '`' in program 7 | putStrLn $ show $ a * b * abs (c `mod` 2) | ^ a.cc:1:1: error: 'import' does not n...
s657033063
p04005
Java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(),b = scanner.nextInt(),c = scanner.nextInt(); if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0){ System.out.println("0"); }else{ long ans = 0; ans = Math.min(a*c,a*c); ans = Mat...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s210162337
p04005
C++
#include<cstring> #include<cstdlib> #include<cstdio> #include<cmath> #include<iostream> #define N 101 using namespace std; int n,m,f[N][N][N][N],sx,sy,h[N][N],l[N][N]; char s[N][N]; int main() { cin<<n<<m; for(int i=1;i<=n;i++) { scanf("%s",s[i]+1); for(int j=1;j<=m;j++) if(s[i][j]=='E') sx=i,sy=j; } for(int i...
a.cc: In function 'int main()': a.cc:12:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 12 | cin<<n<<m; | ~~~^~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:12...
s594619786
p04005
C++
#include<cstdio> #include <iostream> #include<algorithm> #include<string> #include<cstring> #include<queue> #include<vector> #include<functional> #include<cmath> #include<map> #include<stack> #include<cstdlib> #include<list> #include<set> #include<numeric> #define MOD 1000000007 using namespace std; typedef long long...
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...
s062690452
p04005
C++
#include<iostream> #include<cstdio> #include<algorithm> #include<string> #define int long long using namespace std; signed main() { int a, b, c; cin >> a >> b >> c; int MAX = LLONG_MAX / 3; if ((a & 1) == 0 || (b & 1) == 0)MAX = 0; else { MAX = min(MAX, min(a, b)*c); } if ((b & 1) == 0 || (c & 1) == 0)MAX = 0...
a.cc: In function 'int main()': a.cc:11:19: error: 'LLONG_MAX' was not declared in this scope 11 | int MAX = LLONG_MAX / 3; | ^~~~~~~~~ a.cc:4:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 3 | #include<algorithm> +...
s347760875
p04005
C++
use std::cmp; fn main(){ let mut sc = Scanner::new(); while let Ok(a) = sc.wrapped::<i64>() { let b:i64 = sc.next(); let c:i64 = sc.next(); let mut res = 1000000000i64 * 1000000000; res = cmp::min(res, c%2 * (a*b)); res = cmp::min(res, a%2 * (b*c)); res = cmp::mi...
a.cc:18:2: error: invalid preprocessing directive #[ 18 | #[allow(dead_code)] | ^ a.cc:24:2: error: invalid preprocessing directive #[ 24 | #[allow(dead_code)] | ^ a.cc:1:1: error: 'use' does not name a type 1 | use std::cmp; | ^~~ a.cc:3:1: error: 'fn' does not name a type 3 | fn main...
s012174161
p04005
C
#include<stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a* b* c% 2) { if(a>= b) { if(a>= c) printf("%d\n", b* c); else// a< c printf("%d\n", a* b); } else// a< b { if(b>= c) printf("%d\n", a* c); else b< c printf("%d\n", a* b); } } else printf("0\n"...
main.c: In function 'main': main.c:22:34: error: expected ';' before 'printf' 22 | else b< c | ^ | ; 23 | printf("%d\n", a* b); | ~~~~~~
s105339015
p04005
C++
#include<cstdio> #include<cstring> using namespace std; int n,m; char a[505][505]; char b[505][505]; char s[505][505]; int main() { //freopen("input","r",stdin); freopen("output","w",stdout); scanf("%d %d\n",&n,&m); for(int i=1;i<=n;i++) gets(s[i]+1); for(int i=1;i<=n;i++) for(int j=2;j...
a.cc: In function 'int main()': a.cc:13:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 13 | gets(s[i]+1); | ^~~~ | getw
s146373511
p04005
C++
#include <iostream> #include <set> using namespace std; int min(a, b){ if(a > b){ return b; }else{ return a; } } 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 ans = min(a*b, min(b*c, c*a)) cout << ans << endl; }
a.cc:5:9: error: 'a' was not declared in this scope 5 | int min(a, b){ | ^ a.cc:5:12: error: 'b' was not declared in this scope 5 | int min(a, b){ | ^ a.cc:5:13: error: expression list treated as compound expression in initializer [-fpermissive] 5 | int min(a, b){ | ...
s235141723
p04005
C
#include<stdio.h> int main(void){ int num1,num2,num3,num4,num5,num6,num7; scanf("%d",&num1); scanf("%d",&num2); scanf("%d",&num3); num4=num1*num2*num3; num5=num1*num2; num6=num2*num3; num7=num1*num3; if(num4%2=0) { printf("0\n"); } else if(num5>=num6&&num5>=num7) { printf("%d",num5); }...
main.c: In function 'main': main.c:11:12: error: lvalue required as left operand of assignment 11 | if(num4%2=0) | ^
s911948400
p04005
C
#include<stdio.h> int main(void){ int num1,num2,num3,num4,num5,num6,num7; scanf("%d",&num1); scanf("%d",&num2); scanf("%d",&num3); num4=num1*num2*num3; num5=num1*num2; num6=num2*num3; num7=num1*num3; if(num4%2=0) { printf("0\n"); } else if(num5>=num6&&num5>=num7) { printf("%d",num5); }...
main.c: In function 'main': main.c:11:12: error: lvalue required as left operand of assignment 11 | if(num4%2=0) | ^
s169716581
p04005
C
#include<stdio.h> int main(void){ int num1,num2,num3,num4,num5,num6,num7; scanf("%d",&num1); scanf("%d",&num2); scanf("%d",&num3); num4=num1*num2*num3; num5=num1*num2; num6=num2*num3; num7=num1*num3; if(num4%2=0) { printf("0\n"); } else if(num5>=num6&&num5>=num7) { printf("%d",num5); }...
main.c: In function 'main': main.c:11:12: error: lvalue required as left operand of assignment 11 | if(num4%2=0) | ^
s672462855
p04005
C
#include<stdio.h> int main(void){ int num1,num2,num3,num4,num5,num6,num7; scanf("%d",&num1); scanf("%d",&num2); scanf("%d",&num3); num4=num1*num2*num3; num5=num1*num2; num6=num2*num3; num7=num1*num3; if(num4%2=0) { printf("0\n"); } else if(num5>=num6&&num5>=num7) { printf("%d",num5); }...
main.c: In function 'main': main.c:11:12: error: lvalue required as left operand of assignment 11 | if(num4%2=0) | ^
s014887718
p04005
C
#include<stdio.h> int main(void){ int num1,num2,num3,num4num5,num6,num7; scanf("%d",&num1); scanf("%d",&num2); scanf("%d",&num3); num4=num1*num2*num3; num5=num1*num2; num6=num2*num3; num7=num1*num3; if(num4%2=0) { printf("0\n"); } else if(num5>=num6&&num5>=num7) { printf("%d",num5); } ...
main.c: In function 'main': main.c:7:3: error: 'num4' undeclared (first use in this function); did you mean 'num7'? 7 | num4=num1*num2*num3; | ^~~~ | num7 main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in main.c:8:3: error: 'num5' undeclared (first ...
s339489399
p04005
C++
cube = list(map(int,input().split())) if len([x for x in cube if x % 2]) == 3: print(int(cube[0] * cube[1] * cube[2] / min(cube))) else: print(0)
a.cc:1:1: error: 'cube' does not name a type 1 | cube = list(map(int,input().split())) | ^~~~
s235208744
p04005
C++
#include<stdio.h> int main(){ _int64 a, b, c; int d, e, f; scanf("%lld %lld %lld", &a, &b, &c); d = a % 2; e = b % 2; f = c % 2; if (d*e*f == 0)printf("%d", 0); else{ if (a > b){ if (c > a)printf("%lld", a*b); else printf("%lld", b*c); } else{ if (c > b)printf("%lld", a*b); else printf("%lld",...
a.cc: In function 'int main()': a.cc:3:9: error: '_int64' was not declared in this scope 3 | _int64 a, b, c; | ^~~~~~ a.cc:5:34: error: 'a' was not declared in this scope 5 | scanf("%lld %lld %lld", &a, &b, &c); | ^ a.cc:5:38: error: 'b' was n...
s423349734
p04005
C++
#include<iostream> using namespace std; int main() { long long A, B, C, m; cin >> A >> B >> C; if (A >= B && A >= C) { if (A % 2 == 0) { cout << 0 << endl; } else { cout << B*C << endl; } } else if (B >= A && B >= C) { if (B % 2 == 0) { cout << 0 << endl; } else { cout << A*C << endl; }...
a.cc:29:10: error: extended character   is not valid in an identifier 29 | } } | ^ a.cc: In function 'int main()': a.cc:29:10: error: '\U00003000' was not declared in this scope 29 | } } | ^~
s398054909
p04005
C++
#include<iostream> using namespace std; int main() { long long A, B, C, m; cin >> A >> B >> C; if (A >= B && A >= C) { if (A % 2 == 0) { cout << 0 << endl; } else { cout << B*C << endl; } } else if (B >= A && B >= C) { if (B % 2 == 0) { cout << 0 << endl; } else { cout << A*C << endl; }...
a.cc: In function 'int main()': a.cc:29:10: error: expected '}' at end of input 29 | } | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s267057483
p04005
C++
#include<iostream> using namespace std; int main() { long long A, B, C, m; cin >> A >> B >> C; if (A >= B && A >= C) { if (A % 2 == 0) { cout << 0 << endl; } else { cout << B*C << endl; } }else if (B >= A && B >= C) { if (B % 2 == 0) { cout << 0 << endl; } else { cout << A*C << endl; } ...
a.cc: In function 'int main()': a.cc:26:18: error: expected '}' at end of input 26 | } | ^ a.cc:20:37: note: to match this '{' 20 | }else if (C >= B && C >= A) { | ^ a.cc:26:18: error: expected '}' at end of input 26 | ...
s884187512
p04005
C++
#include <iostream> #include <algorithm> using namespace std; int main() { long long x, y, z; int red, blue; cin >> x >> y >> z; long long minrect = min(x*y, y*z); minrect = min(minrect, z*x); long long maxside = max(x, y); maxside = max(maxside, z); long long blue = minrect * ((maxsi...
a.cc: In function 'int main()': a.cc:15:15: error: conflicting declaration 'long long int blue' 15 | long long blue = minrect * ((maxside / 2) + (maxside % 2)); | ^~~~ a.cc:7:14: note: previous declaration as 'int blue' 7 | int red, blue; | ^~~~ a.cc:16:15: error: c...
s789219047
p04005
Java
import java.util.Scanner; public class Main { static final Scanner in = new Scanner(System.in); private static int[] input(){ int a[] = new int[3]; for(int i=0; i<len; i++) { a[i] = in.nextInt(); } return a; } private static int solve(int a[]) { if (a[0]%2 == 0 || a[1]%2==0) { return 0; ...
Main.java:9: error: cannot find symbol for(int i=0; i<len; i++) ^ symbol: variable len location: class Main 1 error
s460043095
p04005
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << min({a*b, b*c, c*a}) << endl; }
a.cc: In function 'int main()': a.cc:7:16: error: no matching function for call to 'min(<brace-enclosed initializer list>)' 7 | cout << min({a*b, b*c, c*a}) << endl; | ~~~^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/local...
s021413857
p04005
C++
test
a.cc:1:1: error: 'test' does not name a type 1 | test | ^~~~
s691293405
p04005
C++
test
a.cc:1:1: error: 'test' does not name a type 1 | test | ^~~~
s426949017
p04005
Java
#include <iostream> #include <string> using namespace std; int main() { double a, b, c; cin >> a >> b >> c; double result = 0; long max = a; if (max < b) { max = b; } if (max < c) { max = c; } if (max % 2 == 0) { cout << 0; } else { //cout << max << "\n"; result = (a*b*c / max); cout << (...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <string> ^ Main.java:7: error: not a statement cin >> a >> b >> c; ^ Main.java:22: error: not a statement cout << 0; ^ Main.java:27: error: not a statement cout << (int)result;...
s022445772
p04005
C++
#include <iostream> using namespace std; void main() { int a, b, c; cin >> a >> b >> c; int result = a*b*c; int max = a; if (max < b) { max = b; } if (max < c) { max = c; } result = result*(max % 2) / max; cout << result; }
a.cc:4:1: error: '::main' must return 'int' 4 | void main() { | ^~~~
s277646777
p04005
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main() { long long a, b, c; cin >> a >> b >> c; if (c%2 == 1) { cout << min(a*b, b*c, a*c) << end; } else { cout << 0 << endl; } }
a.cc: In function 'int main()': a.cc:13:32: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>') 13 | cout << min(a*b, b*c, a*c) << end; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file in...
s548619659
p04005
C
#include <stdio.h> int min(int a, int b, int c){ int max, mid, min; if(a <= b){ if(b <= c){ max = c; mid = b; min = a; }else{ max = b; if(c >= a){ mid = c; min = a; }else{ mid = a; min = c; } } }else{ if(b >= c){ max = a; mid = b; min = c; }else{ min = b; ...
main.c: In function 'calDiff': main.c:41:24: error: 'diff' undeclared (first use in this function) 41 | return diff = min(a, b, c); | ^~~~ main.c:41:24: note: each undeclared identifier is reported only once for each function it appears in
s364660431
p04005
C
#include <stdio.h> int calDiff(int a, int b, int c){ if(a % 2 == 1 && b % 2 == 1 && c % 2 == 1){ return diff = min(a, b, c); }else{ return 0; } } int min(int a, int b, int c){ int max, mid, min; if(a <= b){ if(b <= c){ max = c; mid = b; min = a; }else{ max = b; if(c >= a){ mid = c; ...
main.c: In function 'calDiff': main.c:5:24: error: 'diff' undeclared (first use in this function) 5 | return diff = min(a, b, c); | ^~~~ main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in main.c:5:31: error: implicit decla...