Borderou de evaluare (job #1847987)

Utilizator zdavid112zIon David-Gabriel zdavid112z Data 15 ianuarie 2017 12:28:07
Problema Suman Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void genComb(int, int)’: user.cpp:32:16: error: ‘i’ was not declared in this scope int semn = i%2==0 ? -1 : 1; ^ user.cpp:51:17: error: ‘rez’ was not declared in this scope rez += semn * sg(n / cm[k]) * cm[k]; ^ user.cpp: In function ‘int main()’: user.cpp:65:18: warning: unused variable ‘j’ [-Wunused-variable] int n, k, i, j, lk, ok; ^ user.cpp:65:21: warning: unused variable ‘lk’ [-Wunused-variable] int n, k, i, j, lk, ok; ^ user.cpp:65:25: warning: unused variable ‘ok’ [-Wunused-variable] int n, k, i, j, lk, ok; ^ user.cpp:66:20: warning: unused variable ‘aux’ [-Wunused-variable] llong rez = 0, aux; ^ user.cpp:67:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("suman.in", "r", stdin); ^ user.cpp:68:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("suman.out", "w", stdout); ^ user.cpp:69:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ user.cpp:72:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[k]); ^

Ceva nu functioneaza?