Borderou de evaluare (job #746576)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Plus (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 nov. 2023 17:53:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:15: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
34 | x=pcif(n, cif);
| ^~~
main.cpp:9:22: note: initializing argument 2 of 'int pcif(int, int&)'
9 | int pcif(int n, int &cif)
| ~~~~~^~~
main.cpp:44:16: error: cannot convert 'long long int*' to 'int*'
44 | elseul(v, i);
| ^
| |
| long long int*
main.cpp:19:17: note: initializing argument 1 of 'void elseul(int*, int)'
19 | void elseul(int v[10], int i)
| ~~~~^~~~~