Borderou de evaluare (job #2335141)

Utilizator Robert_VRVRobert Vadastreanu Robert_VRV Data 3 februarie 2019 17:21:07
Problema Xp Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:34:19: error: 'sqrt' was not declared in this scope int rad = sqrt(n), num = 0; ^ main.cpp:44:13: error: 'num' was not declared in this scope pos[++num] = i; ^~~ main.cpp:50:11: error: 'num' was not declared in this scope pos[++num] = n; ^~~ main.cpp:53:13: error: 'num' was not declared in this scope rightProd[num + 1] = 1; ^~~ main.cpp:27: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:28: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:32:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%lld%lld%lld%lld", &n, &a1, &b1, &p, &q); ^ Non zero exit status: 1

Ceva nu functioneaza?