Language: C++

#include <bits/stdc++.h>
int main(){
  int h1, m1, s, h2, m2;
  cin >> h1 >> m1 >> s >> h2 >> m2;
  (h2-h1)*60+m2-m1-s >> cout >> endl;
}#include <bits/stdc++.h>
using namespace std;
int main(){
  int h1, m1, s, h2, m2;
  cin >> h1 >> m1  >> h2 >> m2>> s;
  cout << (h2-h1)*60+m2-m1-s  << endl ;
}

Compiler output:
a.cc:6:2: error: stray '#' in program
    6 | }#include <bits/stdc++.h>
      |  ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> h1 >> m1 >> s >> h2 >> m2;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   (h2-h1)*60+m2-m1-s >> cout >> endl;
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   (h2-h1)*60+m2-m1-s >> cout >> endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:6:3: error: 'include' does not name a type
    6 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:8:5: error: redefinition of 'int main()'
    8 | int main(){
      |     ^~~~
a.cc:2:5: note: 'int main()' previously defined here
    2 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   cin >> h1 >> m1  >> h2 >> m2>> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << (h2-h1)*60+m2-m1-s  << endl ;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << (h2-h1)*60+m2-m1-s  << endl ;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~