Compile Error
/in/foo.cc:6:2: error: expected initializer before 'int' int i,s,n; ^~~ /in/foo.cc:7:2: error: 'cin' does not name a type cin>>n; ^~~ /in/foo.cc:8:5: error: 's' does not name a type s=0 s=s+i; ^ /in/foo.cc:9:3: error: expected unqualified-id before 'for' for(int i=1;i<=n;i++); ^~~ /in/foo.cc:9:15: error: 'i' does not name a type for(int i=1;i<=n;i++); ^ /in/foo.cc:9:20: error: 'i' does not name a type for(int i=1;i<=n;i++); ^ /in/foo.cc:10:1: error: expected unqualified-id before '{' token { ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1014 for循环结构
- 语言
- C++
- 递交时间
- 2018-12-04 17:39:36
- 评测时间
- 2018-12-04 17:39:36
- 评测机
- 分数
- 0
- 总耗时
- 236ms
- 峰值内存
- 29.312 MiB