Borderou de evaluare (job #2423318)

Utilizator rainerretzler rainer Data 21 mai 2019 00:26:49
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int prep()': main.cpp:196:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned long long j=4;j<=n;j+=2) ~^~~ main.cpp:199:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned long long i=3;i<=n;i+=2) ~^~~ main.cpp:202:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned long long j=i*i;j<=n;j+=i) ~^~~ main.cpp:199:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(unsigned long long i=3;i<=n;i+=2) ^~~ main.cpp:205:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' return s; ^~~~~~ main.cpp: In function 'int main()': main.cpp:256:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbOK10
22ms131kbOK10
33ms131kbOK10
412ms1179kbOK10
516ms1277kbOK10
621ms1536kbOK10
719ms1572kbOK10
837ms1933kbOK10
929ms1966kbOK10
1043ms2170kbOK10
Punctaj total100

Ceva nu functioneaza?