Borderou de evaluare (job #2190181)

Utilizator cyg_SerbanBFlorin Gheorghe cyg_SerbanB Data 29 martie 2018 22:28:40
Problema K1 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int afis()’: user.cpp:11:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d ",Q[i]); ^ user.cpp:13:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d ",R[i]); ^ user.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:20:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&N); ^ user.cpp:23:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&x); ^ user.cpp:39:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if(Q[st1]+R[st2]<min||min==0); ^~ user.cpp:40:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ { ^ user.cpp:18:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("k1.in","r",stdin); ^ user.cpp:19:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("k1.out","w",stdout); ^ user.cpp:20:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&N); ^ user.cpp:23:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms2712kbOK10
20ms2716kbOK10
30ms2724kbOK10
44ms2824kbOK10
532ms3528kbOK10
6260ms16140kbOK10
7216ms16104kbOK10
8296ms16140kbOK10
9324ms16320kbOK10
100ms2708kbOK10
Punctaj total100

Ceva nu functioneaza?