以上代码,诸位觉得错了多少个地方?本人眼拙,我看出 7 个。。
1
jasonyang9 2018-11-05 15:00:10 +08:00
```
crapmi.c: In function ‘ main ’: crapmi.c:6:2: error: stray ‘\303 ’ in program int p=m×1000+n; ^ crapmi.c:6:2: error: stray ‘\227 ’ in program crapmi.c:6:11: error: expected ‘,’ or ‘;’ before numeric constant int p=m×1000+n; ^ crapmi.c:7:2: error: unknown type name ‘ string ’ string s=小米笔记本 Air 13.3" i5/8GB 版; ^ crapmi.c:7:2: error: stray ‘\345 ’ in program crapmi.c:7:2: error: stray ‘\260 ’ in program crapmi.c:7:2: error: stray ‘\217 ’ in program crapmi.c:7:2: error: stray ‘\347 ’ in program crapmi.c:7:2: error: stray ‘\261 ’ in program crapmi.c:7:2: error: stray ‘\263 ’ in program crapmi.c:7:2: error: stray ‘\347 ’ in program crapmi.c:7:2: error: stray ‘\254 ’ in program crapmi.c:7:2: error: stray ‘\224 ’ in program crapmi.c:7:2: error: stray ‘\350 ’ in program crapmi.c:7:2: error: stray ‘\256 ’ in program crapmi.c:7:2: error: stray ‘\260 ’ in program crapmi.c:7:2: error: stray ‘\346 ’ in program crapmi.c:7:2: error: stray ‘\234 ’ in program crapmi.c:7:2: error: stray ‘\254 ’ in program crapmi.c:7:26: error: ‘ Air ’ undeclared (first use in this function) string s=小米笔记本 Air 13.3" i5/8GB 版; ^ crapmi.c:7:26: note: each undeclared identifier is reported only once for each function it appears in crapmi.c:7:30: error: expected ‘,’ or ‘;’ before numeric constant string s=小米笔记本 Air 13.3" i5/8GB 版; ^ crapmi.c:7:34: warning: missing terminating " character [enabled by default] string s=小米笔记本 Air 13.3" i5/8GB 版; ^ crapmi.c:7:30: error: missing terminating " character string s=小米笔记本 Air 13.3" i5/8GB 版; ^ crapmi.c:7:9: warning: unused variable ‘ s ’ [-Wunused-variable] string s=小米笔记本 Air 13.3" i5/8GB 版; ^ crapmi.c:6:6: warning: unused variable ‘ p ’ [-Wunused-variable] int p=m×1000+n; ^ crapmi.c:5:18: warning: unused variable ‘ time ’ [-Wunused-variable] int m=4, n=999, time=11.11; ^ crapmi.c:5:11: warning: unused variable ‘ n ’ [-Wunused-variable] int m=4, n=999, time=11.11; ^ ``` 说不定人家雷不斯用的是饱含黑科技的 Mi 语言呢?! |
2
x86 2018-11-05 15:04:07 +08:00
小学题还用代码算?
小米笔记本 Air13.3 i5/8GB 版 + 11.11 + 仅售 + 4*1000 + 999 |
3
BingoXuan OP |
4
okjb 2018-11-05 15:27:35 +08:00
这笔记本经常 4999,果然雷猴
|
5
aliipay 2018-11-05 18:56:36 +08:00
@jasonyang9 又没说是 c 代码,哈哈
|
6
Everyman 2018-11-05 19:15:45 +08:00
代码语法正确与否先不管,我就假装是不会编程的文科毕业文案妹子花了很大力气学编程的结果。
但是第三行中:小米笔记本 Air13.3 ” i5/8GB 版,这里只剩一半的引号和结尾没分号怎么解析? 很明显是不认真,连基本的检查自己写出来的东西都没有做到,我认为这是态度,甚至职业道德的问题。 发布出来多少人会看到心里不清楚?就这点严谨度? |
7
niketwo 2018-11-05 19:17:39 +08:00 via Android
哈哈哈哈哈哈哈,各位老哥评论真有意思,好好玩
|
8
lengyihan 2018-11-05 19:19:28 +08:00 via Android
伪代码而已,不要较真。
|
9
zqqian 2018-11-05 19:19:40 +08:00 via iPhone
int time=11.11 笑尿了
|