Borderou de evaluare (job #1462432)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 18 iulie 2015 00:49:54
Problema Divk Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:7: error: ‘DIM’ was not declared in this scope int V[DIM], P[DIM], S[DIM]; ^ user.cpp:5:15: error: ‘DIM’ was not declared in this scope int V[DIM], P[DIM], S[DIM]; ^ user.cpp:5:23: error: ‘DIM’ was not declared in this scope int V[DIM], P[DIM], S[DIM]; ^ user.cpp: In function ‘int main()’: user.cpp:12:28: error: ‘K’ was not declared in this scope scanf("%d %d %d %d", &N, &K, &A, &B); ^ user.cpp:12:32: error: ‘A’ was not declared in this scope scanf("%d %d %d %d", &N, &K, &A, &B); ^ user.cpp:12:36: error: ‘B’ was not declared in this scope scanf("%d %d %d %d", &N, &K, &A, &B); ^ user.cpp:16:16: error: ‘V’ was not declared in this scope scanf("%d", &V[i]); ^ user.cpp:17:3: error: ‘P’ was not declared in this scope P[i] = ( P[i-1] + V[i] ) % K; ^ user.cpp:20:4: error: ‘S’ was not declared in this scope S[ P[i-A-0] ] ++; ^ user.cpp:23:4: error: ‘S’ was not declared in this scope S[ P[i-B-1] ] --; ^ user.cpp:25:10: error: ‘S’ was not declared in this scope sol += S[ P[i] ]; ^ user.cpp:9:33: 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:10:33: 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); ^

Ceva nu functioneaza?