Problema | FractiiMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55068591 | Utilizator | |
Fișier | fractiimax.cpp | Dimensiune | 592 B |
Data încărcării | 20 Decembrie 2024, 09:23 | Scor / rezultat | Eroare de compilare |
fractiimax.cpp: In function 'int cmmdc(int&, int&)': fractiimax.cpp:12:24: warning: left operand of comma operator has no effect [-Wunused-value] else return (b, a % b); ^ fractiimax.cpp: At global scope: fractiimax.cpp:17:40: error: expected '}' before ';' token cin>>x.numa>>x.numi>>y.numa>>y.numi; ^ fractiimax.cpp:17:32: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' to 'int' [-fpermissive] cin>>x.numa>>x.numi>>y.numa>>y.numi; ^ In file included from /usr/include/c++/4.8/ios:44:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from fractiimax.cpp:1: /usr/include/c++/4.8/bits/basic_ios.h:115:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match> operator void*() const ^ /usr/include/c++/4.8/bits/basic_ios.h:115:7: note: no known conversion for implicit 'this' parameter from 'void*' to 'int' fractiimax.cpp:22:5: error: 'x' does not name a type x.numa = x.numa / c; ^ fractiimax.cpp:23:5: error: 'x' does not name a type x.numi = x.numi / c; ^ fractiimax.cpp:25:5: error: 'y' does not name a type y.numa = y.numa / d; ^ fractiimax.cpp:26:5: error: 'y' does not name a type y.numi = y.numi / d; ^ fractiimax.cpp:28:5: error: expected unqualified-id before 'if' if(x.numa * y.numi > x.numi * y.numa) ^ fractiimax.cpp:32:5: error: expected unqualified-id before 'else' else ^ fractiimax.cpp:36:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FractiiMax 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ă.