'bits/stdc++.h' file not found

Revision en4, by guagua0407, 2022-07-06 15:42:03

Hi, I'm a mac user. Recently I tried to run code on terminal, but this error appeared.

ans.cpp:1:10: fatal error: 'bits/stdc++.h' file not found

include <bits/stdc++.h>

^~~~~~~~~~~~~~~

1 error generated.

I then searched for solutions and found out that installing gcc with homebrew would work, so I installed gcc.

But it still showed the same error, Can anyone help me find out why?

Thank you

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English guagua0407 2022-07-06 15:42:03 165
en3 English guagua0407 2022-07-06 15:38:57 32 Tiny change: 'hank you\n' -> 'hank you\n\n![ ](https://imgur.com/a/RCx1hcU)\n'
en2 English guagua0407 2022-07-06 15:35:18 43 Tiny change: 'ppeared.\n![ ](https://imgur.com/a/RCx1hcU)\nI then s' -> 'ppeared.\n\n\nI then s'
en1 English guagua0407 2022-07-06 15:33:22 345 Initial revision (published)