Borderou de evaluare (job #2306605)
Utilizator | Data | 22 decembrie 2018 17:08:23 | |
---|---|---|---|
Problema | Coduri Huffman | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void A(int, long long int, int)':
main.cpp:8:51: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
k>n?A(s[k-n],2*a,b+1),A(d[k-n],2*a+1,b+1):p[k]=b,q[k]=a;
~~~~^~
main.cpp: In function 'int main()':
main.cpp:12:87: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("huffman.in","r",stdin),freopen("huffman.out","w",stdout),fgets(t,9,stdin);
^
main.cpp:12:87: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:12:87: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:17:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(t,9,stdin),q[i]=1000001;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !