This is what I get when compiling, using the gear icon top right of your code, with all the warnings turned on.
Make sure you compile with the highest level of warnings.
3:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wpedantic]
In function 'int main()': 8:13: error: uninitialized const 'i' [-fpermissive]
8:16: error: uninitialized const 'j' [-fpermissive]
11:24: warning: writing into constant object (argument 2) [-Wformat=]
11:24: warning: writing into constant object (argument 3) [-Wformat=]
13:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'unsigned int*' [-Wformat=]
13:24: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'unsigned int*' [-Wformat=]
9:10: warning: unused variable 'n' [-Wunused-variable]
Some things that help avoiding these:
Declare and initialise 1 variable per line;
When using scanf, make use of it's return value - to see that it worked.
Avoid magic numbers like 36 or 32 in your code, make them a const variable instead, and use that variable name.