Borderou de evaluare (job #1582784)

Utilizator akaprosAna Kapros akapros Data 28 ianuarie 2016 14:50:43
Problema Interzis Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void pref()’: user.cpp:15:5: error: ‘v’ was not declared in this scope v[1] = 0; ^ user.cpp:16:5: error: ‘k’ was not declared in this scope k = 0; ^ user.cpp:17:10: error: ‘i’ was not declared in this scope for (i = 2; i <= n; ++ i) ^ user.cpp:21:21: error: ‘a’ was not declared in this scope if (s[i] == a[k + 1]) ^ user.cpp: In function ‘void solve()’: user.cpp:29:5: error: ‘dp’ was not declared in this scope dp[0][0] = 1; ^ user.cpp:31:13: error: ‘j’ was not declared in this scope for (j = 0; j <= m; ++ j) ^ user.cpp:36:26: error: ‘v’ was not declared in this scope dp[i + 1][v[j]] += dp[i][j]; ^ In file included from /usr/include/c++/4.8/cstdio:42:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: user.cpp: In function ‘void write()’: user.cpp:44:34: error: request for member ‘stdout’ in ‘"w"’, which is of non-class type ‘const char [2]’ freopen("interzis.out", "w". stdout); ^ user.cpp:45:10: error: ‘i’ was not declared in this scope for (i = 0; i < m; ++ i) ^ user.cpp:47:9: error: ‘ans’ was not declared in this scope ans += dp[n][i]; ^ user.cpp:47:16: error: ‘dp’ was not declared in this scope ans += dp[n][i]; ^ user.cpp:51:18: error: ‘ans’ was not declared in this scope printf("%d", ans) ^ user.cpp:52:1: error: expected ‘;’ before ‘}’ token } ^ user.cpp: In function ‘void read()’: user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interzis.in", "r", stdin); ^ user.cpp:10:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?