Problem | celldivision |
---|---|
User | geometric |
Submission Time | 2023-03-15 20:50:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
celldivision.cpp:2:2: error: expected declaration before ‘}’ token
2 | }
| ^
celldivision.cpp:3:2: error: expected unqualified-id before ‘return’
3 | return x;
| ^~~~~~
celldivision.cpp:4:1: error: expected declaration before ‘}’ token
4 | }
| ^
celldivision.cpp: In function ‘void print(int)’:
celldivision.cpp:8:2: error: ‘putchar’ was not declared in this scope; did you mean ‘char’?
8 | putchar(x % 10 + '0');
| ^~~~~~~
| char
celldivision.cpp: In function ‘int main()’:
celldivision.cpp:12:2: error: ‘ios_base’ has not been declared
12 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~~~~~~
celldivision.cpp:12:32: error: ‘cin’ was not declared in this scope
12 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~
celldivision.cpp:14:10: error: ‘readint’ was not declared in this scope
14 | int q = readint();
|