Problem | wires |
---|---|
User | AccountName |
Submission Time | 2023-12-22 15:04:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wires.cpp:4:5: error: ambiguating new declaration of ‘int wire(int, int, int*)’
4 | int wire(int N, int P, int order[]){
| ^~~~
In file included from wires.cpp:1:
wires.h:3:6: note: old declaration ‘void wire(int, int, int*)’
3 | void wire(int N, int P, int order[]);
| ^~~~
wires.cpp: In function ‘int wire(int, int, int*)’:
wires.cpp:41:9: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
41 | return result;
| ^~~~~~
| |
| int*