题目:https://www.nowcoder.com/practice/75e878df47f24fdc9dc3e400ec6058ca?tpId=117&&tqId=37777&&companyId=239&rp=1&ru=/company/home/code/239&qru=/ta/job-code-high/question-ranking 程序: /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public:     ListNode* ReverseList(ListNode* pHead) {         ListNode* pre=nullptr;         ListNode* nex=nullptr;         while(pHead)         {             nex=pHead->next;             pHead->next=pre;             pre=pHead;             pHead=nex;         }         return pre;     } }; 自测测试和提交代码都可以使用,但是就是没办法进入调试,我的很多都是这个样子,不知道是什么原因
1630249104(1).jpg