Why does my c++ program not work?
wtf I hate C++ now
TAKBIR
>>62021753
Because scanf doesn't work with UTF8 input
Also, why are you printing the address of X in the first printf?
>>62021753
for debugging purposes, which country are you trying to blow up, ahmed?
It's Arabic so you need to write your code right-to-left
>>62021753
>no %d in printf
ahmed you should stick to (((clocks)))
You need to smear some bacon on your keyboard before the code compiles properly.
It throws an error if it detects baconless keystrokes.
>>62021766
ALLAHAKBAR
>>62021753
>Not including stlib
wew lad
>>62021766
ALLAH AKBAR
Nice clock, Ahmed.
>>62021753
1. you should at least translate these arabic to english so everyone knows what you are trying to do
2. it might be %d not %i in that scanf
3. also passing arguments to printf when it does not expect to
>>62021753
i don't know, but -Wall -Werror probably will. there's a reason they exist.
>>62021766
ALOHA
>>62021753
Why are you not using iostream?
If you are going to use C's printf you should include <cstdio>
>>62021753
>x = x - 1
>>62021753
Allah Hackbar
>>62021807
solid kek
>>62021753
Because you are trying to write code in terrorist.
>>62022080
OP is a troll, the Arabic language used there is broken and obviously was brought from google translate.
t. an ay-rab
>>62021753
I dont know x++ but you instantiated x as null and then tried too incrament this null value. Set int x = 0
>>62023617
Nevermind i didnt see the scanner.
>>62023590
I would actually move to arab but I fear false allegations might take my head/hand off
>>62023675
depends on the country and your nationality, if you are Murican or European then you have naught to fear, if you are a pajeet then moving to the middle east is practically making yourself a slave. North African countries are pretty chill about everyone though.
>>62021753
Because it's shit.
أنت لا تعرف حتى كتابة العربية بدون أخطاء. زبي أنت وخراك.
>>62021753
I know this is a troll but the serious answer would be you're using the wrong kind of string literals http://en.cppreference.com/w/cpp/language/string_literal