Borderou de evaluare (job #1780360)

Utilizator wilson182Alexandrina Panfil wilson182 Data 16 octombrie 2016 02:13:26
Problema Clasament Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:21: error: size of array ‘nr’ is too large int n, j, x, i, nr[N]; ^ user.cpp: In function ‘int main()’: user.cpp:12:8: error: ‘nr’ was not declared in this scope memset(nr, 0, N); ^ user.cpp:22:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", rs%mod); ^ user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("clasament.in", "r", stdin); ^ user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("clasament.out", "w", stdout); ^ user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &j); ^ user.cpp:15:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^

Ceva nu functioneaza?