Borderou de evaluare (job #2646480)

Utilizator tryharderulbrebenel mihnea stefan tryharderul Data 1 septembrie 2020 12:22:53
Problema Principiul includerii si excluderii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:85:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d",&n); ^ main.cpp:82:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("pinex.in","r",stdin); ^ main.cpp:83:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("pinex.out","w",stdout); ^ main.cpp:85:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:90:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lli%lli",&a,&b); ^ main.cpp: In function 'void eratostene()': main.cpp:20:19: warning: iteration 999998 invokes undefined behavior [-Waggressive-loop-optimizations] if(!ciur[i]){ ~~~~~~^ main.cpp:19:14: note: within this loop for(i=2;i<=NMAX;i++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
118ms1441kbKilled by Signal 800
217ms1441kbKilled by Signal 800
314ms1441kbKilled by Signal 800
419ms1441kbKilled by Signal 800
520ms1441kbKilled by Signal 800
619ms1441kbKilled by Signal 800
715ms1441kbKilled by Signal 800
819ms1441kbKilled by Signal 800
919ms1441kbKilled by Signal 80
1019ms1441kbKilled by Signal 80
Punctaj total0

Ceva nu functioneaza?