Borderou de evaluare (job #1556190)

Utilizator akaprosAna Kapros akapros Data 24 decembrie 2015 12:44:11
Problema Orase1 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int ok(int)’: user.cpp:18:9: warning: unused variable ‘i’ [-Wunused-variable] int i, j, s = 0, nr = 0, p = 1, q = n - 1, a; ^ user.cpp: In function ‘void write()’: user.cpp:74:12: error: ‘nr’ was not declared in this scope ++ nr; a = j; s = 0; ^ user.cpp:74:16: error: ‘a’ was not declared in this scope ++ nr; a = j; s = 0; ^ user.cpp:59:19: warning: unused variable ‘i’ [-Wunused-variable] int x = bs(), i, s = 0, j; ^ user.cpp: In function ‘void read()’: user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("orase1.in", "r", stdin); ^ user.cpp:9:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ user.cpp:12:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ user.cpp: In function ‘void write()’: user.cpp:60:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("orase1.out", "w", stdout); ^

Ceva nu functioneaza?