Submission #574824


Source Code Expand

#include <cstdio>
#include <algorithm>
using namespace std;
int main() {
	int A,D;
	scanf("%d %d",&A,&D);
	printf("%d\n",max((A+1)*D,A*(D+1));
}

Submission Info

Submission Time
Task A - ゲーム
User Div9851
Language C++ (GCC 4.9.2)
Score 0
Code Size 151 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:36: error: expected ‘)’ before ‘;’ token
  printf("%d\n",max((A+1)*D,A*(D+1));
                                    ^
./Main.cpp:6:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&A,&D);
                      ^