#2641
AF
Gigel are ca temă la matematică să precizeze valoarea de adevăr a unor expresii de forma nr1 semn nr2 = nr3
, unde nr1
, nr2
și nr3
sunt numere naturale, iar semn
poate fi +
, -
, x
sau :
reprezintând adunarea, scăderea, înmulțirea și împărțirea. Ajutați-l pe Gigel să rezolve tema la matematică.
-
Problema | AF | Operații I/O |
af.in /af.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54342044 | Utilizator | |
Fișier | af.cpp | Dimensiune | 935 B |
Data încărcării | 26 Noiembrie 2024, 10:17 | Scor / rezultat | Eroare de compilare |
af.cpp: In function 'int main()': af.cpp:10:5: error: reference to 'cin' is ambiguous cin>>n; ^ af.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("AF.in"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ af.cpp:12:9: error: reference to 'cin' is ambiguous cin>>nr1>>c>>nr2>>egal>>nr3; ^ af.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("AF.in"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ af.cpp:15:13: error: reference to 'cout' is ambiguous cout<<"Adevarat"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:17:13: error: reference to 'cout' is ambiguous cout<<"Fals"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:21:13: error: reference to 'cout' is ambiguous cout<<"Adevarat"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:23:13: error: reference to 'cout' is ambiguous cout<<"Fals"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:28:13: error: reference to 'cout' is ambiguous cout<<"Adevarat"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:30:13: error: reference to 'cout' is ambiguous cout<<"Fals"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:35:13: error: reference to 'cout' is ambiguous cout<<"Fals"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:37:13: error: reference to 'cout' is ambiguous cout<<"Adevarat"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:39:13: error: reference to 'cout' is ambiguous cout<<"Fals"; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("AF.out"); ^ In file included from af.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AF 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ă.