Submission #855102

Source Code Expand

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, k, x, y;
	scanf("%d %d %d %d", &n, &k, &x, &y);
	int ans = k * x;
	ans = min(n, k) * x
	return 0;

Submission Info

Submission Time
Task A - Tak and Hotels (ABC Edit)
User opel_howard
Language C++14 (GCC 5.4.1)
Score 0
Code Size 179 Byte

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:10:2: error: expected ‘;’ before ‘return’
  return 0;
./Main.cpp:6:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d %d", &n, &k, &x, &y);