Borderou de evaluare (job #1712678)

Utilizator AdrianGotcaAdrian Gotca AdrianGotca Data 3 iunie 2016 12:36:27
Problema Ratphu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf("%s %d",s+1,&p); ^ user.cpp:19:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",nr); ^ user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratphu.in","r",stdin); ^ user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratphu.out","w",stdout); ^ user.cpp:15:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %d",s+1,&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbOK10
20ms256kbOK10
38ms252kbOK10
4Depăşit228kbTime limit exceeded.0
5Depăşit232kbTime limit exceeded.0
6Depăşit232kbTime limit exceeded.0
7Depăşit232kbTime limit exceeded.0
8Depăşit236kbTime limit exceeded.0
9Depăşit228kbTime limit exceeded.0
10Depăşit232kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?