Borderou de evaluare (job #1588951)

Utilizator musashi1Doros Doru-Lucian musashi1 Data 3 februarie 2016 18:45:23
Problema Mayonaka Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] int ij = sscanf((char*)&contents[0], "%d%d", &n, &m); ^ user.cpp:24:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=] user.cpp:30:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] int i = sscanf((char*)&ss[0], "%d%d%d%d", &x, &y,&s,&g); ^ user.cpp:30:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=] user.cpp:30:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long unsigned int*’ [-Wformat=] user.cpp:30:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long unsigned int*’ [-Wformat=] user.cpp:31:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = x; j <= y; j += s) ^ user.cpp:30:7: warning: unused variable ‘i’ [-Wunused-variable] int i = sscanf((char*)&ss[0], "%d%d%d%d", &x, &y,&s,&g); ^ user.cpp:46:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= n; i++) ^ user.cpp:49:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] sprintf((char*)&ss[0], "%d ", v[i]); ^ user.cpp:24:6: warning: unused variable ‘ij’ [-Wunused-variable] int ij = sscanf((char*)&contents[0], "%d%d", &n, &m); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms492kbIncorect0
20ms492kbIncorect0
30ms492kbIncorect0
40ms496kbIncorect0
54ms528kbIncorect0
68ms584kbIncorect0
7Depăşit2040kbTime limit exceeded.0
8Depăşit2036kbTime limit exceeded.0
9Depăşit2024kbTime limit exceeded.0
10Depăşit2016kbTime limit exceeded.0
11Depăşit2000kbTime limit exceeded.0
12Depăşit1996kbTime limit exceeded.0
13Depăşit2032kbTime limit exceeded.0
14Depăşit1948kbTime limit exceeded.0
15Depăşit2732kbTime limit exceeded.0
16Depăşit2736kbTime limit exceeded.0
17Depăşit2684kbTime limit exceeded.0
18Depăşit2684kbTime limit exceeded.0
19Depăşit2680kbTime limit exceeded.0
20Depăşit2624kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?