1) Cambiame iostream.h por iostream (como corresponde)
2) Evitá conio como la plaga.
3) Siempre posteá la salida del compilador. Ejemplo:
% clang++ code.cxx
In file included from code.cxx:1:
In file included from /usr/include/c++/4.2/backward/iostream.h:31:
/usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++
standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
[-W#warnings]
#warning This file includes at least one deprecated or antiquated header. \
^
code.cxx:5:5: error: C++ requires a type specifier for all declarations
main()
^~~~
code.cxx:16:115: error: expected ')'
j = ((d!=7&&t=='d') ? (h*Td) : (d==7&&t=='d') ? (h*(200+Td)) : (d!=7&&t=='n') ? (h*Tn) : (h*(300+Tn)); )
^
code.cxx:16:18: note: to match this '('
j = ((d!=7&&t=='d') ? (h*Td) : (d==7&&t=='d') ? (h*(200+Td)) : (d!=7&&t=='n') ? (h*Tn) : (h*(300+Tn)); )
^
code.cxx:16:117: error: expected expression
j = ((d!=7&&t=='d') ? (h*Td) : (d==7&&t=='d') ? (h*(200+Td)) : (d!=7&&t=='n') ? (h*Tn) : (h*(300+Tn)); )
^
1 warning and 3 errors generated.
4) No abusar el "using namespace", usar "using" o mejor usarlo en un ámbito local ... para algo están los namespaces, piensen un poco // en este caso se perdona, es un código de un ejercicio chiquitito.
5) No anides operadores ternarios de esa manera tan horrenda ...expandí de esta manera:
(condition) ? (if_true) : (if_false)
if (condition)
if_true;
else
if_false;
// [etc]
Saludos.