Borderou de evaluare (job #1497608)

Utilizator aimrdlAndrei mrdl aimrdl Data 6 octombrie 2015 23:43:51
Problema Divk Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:26: error: expected initializer before ‘sol’ int v[500005], r[500005] sol; ^ user.cpp: In function ‘int main()’: user.cpp:14:3: error: ‘r’ was not declared in this scope r[0] = 1; ^ user.cpp:23:3: error: ‘sol’ was not declared in this scope sol += r[v[i]]; ^ user.cpp:28:15: error: ‘sol’ was not declared in this scope printf("%d", sol); ^ user.cpp:8:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("divk.in", "r", stdin); ^ user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("divk.out", "w", stdout); ^ user.cpp:12:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &n, &k, &a, &b); ^ user.cpp:17:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^

Ceva nu functioneaza?