Atcoder compiler can not compile my C++ code.

Revision en1, by imtinanjibon, 2020-05-31 09:12:47

I am trying to solve a problem in Atcoder using C++ lang. But compiler can not execute my code. But code runs in my pc. How can i fix that?

#include<bits/stdc++.h> using namespace std; int main() { ** int k;** ** string s;** **** ** cin>>k>>s;** ** if(s.size()<=k)** ** {** ** cout<<s<<endl;** ** }** **** ** else** ** {** ** for(int i=k;i<s.size();i++)** ** {** ** s[i]='.';** ** }** **** ** cout<<s<<endl;** ** }** }

Tags #atcoder, compilation error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English imtinanjibon 2020-05-31 09:12:47 583 Initial revision (published)