Borderou de evaluare (job #2464884)

Utilizator DanDumitrescudarkeagle DanDumitrescu Data 29 septembrie 2019 00:38:39
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:18:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=2;i*i<=nmax;i++) ^~~ main.cpp:22:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' int ok=1; ^~~ main.cpp:32:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] fprintf(g,"%d",r); ^ main.cpp:13:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ main.cpp:16:11: warning: iteration 2000005 invokes undefined behavior [-Waggressive-loop-optimizations] v[i]=1; ~~~~^~ main.cpp:14:12: note: within this loop for(i=2;i<=nmax;i++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
133ms2097kbOK10
237ms2097kbOK10
345ms2097kbOK10
437ms2097kbOK10
540ms2097kbOK10
638ms2228kbIncorect0
739ms2097kbIncorect0
841ms2228kbIncorect0
940ms2228kbIncorect0
1041ms2097kbIncorect0
Punctaj total50

Ceva nu functioneaza?