Borderou de evaluare (job #2344114)

Utilizator Anastasia11Susciuc Anastasia Anastasia11 Data 14 februarie 2019 19:13:46
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:64:57: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=] for (int i = 1; i <= n; i++) scanf("%d", &prieten[i]); ^ main.cpp:60:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("lanterna.in", "r", stdin); ^ main.cpp:61:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("lanterna.out", "w", stdout); ^ main.cpp:63:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ main.cpp:64:58: 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", &prieten[i]); ^ main.cpp:66:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ main.cpp:70:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &X, &Y, &T, &W); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms1310kbOK10
225ms1441kbOK10
311ms1310kbOK10
498ms1310kbOK10
568ms1441kbOK10
6101ms2228kbTime limit exceeded0
7101ms3276kbTime limit exceeded0
88ms1310kbOK10
95ms1179kbOK10
1050ms1310kbOK10
Punctaj total80

Ceva nu functioneaza?