fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int st1;
  6.  
  7. cin>>st1;
  8.  
  9. if (spr > 9 then){
  10. cout<<spr % 10;
  11. }else{
  12. cout<<spr -spr % 10;
  13. }
  14.  
  15.  
  16.  
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
22
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:6: error: ‘spr’ was not declared in this scope
  if (spr > 9 then){
      ^
prog.cpp:9:14: error: expected ‘)’ before ‘then’
  if (spr > 9 then){
              ^
stdout
Standard output is empty