Borderou de evaluare (job #1325531)
Utilizator | Data | 24 ianuarie 2015 01:00:16 | |
---|---|---|---|
Problema | Paranteze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:93: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
if((st.top() == '(' && c == ')') || (st.top() == '[' && c == ']') || (st.top == '{' && c == '}')) {
^
user.cpp:12:13: warning: unused variable ‘j’ [-Wunused-variable]
long i, j;
^
user.cpp:13:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("paranteze.in", "r", stdin);
^
user.cpp:14:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("paranteze.out", "w", stdout);
^
user.cpp:15:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\n", &N);
^
user.cpp:18:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !