记录详情

Compile Error

/in/foo.cc:36:9: error: 'cout' does not name a type
         cout << "~LinkList()" << endl;
         ^~~~
/in/foo.cc:37:9: error: expected unqualified-id before 'while'
         while (head)
         ^~~~~
/in/foo.cc:43:5: error: expected ';' after class definition
     }
     ^
/in/foo.cc: In function 'void append(int)':
/in/foo.cc:49:14: error: 'head' was not declared in this scope
         if (!head)
              ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:64:18: error: non-member function 'void print()' cannot have cv-qualifier
     void print() const
                  ^~~~~
/in/foo.cc: In function 'void print()':
/in/foo.cc:66:25: error: 'head' was not declared in this scope
         Node* current = head;
                         ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:74:1: error: expected declaration before '}' token
 };
 ^

信息

递交者
类型
递交
题目
P1026 OO7-1 链表类的构造、析构
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-04 22:32:34
评测时间
2024-04-04 22:32:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes