Borderou de evaluare (job #2352169)
Utilizator | Data | 23 februarie 2019 01:36:14 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:203:9: error: 'fstream' does not name a type
fstream output_file;
^~~~~~~
main.cpp: In constructor 'writer::writer(const char*)':
main.cpp:182:13: error: 'output_file' was not declared in this scope
output_file.open(file_name,ios::out | ios::binary);
^~~~~~~~~~~
main.cpp:182:40: error: 'ios' has not been declared
output_file.open(file_name,ios::out | ios::binary);
^~~
main.cpp:182:51: error: 'ios' has not been declared
output_file.open(file_name,ios::out | ios::binary);
^~~
main.cpp: In destructor 'writer::~writer()':
main.cpp:201:13: error: 'output_file' was not declared in this scope
output_file.write(buffer,index);output_file.close();}
^~~~~~~~~~~
main.cpp: In member function 'void writer::inc()':
main.cpp:209:25: error: 'output_file' was not declared in this scope
index=0,output_file.write(buffer,SIZE);}
^~~~~~~~~~~
main.cpp: In function 'void radixSort(int, int, int)':
main.cpp:230:16: error: 'BITS' was not declared in this scope
int ptr[1<<BITS],bucket[1<<BITS]={ };
^~~~
main.cpp:232:11: error: 'bucket' was not declared in this scope
++bucket[(v[i]>>bits)&MASK];
^~~~~~
main.cpp:232:31: error: 'MASK' was not declared in this scope
++bucket[(v[i]>>bits)&MASK];
^~~~
main.cpp:233:5: error: 'ptr' was not declared in this scope
ptr[0]=low;
^~~
main.cpp:234:5: error: 'bucket' was not declared in this scope
bucket[0]+=low;
^~~~~~
main.cpp:242:37: error: 'MASK' was not declared in this scope
int bucket=(elem>>bits)&MASK;
^~~~
main.cpp:255:18: error: 'THRESHOLD' was not declared in this scope
if (size>THRESHOLD)
^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !