Borderou de evaluare (job #673559)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Invector (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 nov. 2022 10:27:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void inv(int, int, int*)':
main.cpp:9:70: error: invalid conversion from 'int*' to 'int' [-fpermissive]
9 | inv(i + 1, v);
| ^
| |
| int*
main.cpp:9:62: error: too few arguments to function 'void inv(int, int, int*)'
9 | inv(i + 1, v);
| ~~~^~~~~~~~~~
main.cpp:7:6: note: declared here
7 | void inv(int i, int n, int v[]) { if(i >= n / 2) return;
| ^~~