Borderou de evaluare (job #2195293)

Utilizator dragos.galeteanu2001Dragos Iulian dragos.galeteanu2001 Data 15 aprilie 2018 21:42:55
Problema Subsir 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 45

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:14:48: 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]); ^ user.cpp:36:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", seqCounter); ^ user.cpp:38:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] for (int i = 1; i <= lg; ++i) printf("%d ", positions[i]); ^ user.cpp:13:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:14:49: 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]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms804kbNu e bine!0
20ms756kbNu e bine!0
30ms868kbNu e bine!0
40ms800kbNu e bine!0
50ms812kbNu e bine!0
60ms936kbNu e bine!0
70ms864kbNu e bine!0
80ms856kbNu e bine!0
90ms800kbNu e bine!0
100ms872kbNu e bine!0
110ms756kbNu e bine!0
120ms752kbCiaules Bulan!5
130ms752kbCiaules Bulan!5
140ms820kbCiaules Bulan!5
150ms816kbCiaules Bulan!5
160ms856kbCiaules Bulan!5
170ms796kbCiaules Bulan!5
180ms932kbCiaules Bulan!5
190ms796kbCiaules Bulan!5
200ms796kbCiaules Bulan!5
Punctaj total45

Ceva nu functioneaza?