Borderou de evaluare (job #1601704)

Utilizator TrascaAndreiTrasca Andrei TrascaAndrei Data 16 februarie 2016 10:38:55
Problema Numar2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:70:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(in,"%d %d",&n,&m); ^ user.cpp:70:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:73:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(in,"%d",&a[i]); ^ user.cpp:97:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] {fprintf(out,"%d",k); ^ user.cpp:70:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d %d",&n,&m); ^ user.cpp:73:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&a[i]); ^ user.cpp:94:5: warning: ‘mijl’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(k=mijl;k>=0;k--) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms352kbKilled by signal 11(SIGSEGV).0
20ms352kbKilled by signal 11(SIGSEGV).0
30ms356kbKilled by signal 11(SIGSEGV).0
40ms356kbKilled by signal 11(SIGSEGV).0
50ms352kbKilled by signal 11(SIGSEGV).0
60ms356kbKilled by signal 11(SIGSEGV).0
70ms352kbKilled by signal 11(SIGSEGV).0
80ms356kbKilled by signal 11(SIGSEGV).0
90ms360kbKilled by signal 11(SIGSEGV).0
100ms352kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?