Run id: 148854
Main.cc:3:19: warning: extra tokens at end of #include directive
#include using namespace std;
^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
cin >> C;
^
Main.cc:6:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:9:33: error: 'set' was not declared in this scope
set uniqueNumbers;
^
Main.cc:9:33: note: suggested alternative:
In file included from /usr/include/c++/5/set:61:0,
from Main.cc:2:
/usr/include/c++/5/bits/stl_set.h:90:11: note: 'std::set'
class set
^
Main.cc:9:37: error: expected primary-expression before 'int'
set uniqueNumbers;
^
Main.cc:13:37: error: 'uniqueNumbers' was not declared in this scope
uniqueNumbers.insert(num);
^
Main.cc:15:37: error: 'uniqueNumbers' was not declared in this scope
if (uniqueNumbers.size() < 2) {
^
Main.cc:16:37: error: 'cout' was not declared in this scope
cout << "NO" << endl;
^
Main.cc:16:37: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
Main.cc:16:53: error: 'endl' was not declared in this scope
cout << "NO" << endl;
^
Main.cc:16:53: note: suggested alternative:
In file included from /usr/include/c++/5/iostream:39:0,
from Main.cc:1:
/usr/include/c++/5/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^