#4185
Varsta
Gigel are a
ani, iar tatăl lui are b
ani. Peste câți ani raportul dintre vârsta lui Gigel și al tatălui său va fi egală cu c/d
, unde c
și d
sunt dați.
matematică
Problema | Varsta | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52364555 | Utilizator | |
Fișier | varsta.cpp | Dimensiune | 247 B |
Data încărcării | 27 Septembrie 2024, 14:37 | Scor / rezultat | Eroare de compilare |
varsta.cpp:4:6: error: declaration does not declare anything [-fpermissive] long long; ^ varsta.cpp: In function 'int main()': varsta.cpp:7:4: error: 'cin' was not declared in this scope cin >> a >>b>>c>>d; ^ varsta.cpp:7:4: note: suggested alternative: In file included from varsta.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ varsta.cpp:7:11: error: 'a' was not declared in this scope cin >> a >>b>>c>>d; ^ varsta.cpp:7:15: error: 'b' was not declared in this scope cin >> a >>b>>c>>d; ^ varsta.cpp:7:18: error: 'c' was not declared in this scope cin >> a >>b>>c>>d; ^ varsta.cpp:7:21: error: 'd' was not declared in this scope cin >> a >>b>>c>>d; ^ varsta.cpp:13:5: error: 'cout' was not declared in this scope cout << fixed<<setprecsion(2) << x/100; ^ varsta.cpp:13:5: note: suggested alternative: In file included from varsta.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ varsta.cpp:13:13: error: 'fixed' was not declared in this scope cout << fixed<<setprecsion(2) << x/100; ^ varsta.cpp:13:13: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:42:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from varsta.cpp:1: /usr/include/c++/4.8/bits/ios_base.h:964:3: note: 'std::fixed' fixed(ios_base& __base) ^ varsta.cpp:13:33: error: 'setprecsion' was not declared in this scope cout << fixed<<setprecsion(2) << x/100; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Varsta 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ă.