CSES - HIIT Open 2019 - Results
Submission details
Task:Bit Strings
Sender:Team Lewd
Submission time:2019-05-25 14:13:52 +0300
Language:C++
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:13:12: error: expected '}' at end of input
  cout<<ratk;
            ^

Code

#include <iostream>
using namespace std;
int main(){
	int n;
	int k;
	cin>>n;
	cin>>k;
	int ratk=n;
	for(int i=0; i<n-k; i++){
		ratk*=2;
		ratk= ratk%1000000007;
	}
	cout<<ratk;