fork download
  1. #include <stdio.h>
  2.  
  3. #define SIZE(arr) (sizeof (arr) / sizeof (*arr))
  4.  
  5. int main(void)
  6. {
  7. int arr[] = {
  8. 1, 1, 2, 3, 2, 2, 4, 5, 6, 2
  9. };
  10. int count_iter = 0;
  11. for (int i = 0; i < SIZE(arr); ++count_iter, ++i)
  12. {
  13. int j;
  14. for (j = 0; j < SIZE(arr); ++count_iter, ++j)
  15. if (arr[i] == arr[j] && i != j)
  16. break;
  17. if (j == SIZE(arr))
  18. printf("%d\n", arr[i]);
  19. }
  20. printf("Count_itet: %d\n", count_iter);
  21. }
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
3
4
5
6
Count_itet: 61