Re: [問題] 請高手幫忙

看板Fortran作者 (kenshui)時間11年前 (2013/08/25 23:28), 編輯推噓1(104)
留言5則, 4人參與, 最新討論串2/2 (看更多)
小弟不才,雖然有初步把兩行連接的問題照著T大的方式解決了。 但執行檔執行出來依舊還是有錯: --------------------Configuration: AL_best(2) - Win32 Debug-------------------- Compiling Fortran... C:\Documents and Settings\user\桌面\AL_best(2).for C:\Documents and Settings\user\Ra-±\AL_best(2).for(200) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ... 1 1.0D17*(G1(0)+G1(1)*t_e+G1(2)*t_e**2+G1(3)*t_e**3+G1(4)*t_e**4+ --------------------------------------------------------------------------^ C:\Documents and Settings\user\Ra-±\AL_best(2).for(202) : Error: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ... /(G2(0)+G2(1)*t_e+G2(2)*t_e**2+G2(3)*t_e**3+G2(4)*t_e**4+ ----------^ C:\Documents and Settings\user\Ra-±\AL_best(2).for(202) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ... /(G2(0)+G2(1)*t_e+G2(2)*t_e**2+G2(3)*t_e**3+G2(4)*t_e**4+ -------------------------------------------------------------------^ C:\Documents and Settings\user\Ra-±\AL_best(2).for(202) : Error: A scalar variable or an array element is required in this context. /(G2(0)+G2(1)*t_e+G2(2)*t_e**2+G2(3)*t_e**3+G2(4)*t_e**4+ ^ Error executing df.exe. AL_best(2).exe - 4 error(s), 0 warning(s) 麻煩高手解惑了,小弟感激不盡 Q_Q 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.87.246

08/26 15:04, , 1F
這哪招 線上人工智慧DEBUG嗎
08/26 15:04, 1F

08/26 16:07, , 2F
Sorry,我再自己想看看^^"
08/26 16:07, 2F

08/26 22:54, , 3F
看起來都是語法錯誤吧?!
08/26 22:54, 3F

08/27 21:19, , 4F
不是是看到關鍵字!! 桌面
08/27 21:19, 4F

08/28 09:19, , 5F
樓上是指路徑有中文吧XDD
08/28 09:19, 5F
文章代碼(AID): #1I6YAHP2 (Fortran)
討論串 (同標題文章)
文章代碼(AID): #1I6YAHP2 (Fortran)