Borderou de evaluare (job #1588968)

Utilizator musashi1Doros Doru-Lucian musashi1 Data 3 februarie 2016 18:49:50
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:57: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] int ij = sscanf((char*)&contents[0], "%uld%uld", &n, &m); ^ user.cpp:24:57: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=] user.cpp:30:67: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] int i = sscanf((char*)&ss[0], "%uld%uld%uld%uld", &x, &y, &s, &g); ^ user.cpp:30:67: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=] user.cpp:30:67: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 5 has type ‘long unsigned int*’ [-Wformat=] user.cpp:30:67: warning: format ‘%u’ expects argument of type ‘unsigned 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], "%uld%uld%uld%uld", &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:39: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] sprintf((char*)&ss[0], "%uld ", v[i]); ^ user.cpp:24:6: warning: unused variable ‘ij’ [-Wunused-variable] int ij = sscanf((char*)&contents[0], "%uld%uld", &n, &m); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms484kbIncorect0
20ms484kbIncorect0
30ms488kbIncorect0
40ms492kbIncorect0
50ms524kbIncorect0
64ms568kbIncorect0
764ms1784kbIncorect0
864ms1780kbIncorect0
964ms1760kbIncorect0
1064ms1756kbIncorect0
1164ms1740kbIncorect0
1264ms1736kbIncorect0
1364ms1772kbIncorect0
1464ms1692kbIncorect0
1596ms2364kbIncorect0
1696ms2364kbIncorect0
1792ms2308kbIncorect0
1892ms2312kbIncorect0
1992ms2308kbIncorect0
2092ms2256kbIncorect0
Punctaj total0

Ceva nu functioneaza?