Borderou de evaluare (job #1576539)
Utilizator | Data | 22 ianuarie 2016 15:50:15 | |
---|---|---|---|
Problema | Caramizi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:14:13: error: ‘maxv’ was not declared in this scope
if (maxv < v[i])
^
user.cpp: In function ‘void solve()’:
user.cpp:23:9: error: ‘s’ was not declared in this scope
s[i] = s[i - 1] + v[i];
^
user.cpp:24:22: error: ‘maxv’ was not declared in this scope
for (i = 1; i <= maxv; ++ i)
^
user.cpp:28:23: error: ‘s’ was not declared in this scope
ll vi = 1LL * s[p - 1] + 1ll * (n - p + 1);
^
user.cpp:29:32: error: ‘val’ was not declared in this scope
nb[i] = max(nb[i - 1], val - val % i);
^
user.cpp:28:12: warning: unused variable ‘vi’ [-Wunused-variable]
ll vi = 1LL * s[p - 1] + 1ll * (n - p + 1);
^
user.cpp: In function ‘void write()’:
user.cpp:35:10: error: ‘i’ was not declared in this scope
for (i = sum / v[n]; i >= 1; -- i)
^
user.cpp:35:14: error: ‘sum’ was not declared in this scope
for (i = sum / v[n]; i >= 1; -- i)
^
user.cpp:39:22: error: ‘x’ was not declared in this scope
scanf("%d", &x);
^
user.cpp:40:18: error: ‘maxv’ was not declared in this scope
if (x <= maxv)
^
user.cpp:43:32: error: ‘sum’ was not declared in this scope
printf("%lld", nB[(sum / x) + 1);
^
user.cpp:43:44: error: expected ‘]’ before ‘)’ token
printf("%lld", nB[(sum / x) + 1);
^
user.cpp: In function ‘void read()’:
user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("caramizi.in", "r", stdin);
^
user.cpp:10:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:13:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp: In function ‘void write()’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !