Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:25:6: error: 'k' was not declared in this scope for(k=0;k<n;k++) ^ /in/foo.cc:30:18: error: 'rec' cannot be used as a function if(strcmp(rec(0).name,names[i])==0) ^ /in/foo.cc:42:19: error: 'name' was not declared in this scope cout<<i+1<<" "<<name[i]; ^~~~ /in/foo.cc:15:10: warning: unused variable 'j' [-Wunused-variable] int n,i,j,flag,index; ^ /in/foo.cc:16:19: warning: unused variable 't' [-Wunused-variable] struct SR rec[N],t; ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1152 结构体-手机通话记录1
- 语言
- C++
- 递交时间
- 2021-11-20 18:27:08
- 评测时间
- 2021-11-20 18:27:08
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes