/in/foo.cc:8:4: error: stray '#' in program
c #include <iostream>
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
cin >> n;
^~~
/in/foo.cc:8:5: error: expected ';' before 'include'
c #include <iostream>
^~~~~~~
/in/foo.cc:10:20: warning: statement has no effect [-Wunused-value]
using namespace std;
^
/in/foo.cc:12:1: error: expected primary-expression before '=' token
= n % 10;
^
/in/foo.cc:15:3: error: 'cout' was not declared in this scope
cout << "Yes";
^~~~
/in/foo.cc:19:3: error: 'cout' was not declared in this scope
cout << "NO";
^~~~