How I can enable a warnings about types transformation

unsigned int size;
for(int i = 0; i < size; i++){
but "size" has an "unsigned int" type! How to be? is there a warning? How to switch on

You are viewing a single comment. View All

@ArtyomKey So, final answer

I tried your code.
To get a warning you need to use the compilation flag -Wall
Unfortunately, you cannot set a compiler option on replit (this is planned here and asked here

There is an other option (which I call the magic option) :
Open the command palette (right-click > command palette), type open shell, and then you can compile yourself with g++ -Wall main.cpp

Hope this will help !