#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 | #54992678 | Utilizator | |
Fișier | minicalc.cpp | Dimensiune | 246 B |
Data încărcării | 15 Decembrie 2024, 15:36 | Scor / rezultat | Eroare de compilare |
minicalc.cpp: In function 'int main()': minicalc.cpp:6:5: error: 'cin' was not declared in this scope cin>>a>>b>>c; ^ minicalc.cpp:6: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:8:9: error: 'cout' was not declared in this scope cout<<a+b; ^ minicalc.cpp:8:9: 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:10:9: error: 'cout' was not declared in this scope cout<<a-b; ^ minicalc.cpp:10:9: 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:12:9: error: 'cout' was not declared in this scope cout<<a*b; ^ minicalc.cpp:12:9: 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:14:9: error: 'cout' was not declared in this scope cout<<a/b; ^ minicalc.cpp:14:9: 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:16:9: error: 'cout' was not declared in this scope cout<<a%b; ^ minicalc.cpp:16:9: 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ă.