fork download
  1. #include <vector>
  2.  
  3. struct Eye
  4. {
  5. int size;
  6. explicit Eye(int requestedSize) : size(requestedSize) {}
  7.  
  8. template<typename T>
  9. operator std::vector<T>() const { std::vector<T> ma; ma.push_back(1); return ma; }
  10. };
  11.  
  12. std::vector<int> v = Eye(10);
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty