Borderou de evaluare (job #2220971)

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

Raport evaluator

Eroare de compilare: user.cpp:7:32: error: ‘__fastcall’ does not name a type __attribute__((always_inline)) __fastcall size_t get_number() ^~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:30:27: error: ‘get_number’ was not declared in this scope size_t N = get_number(), x, candidate, unpaired = 0; ^ user.cpp:34:9: error: ‘x’ was not declared in this scope x = get_number(); ^ user.cpp:36:9: error: ‘unpaired’ was not declared in this scope unpaired || (candidate = x, unpaired = 0x1); ^~~~~~~~ user.cpp:36:22: error: ‘candidate’ was not declared in this scope unpaired || (candidate = x, unpaired = 0x1); ^~~~~~~~~ user.cpp:45:5: error: ‘unpaired’ was not declared in this scope unpaired = 0x0; ^~~~~~~~ user.cpp:49:29: error: ‘candidate’ was not declared in this scope unpaired += v[i] == candidate; ^~~~~~~~~ user.cpp:52:48: error: ‘candidate’ was not declared in this scope printf(unpaired > N >> 1 ? "%d %d" : "-1", candidate, unpaired); ^~~~~~~~~ user.cpp:25: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:26:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elmaj.out", "w", stdout); ^ user.cpp:28:43: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(inBuffer, 0x1, 0x1000000, stdin); ^

Ceva nu functioneaza?