fork download
  1. string F(int n){
  2.  
  3. string Ans;
  4.  
  5. while(n){
  6.  
  7. int y = n%26;
  8.  
  9. Ans += (char)(y+'A'-1);
  10.  
  11. n /= 26;
  12. }
  13.  
  14. reverse(Ans.begin(),Ans.end());
  15.  
  16. return Ans;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘string’ does not name a type
 string F(int n){
 ^~~~~~
stdout
Standard output is empty