#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 | #54255355 | Utilizator | |
Fișier | af.cpp | Dimensiune | 995 B |
Data încărcării | 23 Noiembrie 2024, 16:50 | 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 /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ af.cpp:15:9: error: reference to 'cin' is ambiguous cin >> x >> c1 >> y >> c2 >> z; ^ af.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("af.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ af.cpp:18:17: error: reference to 'cout' is ambiguous cout << "Adevarat" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:20:17: error: reference to 'cout' is ambiguous cout << "Fals" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:16:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c1=='+') ^ af.cpp:23:17: error: reference to 'cout' is ambiguous cout << "Adevarat" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:25:17: error: reference to 'cout' is ambiguous cout << "Fals" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:21:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c1=='-') ^ af.cpp:28:17: error: reference to 'cout' is ambiguous cout << "Adevarat" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:30:17: error: reference to 'cout' is ambiguous cout << "Fals" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:26:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c1=='x') ^ af.cpp:33:17: error: reference to 'cout' is ambiguous cout << "Adevarat" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:35:17: error: reference to 'cout' is ambiguous cout << "Fals" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ af.cpp:37:17: error: reference to 'cout' is ambiguous cout << "Fals" << '\n'; ^ af.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("af.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from af.cpp:1: /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ă.