Borderou de evaluare (job #2715313)
Utilizator | Data | 3 martie 2021 15:22:56 | |
---|---|---|---|
Problema | Eq4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < expression.size(); ++i) {
~~^~~~~~~~~~~~~~~~~~~
main.cpp:41:31: warning: array subscript has type 'char' [-Wchar-subscripts]
fact[expression[i]] += num;
^
main.cpp:44:71: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (expression[i + 1] == '+' || expression[i + 1] == '-' || i == expression.size() - 1) {
~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:53:23: error: request for member 'second' in 'it', which is of non-class type 'int'
sum += it.second;
^~~~~~
main.cpp:9:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("eq4.in", "r", stdin);
^
main.cpp:10:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("eq4.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !