Submission #1689113


Source Code Expand

#include<iostream>
using namespace std;
int main(){
	int a,h,b;
	cin>>a>>h>>b;
	cout<<(a+b)*h/w<<endl;
	return 0;
}

Submission Info

Submission Time
Task A - Trapezoids
User kanu
Language C++14 (GCC 5.4.1)
Score 0
Code Size 122 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:6:16: error: ‘w’ was not declared in this scope
  cout<<(a+b)*h/w<<endl;
                ^