Borderou de evaluare (job #1843491)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 8 ianuarie 2017 19:47:30
Problema Vmin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d%d",&N,&M); ^ user.cpp:17:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:20:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d %d",&A[i],&B[i]); ^ user.cpp:20:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:48:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&val); ^ user.cpp:50:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d ",dq[st-1]); ^ user.cpp:17:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&N,&M); ^ user.cpp:20:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&A[i],&B[i]); ^ user.cpp:48:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&val); ^ user.cpp:44:28: warning: ‘ti’ may be used uninitialized in this function [-Wmaybe-uninitialized] incepmin[dr]=ti; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1820kbKilled by signal 8(SIGFPE).0
20ms1848kbOK10
30ms1828kbKilled by signal 8(SIGFPE).0
44ms1876kbIncorect0
58ms1996kbKilled by signal 8(SIGFPE).0
616ms2160kbKilled by signal 8(SIGFPE).0
732ms2472kbKilled by signal 8(SIGFPE).0
876ms3376kbKilled by signal 8(SIGFPE).0
976ms3376kbKilled by signal 8(SIGFPE).0
1076ms3376kbKilled by signal 8(SIGFPE).0
Punctaj total10

Ceva nu functioneaza?