fork download
  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<ctype.h>
  4. int main()
  5. {
  6. int isupper(int c);
  7. char string[100];
  8. fgets(string,100,stdin);
  9. int index=0;
  10. for(int i=0;i<strlen(string);i++)
  11. {
  12. if(isupper(string))
  13. {
  14. printf("%s",string);}
  15. }return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
AsA
compilation info
prog.cpp:12:12: error: cannot initialize a parameter of type 'int' with an lvalue of type 'char [100]'
if(isupper(string))
           ^~~~~~
prog.cpp:6:17: note: passing argument to parameter 'c' here
int isupper(int c);
                ^
1 error generated.
stdout
Standard output is empty