/in/countElements.cpp:18:49: warning: multi-character character constant [-Wmultichar]
cout << char representation of i << ': '<<number[i] <<endl;
^~~~
/in/countElements.cpp: In function 'void countElements(const string&)':
/in/countElements.cpp:16:26: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++)
^
/in/countElements.cpp:17:13: error: 'number' was not declared in this scope
if (number[i]!=0)
^~~~~~
/in/countElements.cpp:17:13: note: suggested alternative: 'numbers'
if (number[i]!=0)
^~~~~~
numbers
/in/countElements.cpp:18:21: error: expected primary-expression before 'char'
cout << char representation of i << ': '<<number[i] <<endl;
^~~~
/in/countElements.cpp:7:9: warning: unused variable 'numbers' [-Wunused-variable]
int numbers[127+1];
^~~~~~~
/in/countElements.cpp:5:39: warning: unused parameter 'str' [-Wunused-parameter]
void countElements(const std::string& str)
^~~
/in/countElements.cpp: In function 'int main()':
/in/countElements.cpp:24:19: error: expected primary-expression before 'const'
countElements(const std::vector<int>& nums);
^~~~~