input/code.cpp: In function 'int main(int, char**)':
input/code.cpp:7:39: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
char *str = calloc(1000, sizeof(char));
^
input/code.cpp:10:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < strlen(str); i++){
^
input/code.cpp:13:9: warning: statement has no effect [-Wunused-value]
for(j; j != i; j--)
^
input/code.cpp:8:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", str);
^