Atcoder compiler can not compile my C++ code.

Правка en1, от 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;** ** }** }

Теги #atcoder, compilation error

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский imtinanjibon 2020-05-31 09:12:47 583 Initial revision (published)