Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2199 | 张宸瑜 | 14兔子问题 | C++ | Compile Error | 0 MS | 0 KB | 290 | 2023-12-16 18:21:31 |
# include<iostream> # include<cstdio> # include<iomanip> using namespace std; int main(){ int a=0,b=0,c=1,d,e; for(int i=1;i<=8;i++){ e=a; d=b; b=c; a=a+d; c=e; } cout<<a+b+c<<<<" "a<<" "<<b<<" "<<c; return 0; }
Main.cc:14:20: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout<a+b+c<<<<" "a<<" "<<b<<" "<<c; ^ Main.cc: In function 'int main()': Main.cc:14:18: error: expected primary-expression before '<<' token cout<<a+b+c<<<<" "a<<" "<<b<<" "<<c; ^ Main.cc:14:23: error: expected ';' before 'a' cout<<a+b+c<<<<" "a<<" "<<b<<" "<<c; ^