Borderou de evaluare (job #2013578)

Utilizator IulianaBinzarIuliana Binzar IulianaBinzar Data 21 august 2017 19:28:55
Problema Maxsecv Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:20: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] scanf("%ul",&le); ^ user.cpp:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=le;i++) ^ user.cpp:32:21: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] printf("%u",temp); ^ user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxsecv.in","r",stdin); ^ user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxsecv.out","w",stdout); ^ user.cpp:17:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ul",&le); ^ user.cpp:20:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK10
20ms440kbOK10
30ms448kbOK10
40ms472kbOK10
520ms784kbOK10
640ms928kbOK10
788ms784kbOK10
8148ms924kbOK10
9168ms924kbOK10
10188ms924kbOK10
Punctaj total100

Ceva nu functioneaza?