Borderou de evaluare (job #1272490)

Utilizator cipriancxFMI - gr143 Timofte Ciprian cipriancx Data 22 noiembrie 2014 14:07:13
Problema Patrate6 Status done
Runda FMI No Stress 5 Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(long long int i=1; i<=n; i++)scanf("%d",&v[i]); ^ user.cpp:61:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",val+1); ^ user.cpp:62:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%d",val); ^ user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("patrate6.in","r",stdin); ^ user.cpp:36:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("patrate6.out","w",stdout); ^ user.cpp:37:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:38:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] if(n==1){ int x; scanf("%d",&x); printf("%d",x); } ^ user.cpp:41:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(long long int i=1; i<=n; i++)scanf("%d",&v[i]); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbOK10
20ms424kbIncorect0
34ms588kbOK10
456ms1992kbIncorect0
50ms420kbOK10
64ms584kbOK10
748ms1992kbOK10
88ms740kbIncorect0
964ms1848kbOK10
1060ms1848kbOK10
Punctaj total70

Ceva nu functioneaza?