2008-07-29

error: expected unqualified-id before ‘for’

プログラム書いてたら,こんなエラーが・・・

lsh.cpp:144: 警告: unused variable ‘start’
lsh.cpp:144: 警告: unused variable ‘end’
lsh.cpp:145: 警告: unused variable ‘calc_time’
lsh.cpp:163: 警告: unused variable ‘L’
lsh.cpp:164: 警告: unused variable ‘K’
lsh.cpp:165: 警告: unused variable ‘r’
lsh.cpp:166: 警告: unused variable ‘shift_max’
lsh.cpp:167: 警告: unused variable ‘shift_min’
lsh.cpp: At global scope:
lsh.cpp:284: error: expected unqualified-id before ‘for’
lsh.cpp:284: error: expected constructor, destructor, or type conversion before ‘<’ token
lsh.cpp:284: error: expected constructor, destructor, or type conversion before ‘++’ token
lsh.cpp:299: error: expected constructor, destructor, or type conversion before ‘<<’ token
lsh.cpp:302: error: expected constructor, destructor, or type conversion before ‘=’ token
lsh.cpp:305: error: expected unqualified-id before ‘for’
lsh.cpp:305: error: expected constructor, destructor, or type conversion before ‘<’ token
lsh.cpp:305: error: expected constructor, destructor, or type conversion before ‘++’ token

なんぞこれwww
いや笑えねぇよ.時間ないんですけど・・・.
unused variable って思いっきり使ってるんですけど.この変数.

ムム,どうやら{}の位置(数)がおかしかっただけだったようです.
φ(`д´)メモメモ...

0 件のコメント: