fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. map<int,int> mp;
  6. // your code goes here
  7. vector<int> arr(100);
  8. for(int i=0;i<100;i++){
  9. cin>>arr[i];
  10. mp[arr[i]]++;
  11. }
  12. for(auto x:mp){
  13. if(x.second==0){
  14. cout<<x.first<<endl;
  15. }
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5284KB
stdin
12 15 9 1 71 77 81 29 70 19 11 83 56 2 57 53 68 99 82 100 22 10 51 40 34 98 80 38 39 89 94 4 26 64 45 8 90 24 93 33 21 7 49 88 5 28 55 67 65 50 32 58 6 37 46 42 20 44 41 3 78 76 73 16 31 85 91 54 60 47 97 43 84 17 35 69 13 30 61 79 72 48 23 66 52 27 62 87 63 18 75 96 14 86 95 74 25 59 36
stdout
Standard output is empty