Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1571 | 邓小龙 | 02买铅笔 | C++ | Compile Error | 0 MS | 0 KB | 123 | 2023-10-22 08:49:22 |
# include <iostream> using namespace std; int main(){ int a,b,c,d; cout<<a.b<</<<c.d<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:6:13: error: request for member 'b' in 'a', which is of non-class type 'int' cout<a.b<</<<c.d<<endl; ^ Main.cc:6:16: error: expected primary-expression before '/' token cout<<a.b<</<<c.d<<endl; ^ Main.cc:6:17: error: expected primary-expression before '<<' token cout<<a.b<</<<c.d<<endl; ^ Main.cc:6:21: error: request for member 'd' in 'c', which is of non-class type 'int' cout<<a.b<</<<c.d<<endl; ^ Main.cc:5:11: warning: unused variable 'b' [-Wunused-variable] int a,b,c,d; ^ Main.cc:5:15: warning: unused variable 'd' [-Wunused-variable] int a,b,c,d; ^