fork download
  1. //#include <iostream>
  2. //#include <math.h>
  3. using namespace std;
  4. int n,ile,t1,doba=86400, m, pudelka;
  5. int main()
  6. {
  7. cin>>ile;
  8. for (int i=0;i<ile;i++)
  9. {
  10. cin>>n>>m;
  11. for (int j=0;j<n;j++)
  12. {
  13. int suma=0;
  14. cin>>t1;
  15. suma=doba/t1;
  16. double floor (suma);
  17. pudelka=suma/m;
  18. double ceil(pudelka);
  19.  
  20.  
  21. }
  22. pudelka+=pudelka;
  23. cout<<pudelka<<endl;
  24. pudelka=0;
  25. }
  26. return 0;
  27. }
Compilation error #stdin compilation error #stdout 0s 3472KB
stdin
2
2 10
3600
1800
3 356
123
32999
10101
compilation info
prog.cpp: In function 'int main()':
prog.cpp:7:5: error: 'cin' was not declared in this scope
     cin>>ile;
     ^
prog.cpp:23:5: error: 'cout' was not declared in this scope
     cout<<pudelka<<endl;
     ^
prog.cpp:23:20: error: 'endl' was not declared in this scope
     cout<<pudelka<<endl;
                    ^
stdout
Standard output is empty