Can't compile file: program.c:1:25: fatal error: bits/stdc++.h: No such file or directory compilation terminated

i solved a problem on code forces and this is my code

  1. #include <bits/stdc++.h>
  2. using namespace std;
  • int main() {
  1. double a,b,c;
  2. cin>>a,b,c;
  3. double delta= bb - 4a*c;
  4. if(a,delta!=0)
  5. {
  6. double mot=(-b + (double)sqrt(delta))/(2*a);
  7. double sach=(-b - (double)sqrt(delta))/(2*a);
  8. if(mot>sach)
  9. {
  10. cout <<(-b + (double)sqrt(delta))/(2a)<<(-b - (double)sqrt(delta))/(2a);
  11. }
  12. else
  13. {
  14. cout << (-b - (double)sqrt(delta))/(2a) << (-b + (double)sqrt(delta))/(2a);
  15. }
  16. }
  17. else
  18. {
  19. cout<<"nhap a khac 0 ";
  20. }
  21. return 0;
  22. }
    but my code is not run and report this
    Can't compile file: program.c:1:25: fatal error: bits/stdc++.h: No such file or directory compilation terminated.

This isn't really an Arduino question, is it?

Arduino has neither cin, nor cout without some effort.

Please remember to use code tags when posting code.

That's going to bite you later.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.