Borderou de evaluare (job #2311225)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 2 ianuarie 2019 19:40:19
Problema Subsir100 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:34:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while(v[i]==v[i+1]) ^~~~~ main.cpp:36:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while' cnt++; ^~~ main.cpp:42:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n",sum); ^ main.cpp:21:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("subsir100.in","r",stdin); ^ main.cpp:22:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("subsir100.out","w",stdout); ^ main.cpp:24:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:27:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
22ms131kbIncorect00
33ms131kbIncorect00
48ms131kbIncorect00
526ms131kbIncorect00
690ms131kbIncorect00
7100ms262kbTime limit exceeded00
8100ms393kbTime limit exceeded00
9101ms393kbTime limit exceeded0
1025ms524kbOK10
Punctaj total10

Ceva nu functioneaza?