Borderou de evaluare (job #2325173)
Utilizator | Data | 22 ianuarie 2019 01:18:54 | |
---|---|---|---|
Problema | Arbori indexati binar | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'char getChar(FILE*)':
main.cpp:9:8: error: 'pos' was not declared in this scope
if(pos == BUF_SIZE)
^~~
main.cpp:9:15: error: 'BUF_SIZE' was not declared in this scope
if(pos == BUF_SIZE)
^~~~~~~~
main.cpp:10:15: error: 'buf' was not declared in this scope
fread(buf,1,BUF_SIZE,fin);
^~~
main.cpp:11:12: error: 'buf' was not declared in this scope
return buf[pos++];
^~~
main.cpp:11:16: error: 'pos' was not declared in this scope
return buf[pos++];
^~~
main.cpp: In function 'int main()':
main.cpp:63:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&m);
^
main.cpp:65:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&x);
^
main.cpp:69:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&op,&a);
^
main.cpp:71:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&b);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !