#2638
eval_exp
Se consideră o expresie corectă formată din numere naturale și operatorii +
, -
, *
. Să se evalueze expresia.
Problema | eval_exp | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #31962871 | Utilizator | |
Fișier | eval_exp.cpp | Dimensiune | 966 B |
Data încărcării | 31 Octombrie 2021, 11:26 | Scor / rezultat | Eroare de compilare |
eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:8:1: note: in expansion of macro 'long' long long termen(); ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:8:6: note: in expansion of macro 'long' long long termen(); ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:8:6: note: in expansion of macro 'long' long long termen(); ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:8:6: note: in expansion of macro 'long' long long termen(); ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:8:6: note: in expansion of macro 'long' long long termen(); ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:9:1: note: in expansion of macro 'long' long long factor(); ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:9:6: note: in expansion of macro 'long' long long factor(); ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:9:6: note: in expansion of macro 'long' long long factor(); ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:9:6: note: in expansion of macro 'long' long long factor(); ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:9:6: note: in expansion of macro 'long' long long factor(); ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:11:1: note: in expansion of macro 'long' long eval() ^ eval_exp.cpp: In function 'long long unsigned int eval()': eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:13:5: note: in expansion of macro 'long' long long r = termen(); ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:13:10: note: in expansion of macro 'long' long long r = termen(); ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:13:10: note: in expansion of macro 'long' long long r = termen(); ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:13:10: note: in expansion of macro 'long' long long r = termen(); ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:13:10: note: in expansion of macro 'long' long long r = termen(); ^ eval_exp.cpp: At global scope: eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:31:1: note: in expansion of macro 'long' long long termen() ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:31:6: note: in expansion of macro 'long' long long termen() ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:31:6: note: in expansion of macro 'long' long long termen() ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:31:6: note: in expansion of macro 'long' long long termen() ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:31:6: note: in expansion of macro 'long' long long termen() ^ eval_exp.cpp: In function 'long long unsigned int termen()': eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:33:5: note: in expansion of macro 'long' long long r = factor(); ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:33:10: note: in expansion of macro 'long' long long r = factor(); ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:33:10: note: in expansion of macro 'long' long long r = factor(); ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:33:10: note: in expansion of macro 'long' long long r = factor(); ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:33:10: note: in expansion of macro 'long' long long r = factor(); ^ eval_exp.cpp: At global scope: eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:47:1: note: in expansion of macro 'long' long long factor() ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:47:6: note: in expansion of macro 'long' long long factor() ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:47:6: note: in expansion of macro 'long' long long factor() ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:47:6: note: in expansion of macro 'long' long long factor() ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:47:6: note: in expansion of macro 'long' long long factor() ^ eval_exp.cpp: In function 'long long unsigned int factor()': eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:49:5: note: in expansion of macro 'long' long long r = 0; ^ eval_exp.cpp:2:14: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:49:10: note: in expansion of macro 'long' long long r = 0; ^ eval_exp.cpp:2:19: error: duplicate 'unsigned' #define long long unsigned long long ^ eval_exp.cpp:49:10: note: in expansion of macro 'long' long long r = 0; ^ eval_exp.cpp:2:28: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:49:10: note: in expansion of macro 'long' long long r = 0; ^ eval_exp.cpp:2:33: error: 'long long long' is too long for GCC #define long long unsigned long long ^ eval_exp.cpp:49:10: note: in expansion of macro 'long' long long r = 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema eval_exp 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ă.