Borderou de evaluare (job #2436306)

Utilizator AndreiStanescuAlloys Nokito AndreiStanescu Data 5 iulie 2019 14:32:21
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:252:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ main.cpp:254:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' fin.close(); ^~~ main.cpp:269:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ main.cpp:272:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(ap>=n/2+1) ^~ main.cpp:273:28: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<ans<<' '<<ap; ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
44ms131kbOK10
514ms393kbOK10
627ms524kbOK10
750ms917kbOK10
8108ms2097kbOK10
9208ms4194kbOK10
10200ms4194kbOK10
Punctaj total100

Ceva nu functioneaza?