Borderou de evaluare (job #1396712)

Utilizator cojocarugabiReality cojocarugabi Data 22 martie 2015 21:14:40
Problema Decrease Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp:7:10: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] main(void) ^ user.cpp: In function ‘int main()’: user.cpp:12:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d\n",&n); ^ user.cpp:13:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (int i=1;i<=n;++i) scanf("%I64d",S+i); ^ user.cpp:18:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (S[i]<S[j]) ^ user.cpp:31:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d %I64d\n",Max,T); ^ user.cpp:31:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("decrease.in","r",stdin); ^ user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("decrease.out","w",stdout); ^ user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d\n",&n); ^ user.cpp:13:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i=1;i<=n;++i) scanf("%I64d",S+i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit408kbTime limit exceeded.0
2Depăşit408kbTime limit exceeded.0
3Depăşit412kbTime limit exceeded.0
4Depăşit404kbTime limit exceeded.0
5Depăşit404kbTime limit exceeded.0
6Depăşit420kbTime limit exceeded.0
7Depăşit408kbTime limit exceeded.0
8Depăşit440kbTime limit exceeded.0
9Depăşit444kbTime limit exceeded.0
10Depăşit444kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?