Problem waterbottles
User Whatturtle
Submission Time 2024-07-31 16:19:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles.cpp: In function ‘int main()’:
waterbottles.cpp:2:57: error: ‘ios’ has not been declared
2 | int main(){std::cin.tie(nullptr);std::cout.tie(nullptr);ios::sync_with_stdio(0);long long h,w,k, sum = 0;std::cin>>h>>w>>k;for(long long i{0}; i<h*w; i++){long long a;std::cin>>a;sum += a;}std::cout<<sum - (w-1)*k - (h-1)*k - (w-1)*(h-1)*2*k;}
| ^~~