Borderou de evaluare (job #1459736)

Utilizator borcanirobertBorcani Robert borcanirobert Data 10 iulie 2015 17:45:35
Problema Cntper Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:13: error: ‘int div [1000010]’ redeclared as different kind of symbol int div[MAXF]; ^ In file included from /usr/include/c++/4.8/cstdlib:72:0, from /usr/include/c++/4.8/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bitset:47, from user.cpp:4: /usr/include/stdlib.h:785:14: error: previous declaration of ‘div_t div(int, int)’ extern div_t div (int __numer, int __denom) ^ user.cpp: In function ‘int main()’: user.cpp:29:27: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf( f, "%lld", &T ); ^ user.cpp:33:31: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf( f, "%lld", &N ); ^ user.cpp:35:35: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf( g, "%lld\n", rez ); ^ user.cpp: In function ‘int Rezolvare()’: user.cpp:73:21: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript div[++nf] = p[d], N /= p[d]; ^ user.cpp:79:17: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript div[++nf] = N; ^ user.cpp:84:47: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript rez -= RidicareLaPutere( 26, N / div[i] ); ^ user.cpp: In function ‘int RidicareLaPutere(int, int)’: user.cpp:94:17: warning: unused variable ‘p’ [-Wunused-variable] int nr = 1, p; ^ user.cpp: In function ‘int main()’: user.cpp:29:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( f, "%lld", &T ); ^ user.cpp:33:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( f, "%lld", &N ); ^

Ceva nu functioneaza?