Borderou de evaluare (job #2464875)

Utilizator DanDumitrescudarkeagle DanDumitrescu Data 29 septembrie 2019 00:19:15
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:17:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=2;i*i<=n;i++) ^~~ main.cpp:21:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' int ok=1; ^~~ main.cpp:11:15: warning: unused variable 'r' [-Wunused-variable] long long int r; ^ main.cpp:12: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:15:11: warning: iteration 2000005 invokes undefined behavior [-Waggressive-loop-optimizations] v[i]=1; ~~~~^~ main.cpp:13:12: note: within this loop for(i=2;i<=nmax;i++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms7184kbMemory limit exceeded0
215ms7184kbMemory limit exceeded0
318ms7180kbMemory limit exceeded0
414ms7184kbMemory limit exceeded0
525ms7184kbMemory limit exceeded0
626ms7184kbMemory limit exceeded0
720ms7184kbMemory limit exceeded0
819ms7184kbMemory limit exceeded0
918ms7184kbMemory limit exceeded0
1018ms7184kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?