Borderou de evaluare (job #757833)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Biperm (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 ian. 2024 19:33:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:54:57: error: 'i' has not been declared
54 | int bipermsearch ( int n , int perm , int r1 , int r2 , i )
| ^
main.cpp: In function 'int bipermsearch(int, int, int, int, int)':
main.cpp:56:10: error: 'i' was not declared in this scope
56 | if ( i < n ) {
| ^
main.cpp:59:1: warning: no return statement in function returning non-void [-Wreturn-type]
59 | }
| ^
main.cpp: In function 'int main()':
main.cpp:103:25: error: expected primary-expression before ')' token
103 | bipermsearch ( n , ) ;
| ^
main.cpp:63:9: warning: unused variable 'bipermdif' [-Wunused-variable]
63 | int bipermdif = 0 , bipermmin = 2000000000 ;
| ^~~~~~~~~
main.cpp:63:25: warning: unused variable 'bipermmin' [-Wunused-variable]
63 | int bipermdif = 0 , bipermmin = 2000000000 ;
| ^~~~~~~~~
main.cpp: In function 'int loopsearch(int, int (*)[10001], int, int, int, int)':
main.cpp:44:1: warning: control reaches end of non-void function [-Wreturn-type]
44 | }
| ^