fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4. system("shutdown now");
  5.  
  6. return 0;
  7. }
Success #stdin #stdout #stderr 0.01s 5308KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
sh: 1: shutdown: not found