#include<iostream>#include<vector>using namespace std;int main(){int len;cin>>len;vector<int> arr(len);for(int i=0 ; i< len ; i++ )arr[i]=i;for(i=0 ; i< len ; i++ )cout<<arr[i]<<" ";return 0;}提示D:\c++\555555\zhizhen-9.cpp||In function 'int main()':|D:\c++\555555\zhizhen-9.cpp|16|error: name lookup of 'i' changed for ISO 'for' scoping|D:\c++\555555\zhizhen-9.cpp|16|note: (if you use '-fpermissive' G++ will accept your code)|
- 2 回答
- 0 关注
- 1064 浏览
添加回答
举报
0/150
提交
取消