Borderou de evaluare (job #606059)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Broasca2 (clasa a 10-a) | Compilator | cpp-32 |
Rundă | Concurs cursuri de performanță | IQ Academy | clasa a 10-a | Status | evaluat |
Dată | 12 sept. 2021 16:47:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: ISO C++ forbids declaration of 'pozitie' with no type [-fpermissive]
11 | pozitie (int x, int n)
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:80:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
80 | else
| ^~~~
main.cpp:83:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
83 | inserare(b[z].dist, pozitie(b[z].dist, length), length) ;
| ^~~~~~~~
main.cpp: In function 'int pozitie(int, int)':
main.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
27 | }
| ^