Borderou de evaluare (job #1814862)
Utilizator | Data | 24 noiembrie 2016 17:13:44 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int eval()’:
user.cpp:19:16: error: invalid operands of types ‘int’ and ‘int()’ to binary ‘operator-’
sum-=termen;
^
user.cpp:19:16: error: in evaluation of ‘operator-=(int, int())’
user.cpp: In function ‘int main()’:
user.cpp:60:14: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100001]’ [-Wformat=]
scanf("%s",&v);
^
user.cpp:58:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{freopen ("evaluare.in","r",stdin);
^
user.cpp:59:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("evaluare.out","w",stdout);
^
user.cpp:60:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&v);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !