#1303
Se dau două numere naturale și un simbol pentru una dintre operațiile +, -, *, /. Să se determine rezultatul operației aplicate pentru cele două numere.
| Problema | Calculator | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64919064 | Utilizator | |
| Fișier | calculator.cpp | Dimensiune | 397 B |
| Data încărcării | 13 Iunie 2026, 12:47 | Scor/rezultat | Eroare de compilare |
calculator.cpp:12:7: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:13: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:20: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:27: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:42: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:55: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:70: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:12:80: error: extended character • is not valid in an identifier 12 | About • FAQ • Docs • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy | ^ calculator.cpp:13:1: error: extended character © is not valid in an identifier 13 | © 2016 - 2026 GDB Online | ^ calculator.cpp:2:4: error: ‘OnlineGDB’ does not name a type 2 | OnlineGDB | ^~~~~~~~~ calculator.cpp:18:9: error: expected declaration before ‘}’ token 18 | } | ^ calculator.cpp:21:1: error: ‘close’ does not name a type 21 | close ad [x] | ^~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Calculator 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ă.