fork download
  1. main(){
  2. char *arr = (char *)malloc(sizeof(char) * 1000005);
  3. char *res = (char *)malloc(sizeof(char) * 1000005);
  4. int i = 0;
  5. while(1){
  6. arr[i++] = getchar();
  7. if(arr[i-1] == '\n') break;
  8. res[i-1] = arr[i-1] - 32;
  9. }
  10. for(int k=0; k<i; k++) printf("%c", res[k]);
  11. }
  12.  
Runtime error #stdin #stdout 0.02s 4456KB
stdin
alert
stdout
Standard output is empty