#450
minicalc
Se citesc de la tastatură 3
numere naturale, a
, b
, c
. Să se realizeze cu a
și b
operația codificată prin numărul c
.
Problema | minicalc | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54144549 | Utilizator | |
Fișier | minicalc.cpp | Dimensiune | 196 B |
Data încărcării | 20 Noiembrie 2024, 18:38 | Scor / rezultat | Eroare de compilare |
minicalc.cpp: In function 'int main()': minicalc.cpp:5:5: error: 'cin' was not declared in this scope cin>>a>>b>>c; ^ minicalc.cpp:5:5: note: suggested alternative: In file included from minicalc.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ minicalc.cpp:7:5: error: 'cout' was not declared in this scope cout<<a+b; ^ minicalc.cpp:7:5: note: suggested alternative: In file included from minicalc.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ minicalc.cpp:9:5: error: 'cout' was not declared in this scope cout<<a-b; ^ minicalc.cpp:9:5: note: suggested alternative: In file included from minicalc.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ minicalc.cpp:11:5: error: 'cout' was not declared in this scope cout<<a*b; ^ minicalc.cpp:11:5: note: suggested alternative: In file included from minicalc.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ minicalc.cpp:13:5: error: 'cout' was not declared in this scope cout<<a/b; ^ minicalc.cpp:13:5: note: suggested alternative: In file included from minicalc.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema minicalc 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ă.