Problema | Ab3 | Operații I/O |
![]() ab3.in /ab3.out
|
---|---|---|---|
Limita timp | 0.14 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #50039868 | Utilizator | |
Fișier | ab3.cpp | Dimensiune | 587 B |
Data încărcării | 25 Martie 2024, 10:21 | Scor / rezultat | Eroare de compilare |
ab3.cpp:5:7: error: expected nested-name-specifier before 'long' using long long cautare(unsigned long long a,unsigned long long st, unsigned long long dr) ^ ab3.cpp:5:7: error: expected unqualified-id before 'long' ab3.cpp:5:7: error: expected ';' before 'long' ab3.cpp: In function 'long long int cautare(long long unsigned int, long long unsigned int, long long unsigned int)': ab3.cpp:7:34: error: 'st' cannot be used as a function unsigned long long b=st(st+dr)/2; ^ ab3.cpp:10:18: error: 'id' was not declared in this scope id(b*b*b+b >a) return cautare(a,st,b-1); ^ ab3.cpp:10:20: error: expected ';' before 'return' id(b*b*b+b >a) return cautare(a,st,b-1); ^ ab3.cpp: In function 'int main()': ab3.cpp:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++ ^ ab3.cpp:17:9: error: expected ')' before '{' token { ^ ab3.cpp: In function 'long long int cautare(long long unsigned int, long long unsigned int, long long unsigned int)': ab3.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Ab3 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.