fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b;
  6. cin >> a >> b;
  7. c = a/b;
  8. d = a%b;
  9. cout << "masing - masing" << c << endl;
  10. cout << "bersisa" << d << endl;
  11.  
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
20 3
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:2: error: ‘c’ was not declared in this scope
  c = a/b;
  ^
prog.cpp:8:2: error: ‘d’ was not declared in this scope
  d = a%b;
  ^
stdout
Standard output is empty