fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Find vacancy on the 15th floor of the third building
  6. int guests[3][15][19];
  7. int room;
  8. int vacancy = 0;
  9.  
  10. for(room = 0; room < 20; room++)
  11. if(guests[2][14][room] == 0)
  12. vacancy++;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty