Compile Error
foo.cpp: In function 'int main()': foo.cpp:4:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat] auto f=[](int a,int b){return a+b;}; ^ foo.cpp:4:10: error: 'f' does not name a type auto f=[](int a,int b){return a+b;}; ^ foo.cpp:7:16: error: 'f' was not declared in this scope cout<<f(a,b)<<endl; ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1000 A+B Problem
- 语言
- C++
- 递交时间
- 2014-04-28 12:43:20
- 评测时间
- 2014-04-28 12:43:23
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes