Submission #864694


Source Code Expand

#include <bits/stdc++.h>

#define all(x) (x).begin(), (x).end()
#define li long long
#define itn int

using namespace std;

inline int nxt(){
	int n;
	scanf("%d", &n);
	return n;
}

int main(){

	vector<int> a(3);
	for (int i = 0; i < 3; i++)
		a[i] = nxt();
	sort(all(a[i]));
	if (a[0] % 2 == 0 || a[1] % 2 == 0 || a[2] % 2 == 0){
		puts("0");
	} else {
		cout << 1ll * a[0] * a[1] << "\n";
	}

	return 0;
}

Submission Info

Submission Time
Task A - Divide a Cuboid
User Golovanov399
Language C++14 (GCC 5.4.1)
Score 0
Code Size 437 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:20:13: error: ‘i’ was not declared in this scope
  sort(all(a[i]));
             ^
./Main.cpp:3:17: note: in definition of macro ‘all’
 #define all(x) (x).begin(), (x).end()
                 ^
./Main.cpp: In function ‘int nxt()’:
./Main.cpp:11:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
                 ^