fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. bool set_target_sockets[10] = { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 };
  5.  
  6. int main() {
  7.  
  8.  
  9. for (int i = 0; i <= 9; i++)
  10. {
  11. if (set_target_sockets[i] == true)
  12. {
  13. cout << "Test" << "\n";
  14. }
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Test