Borderou de evaluare (job #2095602)
Utilizator | Data | 27 decembrie 2017 19:20:55 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:27: warning: left shift count >= width of type [enabled by default]
int v[MAX], arb[MAX * 2 + 2], ans1;
^
user.cpp:5:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define MAX 1 << 18
^
user.cpp:8:17: note: in expansion of macro ‘MAX’
int v[MAX], arb[MAX * 2 + 2], ans1;
^
user.cpp: In function ‘int main()’:
user.cpp:60:9: error: expected ‘;’ before ‘fscanf’
fscanf(fin, "%d%d%d", &op, &a, &b);
^
user.cpp:60:43: warning: statement is a reference, not call, to function ‘printf’ [-Waddress]
fscanf(fin, "%d%d%d", &op, &a, &b);
^
user.cpp:60:43: warning: statement has no effect [-Wunused-value]
user.cpp:49:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &N, &M);
^
user.cpp:51:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !