Borderou de evaluare (job #1493375)

Utilizator theprdvtheprdv theprdv Data 29 septembrie 2015 10:07:43
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n", &N, &L); ^ user.cpp:24:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:20:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sobo.out", "w", stdout); ^ user.cpp:24:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &L); ^ user.cpp:27:33: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(line, 1005, stdin); ^ user.cpp:31:63: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0; i < L; ++i) scanf("%lld", &c[i]), P[i] = i; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbCool!10
20ms292kbCool!10
30ms300kbCool!10
40ms312kbUrat.. urat de tot: raspuns gresit0
58ms340kbCool!10
620ms376kbCool!10
740ms456kbUrat.. urat de tot: raspuns gresit0
824ms456kbUrat.. urat de tot: raspuns gresit0
964ms608kbCool!10
1020ms612kbCool!10
Punctaj total70

Ceva nu functioneaza?