War and i are initialized after main (){.
Rzecz is a name of variable, variable that is typed by the program user. Lets say its a fruit name. Is that wrong approach ?
So the lesson here is to always initialise your variables. I like to do at the same time as declaration - 1 variable per line so you can comment them if necessary. Use meaningful names for variables.
int war,kalor,i; at line 11 dosent mean they are initialisated?
@TheIdeasMan
Yes ill add loops later on, this program does nothing atm. Problem I have is not with compilation itself but program crushing. ( When runing it happens after line 22)
Can someone try to compile this and run? maybye its the problem with my computer.
int war,kalor,i; at line 11 dosent mean they are initialisated?
No, they're not initialised. You haven't supplied any initial values for these.
Edit: On line 17, you assign a value to war before trying to use it, so that's OK. On line 22, you do the same for kalor. But on line 18, you're attempting to use i before initialising it.