Advertisement
Guest User

Untitled

a guest
Jun 13th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. src/source_io.f90(159): error #5082: Syntax error, found ',' when expecting one of: =
  2. function integer  calculate(a,b, oper  ) result(res)
  3. -------------------------------^
  4. src/source_io.f90(159): error #5132: Syntax error, found IDENTIFIER 'RESULT' when expecting one of: <END-OF-STATEMENT> ; BIND
  5. function integer  calculate(a,b, oper  ) result(res)
  6. -----------------------------------------^
  7. src/source_io.f90(48): error #6451: A dummy argument name is required in this context.   [STR]
  8.         character(*), intent(inout) :: str
  9. ---------------------------------------^
  10. src/source_io.f90(63): error #6463: This is not a derived type name.   [STACK_OP]
  11.          type(stack_op),  pointer,   intent(inout):: stack_o
  12. --------------^
  13. src/source_io.f90(64): error #6463: This is not a derived type name.   [STACK_NUM]
  14.          type(stack_num), pointer, intent(inout):: numbers
  15. --------------^
  16. src/source_io.f90(115): error #6418: This name has already been assigned a data type.   [ELEM]
  17.       type(operators), pointer  :: elem
  18. -----------------------------------^
  19. src/source_io.f90(115): error #6227: This symbol has multiple POINTER statement/attribute declarations which is not allowed.   [ELEM]
  20.       type(operators), pointer  :: elem
  21. -----------------------------------^
  22. src/source_io.f90(159): error #7548: Keyword RESULT expected.   [CALCULATE]
  23. function integer  calculate(a,b, oper  ) result(res)
  24. ------------------^
  25. src/source_io.f90(160): error #6451: A dummy argument name is required in this context.   [A]
  26.         integer, intent(in) :: a,b
  27. -------------------------------^
  28. src/source_io.f90(160): error #6451: A dummy argument name is required in this context.   [B]
  29.         integer, intent(in) :: a,b
  30. ---------------------------------^
  31. src/source_io.f90(161): error #6451: A dummy argument name is required in this context.   [OPER]
  32.         character(*), intent(in) :: oper
  33. ------------------------------------^
  34. src/source_io.f90(35): error #6366: The shapes of the array expressions do not conform.   [OP]
  35.       op =['+','-','*','/', '(',')']
  36. ------^
  37. src/source_io.f90(37): error #6361: An array-valued argument is required in this context.   [SIZE]
  38.        do concurrent (i = 1:Size(op))
  39. ---------------------------------^
  40. src/source_io.f90(38): error #6410: This name has not been declared as an array or a function.   [OP]
  41.            if(op(i) == ch) then
  42. --------------^
  43. src/source_io.f90(38): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.   [OP]
  44.            if(op(i) == ch) then
  45. --------------^
  46. src/source_io.f90(40): error #8431: A RETURN statement shall not appear within a DO CONCURRENT construct.
  47.                return  
  48. ---------------^
  49. src/source_io.f90(32): error #8238: A colon may be used as a type parameter value only in the declaration of an entity or component that has the POINTER or ALLOCATABLE attribute.   [OP]
  50.       character(:) :: op
  51. ----------------------^
  52. src/source_io.f90(53): error #6404: This name does not have a type, and must have an explicit type.   [IO]
  53.              read(in, "(a)", iostat=IO) str
  54. ------------------------------------^
  55. src/source_io.f90(53): error #7838: A scalar default-integer variable is required in this context.   [IO]
  56.              read(in, "(a)", iostat=IO) str
  57. ------------------------------------^
  58. src/source_io.f90(46): error #6288: A CHARACTER function name must not be declared with an asterisk type-param-value (i.e., (LEN=*)) if the function is a module function.   [READ_STR]
  59.   function Read_str(InputFile) result (str)
  60. -----------^
  61. src/source_io.f90(69): error #6404: This name does not have a type, and must have an explicit type.   [STACK_O]
  62.                    call addOperator(str(1:1),stack_o,numbers)
  63. ---------------------------------------------^
  64. src/source_io.f90(69): error #6478: A type-name must not be used as a variable.   [NUMBERS]
  65.                    call addOperator(str(1:1),stack_o,numbers)
  66. -----------------------------------------------------^
  67. src/source_io.f90(69): error #6633: The type of the actual argument differs from the type of the dummy argument.   [NUMBERS]
  68.                    call addOperator(str(1:1),stack_o,numbers)
  69. -----------------------------------------------------^
  70. src/source_io.f90(69): error #7496: A non-pointer actual argument shall have a TARGET attribute when associated with a pointer dummy argument.   [STACK_O]
  71.                    call addOperator(str(1:1),stack_o,numbers)
  72. ---------------------------------------------^
  73. src/source_io.f90(69): error #7496: A non-pointer actual argument shall have a TARGET attribute when associated with a pointer dummy argument.   [NUMBERS]
  74.                    call addOperator(str(1:1),stack_o,numbers)
  75. -----------------------------------------------------^
  76. src/source_io.f90(71): error #6404: This name does not have a type, and must have an explicit type.   [I]
  77.                    do i=1, size(str)
  78. ----------------------^
  79. src/source_io.f90(71): error #6063: An INTEGER or REAL data type is required in this context.   [I]
  80.                    do i=1, size(str)
  81. ----------------------^
  82. src/source_io.f90(71): error #6361: An array-valued argument is required in this context.   [SIZE]
  83.                    do i=1, size(str)
  84. --------------------------------^
  85. src/source_io.f90(75): error #6410: This name has not been declared as an array or a function.   [TMP]
  86.                         tmp(i) = str(i:i)
  87. ------------------------^
  88. src/source_io.f90(75): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.   [STR]
  89.                         tmp(i) = str(i:i)
  90. ---------------------------------^
  91. src/source_io.f90(239): catastrophic error: Too many errors, exiting
  92. compilation aborted for src/source_io.f90 (code 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement