Borderou de evaluare (job #2190800)

Utilizator dragos.galeteanu2001Dragos Iulian dragos.galeteanu2001 Data 31 martie 2018 19:07:06
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:24: warning: conversion lacks type at end of format [-Wformat=] scanf("%ll%ll", &n, &g); ^ user.cpp:14:24: warning: conversion lacks type at end of format [-Wformat=] user.cpp:14:24: warning: too many arguments for format [-Wformat-extra-args] user.cpp:15:59: warning: conversion lacks type at end of format [-Wformat=] for (int i = 1; i <= n; ++i) scanf("%ll%ll", &w[i], &p[i]); ^ user.cpp:15:59: warning: conversion lacks type at end of format [-Wformat=] user.cpp:15:59: warning: too many arguments for format [-Wformat-extra-args] user.cpp:26:19: warning: conversion lacks type at end of format [-Wformat=] printf("%ll", sol); ^ user.cpp:26:19: warning: too many arguments for format [-Wformat-extra-args] user.cpp:14:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ll%ll", &n, &g); ^ user.cpp:15:60: 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("%ll%ll", &w[i], &p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms860kbIncorect00
20ms752kbIncorect0
30ms804kbIncorect00
40ms860kbIncorect0
50ms808kbIncorect0
60ms752kbIncorect00
70ms800kbIncorect0
80ms808kbIncorect00
90ms752kbIncorect0
100ms808kbIncorect0
110ms752kbIncorect00
120ms872kbIncorect0
130ms880kbIncorect0
140ms940kbIncorect00
150ms756kbIncorect0
160ms856kbIncorect0
170ms796kbIncorect00
180ms808kbIncorect0
190ms936kbIncorect0
200ms820kbIncorect0
Punctaj total0

Ceva nu functioneaza?