Borderou de evaluare (job #2226994)

Utilizator inquisitorAnders inquisitor Data 30 iulie 2018 21:11:23
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:31:9: error: ‘x’ was not declared in this scope x = get_number(); ^ user.cpp:56:29: error: ‘get_int’ was not declared in this scope unpaired += get_int() == candidate; ^ user.cpp: At global scope: user.cpp:7:39: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) size_t get_number() ^~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:23:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elmaj.in", "r", stdin); ^ user.cpp:25:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(inBuffer, 1, 8388608, stdin); ^

Ceva nu functioneaza?