Borderou de evaluare (job #2335577)

Utilizator Robert_VRVRobert Vadastreanu Robert_VRV Data 4 februarie 2019 12:09:02
Problema Xp Status done
Runda Arhiva de probleme Compilator cpp-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:26:15: error: 'max' is not a member of 'std' int val = std::max(1, ((i % p) ^ (((a + 1) & (b + 1)) % p)) % p); ^~~ main.cpp:51:19: error: 'max' is not a member of 'std' vals[ind] = std::max(1, ((j % p) ^ (((a + 1) & (b + 1)) % p)) % p); ^~~ main.cpp:14:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("xp.in", "r", stdin); ^ main.cpp:15:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("xp.out", "w", stdout); ^ main.cpp:19:44: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d", &n, &a1, &b1, &p, &q); ^ Non zero exit status: 1

Ceva nu functioneaza?