Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.cc:21:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        if (f = m_men) 
            ~~^~~~~~~
prog.cc:21:8: note: place parentheses around the assignment to silence this warning
        if (f = m_men) 
              ^
            (        )
prog.cc:21:8: note: use '==' to turn this assignment into an equality comparison
        if (f = m_men) 
              ^
              ==
prog.cc:24:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        else if (f = f_men) 
                 ~~^~~~~~~
prog.cc:24:13: note: place parentheses around the assignment to silence this warning
        else if (f = f_men) 
                   ^
                 (        )
prog.cc:24:13: note: use '==' to turn this assignment into an equality comparison
        else if (f = f_men) 
                   ^
                   ==
2 warnings generated.
Введите имя адресата 
Введите имя приятеля 
Дорогой , видел ли ты  , недавно

введите пол (m или f)
Если увидишь , пожалуйста попроси его перезвонить мне

Exit Code:
0