记录详情

Compile Error

/in/foo.cc:97:39: error: expected '}' at end of input
   97 |         for (PolyLinkNode* curr = head
      |                                       ^
/in/foo.cc:11:20: note: to match this '{'
   11 | class PolyLinkList {
      |                    ^
/in/foo.cc: In member function 'void PolyLinkList::print() const':
/in/foo.cc:97:39: error: expected ';' at end of input
   97 |         for (PolyLinkNode* curr = head
      |                                       ^
/in/foo.cc:97:39: error: expected primary-expression at end of input
/in/foo.cc:97:39: error: expected ';' at end of input
/in/foo.cc:97:39: error: expected primary-expression at end of input
/in/foo.cc:97:39: error: expected ')' at end of input
/in/foo.cc:97:13: note: to match this '('
   97 |         for (PolyLinkNode* curr = head
      |             ^
/in/foo.cc:97:39: error: expected statement at end of input
   97 |         for (PolyLinkNode* curr = head
      |                                       ^
/in/foo.cc:97:28: warning: unused variable 'curr' [-Wunused-variable]
   97 |         for (PolyLinkNode* curr = head
      |                            ^~~~
/in/foo.cc:97:39: error: expected '}' at end of input
   97 |         for (PolyLinkNode* curr = head
      |                                       ^
/in/foo.cc:95:24: note: to match this '{'
   95 |     void print() const {
      |                        ^
/in/foo.cc: At global scope:
/in/foo.cc:97:39: error: expected unqualified-id at end of input
   97 |         for (PolyLinkNode* curr = head
      |                                       ^

信息

递交者
类型
递交
比赛
2024级《面向对象的方法与实践》第四次作业
语言
C++
递交时间
2025-04-13 15:14:21
评测时间
2025-04-14 23:59:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes