Borderou de evaluare (job #1999410)

Utilizator flaviu_2001Craciun Ioan-Flaviu flaviu_2001 Data 11 iulie 2017 01:19:44
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:33:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &nod[i].x); ^ user.cpp:53:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %lld\n", lg[i], cd[i]); ^ user.cpp:54:5: error: ‘fin’ was not declared in this scope fin.close(); ^ user.cpp:55:5: error: ‘fout’ was not declared in this scope fout.close(); ^ user.cpp:29:38: 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); ^ user.cpp:30:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("huffman.out", "w", stdout); ^ user.cpp:31:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:33:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nod[i].x); ^

Ceva nu functioneaza?