Borderou de evaluare (job #1952745)

Utilizator CodCatalinCodreanu Catalin CodCatalin Data 4 aprilie 2017 12:47:38
Problema Bere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&n,&t); ^ user.cpp:9:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:10:43: 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("%d",&v[i]);v[i+n]=v[i];} ^ user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&a,&b); ^ user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:21:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",Max-a+1); ^ user.cpp:7:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("br.in","r",stdin); ^ user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("br.out","w",stdout); ^ user.cpp:9:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&t); ^ user.cpp:10:44: 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("%d",&v[i]);v[i+n]=v[i];} ^ user.cpp:14:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
212ms280kbOK10
312ms268kbIncorect0
460ms276kbOK10
556ms272kbIncorect0
6Depăşit288kbTime limit exceeded.0
7Depăşit372kbTime limit exceeded.0
8Depăşit436kbTime limit exceeded.0
9Depăşit464kbTime limit exceeded.0
10Depăşit496kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?