fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void upper(char* str){
  5. while(*str) {
  6. if(*str > 'a' && *str < 'z'){
  7. *str += 32;
  8. }
  9. }
  10. }
  11.  
  12. int main() {
  13. // your code goes here\
  14. char sdtr[];
  15. upper(sdtr);
  16. cout << str ;
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 16056KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15:8: error: ‘sdtr’ was not declared in this scope
  upper(sdtr);
        ^~~~
prog.cpp:16:10: error: ‘str’ was not declared in this scope
  cout << str ;
          ^~~
stdout
Standard output is empty