Submission #4019844
Source Code Expand
#include <cstdio> int a, b; int main() { scanf("%d%d", &a, &b); printf("%d", ceil((double)a / b) * b - a); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - けんしょう先生のお菓子配り |
User | luogu_bot4 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 140 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:36: error: ‘ceil’ was not declared in this scope printf("%d", ceil((double)a / b) * b - a); ^ ./Main.cpp:6:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^