Borderou de evaluare (job #2129785)
Utilizator | Data | 13 februarie 2018 09:22:39 | |
---|---|---|---|
Problema | Plantatii | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int get_int()’:
user.cpp:31:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(digit[x]==0)
^
user.cpp:36:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(digit[x])
^
user.cpp: In function ‘double get_double()’:
user.cpp:49:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(digit[x]==0)
^
user.cpp:54:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(digit[x])
^
user.cpp:66:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(digit[x])
^
user.cpp: At global scope:
user.cpp:98:11: error: conflicting declaration ‘int x’
int n, w, x;
^
user.cpp:25:6: note: previous declaration as ‘char x’
char x;
^
user.cpp: In function ‘char get_char()’:
user.cpp:20:32: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(BUF,SBUF,1,stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:140:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plantatii.in", "r", stdin);
^
user.cpp:141:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plantatii.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !