/in/foo.cc: In function 'Node* Search(Node*, int)':
/in/foo.cc:65:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (p->data == x)
^~
/in/foo.cc:67:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
p = p->next;
^
/in/foo.cc: In function 'Node* Insert(Node*, int)':
/in/foo.cc:117:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (newp->data > prev->data) prev->next = newp; newp->next = NULL;
^~
/in/foo.cc:117:50: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (newp->data > prev->data) prev->next = newp; newp->next = NULL;
^~~~
/in/foo.cc: In function 'Node* SetInter(Node*, Node*)':
/in/foo.cc:168:82: warning: unused variable 'p3' [-Wunused-variable]
Node* head3 = new Node; head3 = NULL; Node* p1 = head1; Node* p2 = head2; Node* p3 = head3;
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:232:63: warning: unused variable 'a3' [-Wunused-variable]
int a1[10000] = { 0 }; int a2[10000] = { 0 }; int i = 0; int a3[10000] = { 0 };
^~
/in/foo.cc:233:26: warning: unused variable 'n3' [-Wunused-variable]
int n1 = 0; int n2 = 0, n3 = 0; scanf("%d%d", &n1, &n2);
^~