Problem | round_up_division |
---|---|
User | Avinash |
Submission Time | 2025-06-18 05:39:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
round_up_division.cpp: In function ‘int main()’:
round_up_division.cpp:8:14: error: expected initializer before ‘/’ token
8 | long long n / d == ans;
| ^
round_up_division.cpp:9:17: error: expected ‘;’ before ‘)’ token
9 | for (n % d != 0) {
| ^
| ;
round_up_division.cpp:12:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
12 | cout << ans ++;
| ^~~
| abs
round_up_division.cpp:13:2: error: expected primary-expression before ‘return’
13 | return 0;
| ^~~~~~
round_up_division.cpp:12:17: error: expected ‘)’ before ‘return’
12 | cout << ans ++;
| ^
| )
13 | return 0;
| ~~~~~~
round_up_division.cpp:9:6: note: to match this ‘(’
9 | for (n % d != 0) {
| ^