Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6118 | 谢锦卓 | 14兔子问题 | C++ | Compile Error | 0 MS | 0 KB | 479 | 2025-01-04 10:25:35 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int y=1,x=0,c=0; int i; for(i=1;i<=8;i++){ c=x+c; x=y; y=c; //cout<<y<<" "<<x<<" "<<c<<endl; } cout<<y<<" "<<x<<" "<<c<<" "endl; return 0; }
Main.cc:17:30: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout<y<<" "<<x<<" "<<c<<" "endl; ^ Main.cc: In function 'int main()': Main.cc:17:33: error: expected ';' before 'endl' cout<<y<<" "<<x<<" "<<c<<" "endl; ^