fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. float a;
  5. cin >> a;
  6. cout << (a/10)%10 << endl;
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
87
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:18: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
   cout <<  (a/10)%10 << endl;
            ~~~~~~^~~
stdout
Standard output is empty