Borderou de evaluare (job #2220278)

Utilizator inquisitorAnders inquisitor Data 11 iulie 2018 08:09:34
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Delete(int)’: user.cpp:15:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i != v[h].size(); ++i) ~~^~~~~~~~~~~~~~ user.cpp: In function ‘bool Find(int)’: user.cpp:32:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i != v[h].size(); ++i) ~~^~~~~~~~~~~~~~ user.cpp: In function ‘void get_nr(int&)’: user.cpp:51:21: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(buffer[i] < 48 | buffer[i] > 57) ~~~~~~~~~~^~~~ user.cpp:55:21: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(buffer[i] > 47 & buffer[i] < 58) ~~~~~~~~~~^~~~ user.cpp: In function ‘int main()’: user.cpp:72:16: error: too few arguments to function ‘void get_nr(int&)’ T = get_nr() + 1; ^ user.cpp:47:37: note: declared here __attribute__((always_inline)) void get_nr(int &x) ^~~~~~ user.cpp:76:20: error: too few arguments to function ‘void get_nr(int&)’ Q = get_nr(); ^ user.cpp:47:37: note: declared here __attribute__((always_inline)) void get_nr(int &x) ^~~~~~ user.cpp:78:20: error: too few arguments to function ‘void get_nr(int&)’ x = get_nr(); ^ user.cpp:47:37: note: declared here __attribute__((always_inline)) void get_nr(int &x) ^~~~~~ user.cpp: At global scope: user.cpp:47:37: warning: always_inline function might not be inlinable [-Wattributes] user.cpp: In function ‘void get_nr(int&)’: user.cpp:53:69: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] if(++i == buffSize) fread(buffer, 1, buffSize, stdin), i = 0; ^ user.cpp:59:69: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] if(++i == buffSize) fread(buffer, 1, buffSize, stdin), i = 0; ^ user.cpp: In function ‘int main()’: user.cpp:65:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.in", "r", stdin); ^ user.cpp:66:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.out", "w", stdout); ^

Ceva nu functioneaza?