datenlord / training

8 stars 0 forks source link

log-D202312030 #3

Open qiuanran opened 9 months ago

qiuanran commented 9 months ago

仓库地址:https://github.com/qiuanran/DatenTraning

qiuanran commented 8 months ago

12th Jan

Personally,strongly recommend:no necessary to watch these first four lessons with basic assembly knowledge(a bit of a waste of time)

Tomorrow,I gonna finish lab1

qiuanran commented 8 months ago

12th Jan

myrfy001 commented 8 months ago

Good question! Have you ever checkout the KNPS #32 as the compiler told you? And it's best practise to give init value to every variable.

The compiler maybe not smart enough to figure out that every element in res has been assigned a value.

Also, you can clone and compile others' code and see if it will resport the same issue. If it does, you can open issues in there repos or submit this problem in our QQ group.

qiuanran commented 8 months ago

Good question! Have you ever checkout the KNPS #32 as the compiler told you? And it's best practise to give init value to every variable.

The compiler maybe not smart enough to figure out that every element in res has been assigned a value.

Also, you can clone and compile others' code and see if it will resport the same issue. If it does, you can open issues in there repos or submit this problem in our QQ group.

Yeah, I checkout the KNPS #32 and I can just find a PDF which point this situation out, and it turns out the code I wrote at first is a typical syntax wrong and and right way is to give the initial value at the time of definition.

And the strange things is: I pulled some code that also doesn't declare an initial value, and it's also reporting an error as before to me locally.Maybe it due to the different version of BSC.

qiuanran commented 8 months ago

13th Jan

qiuanran commented 8 months ago

14th Jan

Until after all the finals are over this Thursday, then it's labs