fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. class RelationClassifier
  5. {
  6. public: string isBijection(vector <int> domain, vector <int> range)
  7. {
  8. for(int i = 0; i < domain.size(); i++)
  9. for(int j = i+1; j < domain.size(); j++)
  10. if(domain[i] == domain[j] || range[i] == range[j])
  11. return "Not";
  12. return "Bijection";
  13. }
  14. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i586-linux-gnu/5/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty