#include <iostream>using namespace std; void upper(char* str){ while(*str) { if(*str > 'a' && *str < 'z'){ *str += 32; } }} int main() { // your code goes here\ char sdtr[]; upper(sdtr); cout << str ; return 0;}
Standard input is empty
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 ; ^~~
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!