Language: C++

=begin
          ,     \    /      ,
         / \    )\__/(     / \
        /   \  (_\  /_)   /   \
   ____/_____\__\@  @/___/_____\____
  |             |\../|              |
  |              \VV/               |
  |        ------hoi-------         |
  |_________________________________|
   |    /\ /      \\       \ /\    |
   |  /   V        ))       V   \  |
   |/     `       //        '     \|
   `              V                '
=end
a, b, c, d = 0, 0, 0, 0
s = gets.chomp
s.each_char { |x| a += 1 if x == 'N'; b += 1 if x == 'S'; c += 1 if x == 'W'; d += 1 if x == 'E'}
if((a > 0 && b == 0) || (b > 0 && a == 0) || (c > 0 && d == 0) || (c == 0 && d > 0))
    puts("No")
else
    puts("Yes")
end

Compiler output:
a.cc:2:17: error: stray '\' in program
    2 |           ,     \    /      ,
      |                 ^
a.cc:3:12: error: stray '\' in program
    3 |          / \    )\__/(     / \
      |            ^
a.cc:3:18: error: stray '\' in program
    3 |          / \    )\__/(     / \
      |                  ^
a.cc:4:13: error: stray '\' in program
    4 |         /   \  (_\  /_)   /   \
      |             ^
a.cc:4:18: error: stray '\' in program
    4 |         /   \  (_\  /_)   /   \
      |                  ^
a.cc:5:14: error: stray '\' in program
    5 |    ____/_____\__\@  @/___/_____\____
      |              ^
a.cc:5:17: error: stray '\' in program
    5 |    ____/_____\__\@  @/___/_____\____
      |                 ^
a.cc:5:18: error: stray '@' in program
    5 |    ____/_____\__\@  @/___/_____\____
      |                  ^
a.cc:5:21: error: stray '@' in program
    5 |    ____/_____\__\@  @/___/_____\____
      |                     ^
a.cc:5:32: error: stray '\' in program
    5 |    ____/_____\__\@  @/___/_____\____
      |                                ^
a.cc:6:18: error: stray '\' in program
    6 |   |             |\../|              |
      |                  ^
a.cc:7:18: error: stray '\' in program
    7 |   |              \VV/               |
      |                  ^
a.cc:10:10: error: stray '\' in program
   10 |    |    /\ /      \\       \ /\    |
      |          ^
a.cc:10:19: error: stray '\' in program
   10 |    |    /\ /      \\       \ /\    |
      |                   ^
a.cc:10:20: error: stray '\' in program
   10 |    |    /\ /      \\       \ /\    |
      |                    ^
a.cc:10:28: error: stray '\' in program
   10 |    |    /\ /      \\       \ /\    |
      |                            ^
a.cc:10:31: error: stray '\' in program
   10 |    |    /\ /      \\       \ /\    |
      |                               ^
a.cc:11:33: error: stray '\' in program
   11 |    |  /   V        ))       V   \  |
      |                                 ^
a.cc:12:11: error: stray '`' in program
   12 |    |/     `       //        '     \|
      |           ^
a.cc:13:4: error: stray '`' in program
   13 |    `              V                '
      |    ^
a.cc:13:36: warning: missing terminating ' character
   13 |    `              V                '
      |                                    ^
a.cc:13:36: error: missing terminating ' character
a.cc:1:1: error: expected unqualified-id before '=' token
    1 | =begin
      | ^
a.cc:18:1: error: expected unqualified-id before 'if'
   18 | if((a > 0 && b == 0) || (b > 0 && a == 0) || (c > 0 && d == 0) || (c == 0 && d > 0))
      | ^~