criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
using namespace std;

int a, b, c, count=0;

int main() {
    cin >> a >> b >> c;
    for (int i=a;a<=b;a++) if(c%i==0) count++;
    cout << count << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:39: error: reference to 'count' is ambiguous
    8 |     for (int i=a;a<=b;a++) if(c%i==0) count++;
      |                                       ^~~~~
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:4:14: note:                 'int count'
    4 | int a, b, c, count=0;
      |              ^~~~~
a.cc:9:13: error: reference to 'count' is ambiguous
    9 |     cout << count << endl;
      |             ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:4:14: note:                 'int count'
    4 | int a, b, c, count=0;
      |              ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main (){
    int a,b,c;
    for(int x = a; x<= b; x++ ){
      cin >> a >> b >> c;
      if( c%x == 0 ){
          cout << a.size (x) << endl;
      }  
    }
    return 0;
}  



Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: request for member 'size' in 'a', which is of non-class type 'int'
    9 |           cout << a.size (x) << endl;
      |                     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for (int d,x=a; x<=b; x++){
x%=a;
if (x==0) d++;
else
}
cout << d <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
a.cc:11:9: error: 'd' was not declared in this scope
   11 | cout << d <<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for (int d,x=a; x<=b; x++){
c%=x;
if (c==0) d++;
else
}
cout << d <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
a.cc:11:9: error: 'd' was not declared in this scope
   11 | cout << d <<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for(int a=x,z; x<=b; a++){
if(c%a==0) z++;
}
cout << z <<endl;]
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'x' was not declared in this scope
    6 | for(int a=x,z; x<=b; a++){
      |           ^
a.cc:7:12: error: 'z' was not declared in this scope
    7 | if(c%a==0) z++;
      |            ^
a.cc:9:9: error: 'z' was not declared in this scope
    9 | cout << z <<endl;]
      |         ^
a.cc:9:18: error: expected primary-expression before ']' token
    9 | cout << z <<endl;]
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for(int a=x,z; x<=b; a++){
if(c%a==0) z++;
}
cout << z <<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'x' was not declared in this scope
    6 | for(int a=x,z; x<=b; a++){
      |           ^
a.cc:7:12: error: 'z' was not declared in this scope
    7 | if(c%a==0) z++;
      |            ^
a.cc:9:9: error: 'z' was not declared in this scope
    9 | cout << z <<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,z;
cin >> a >> b >> c;
for(int a=x; x<=b; a++){
if(c%a==0) z++;
}
cout << z <<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'x' was not declared in this scope
    6 | for(int a=x; x<=b; a++){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,z=0;
cin >> a >> b >> c;
for(int a=x; x<=b; a++){
if(c%a==0) z++;
}
cout << z <<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'x' was not declared in this scope
    6 | for(int a=x; x<=b; a++){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int b,c,z=0;
cin >> a >> b >> c;
for(int a=x; x<=b; a++){
if(c%a==0) z++;
}
cout << z <<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a >> b >> c;
      |        ^
a.cc:6:11: error: 'x' was not declared in this scope
    6 | for(int a=x; x<=b; a++){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for (int x=a,i=0; x<=b; x++){
if(c%x==0) i++;
}
cout << i <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 | cout << i <<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for(int x=a,i=0; x<=b; x++){
if(c%x==0) i++
}
cout << i <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before '}' token
    7 | if(c%x==0) i++
      |               ^
      |               ;
    8 | }
      | ~              
a.cc:9:9: error: 'i' was not declared in this scope
    9 | cout << i <<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
for(int x=a,i=0; x<=b; x++){
if(c%x==0) i++;
}
cout << i <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 | cout << i <<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,i=0;
cin >> a >> b >> c;
for(int x=a; x<=b; x++){
if(c%x==0) i++
}
cout << i <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before '}' token
    7 | if(c%x==0) i++
      |               ^
      |               ;
    8 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,i=0;
cin >> a >> b >> c;
for(int x=a,; x<=b; x++){
if(c%x==0) i++;
}
cout << i <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before ';' token
    6 | for(int x=a,; x<=b; x++){
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,i=0;
cin >> a >> b >> c;
for(int x=a,; x<=b; x++){
if(c%x==0) i++;
}
cout << i <<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before ';' token
    6 | for(int x=a,; x<=b; x++){
      |             ^
Language: C++

#include <iostream>
using namespace std;
int main (){
    int a,b,c,d;
    d = 0
    cin>>a>>b>>c;
    if(c % a == 0){
        d++;
    }
    if(c % b == 0){
        d++;
    }
    d++;
    cout<<d<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected ';' before 'cin'
    5 |     d = 0
      |          ^
      |          ;
    6 |     cin>>a>>b>>c;
      |     ~~~
Language: C++

#include <stdio.h>

int main(void){
 int a, b, c, ans=0;
 scanf("%d %d %d", &a, &b, &c);
 for(int i=a; i<=b; i++){
  if(c%i==0){
   ans++;
  }
 printf("%d\n", ans);
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <stdio.h>

int main(void){
 int a, b, c, ans=0;
 scanf("%d %d %d", &a, &b, &c);
 for(int i=a; i<=b; i++){
  if(c%i==0){
   ans++;
 }
 printf("%d\n", ans);
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    int count = 0
    for (i = 1, i <= c; i++;){
        if (c % i == 0 && a <= i && i <= b){
            count++
        }
    }
    cout << count << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for (i = 1, i <= c; i++;){
      |     ^~~
a.cc:10:25: error: 'i' was not declared in this scope
   10 |     for (i = 1, i <= c; i++;){
      |                         ^
a.cc:10:29: error: expected primary-expression before ')' token
   10 |     for (i = 1, i <= c; i++;){
      |                             ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    int count = 0
    for (i = 1; i <= c; i++;){
        if (c % i == 0 && a <= i && i <= b){
            count++
        }
    }
    cout << count << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for (i = 1; i <= c; i++;){
      |     ^~~
a.cc:10:17: error: 'i' was not declared in this scope
   10 |     for (i = 1; i <= c; i++;){
      |                 ^
a.cc:10:29: error: expected primary-expression before ')' token
   10 |     for (i = 1; i <= c; i++;){
      |                             ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    int count = 0;
    for (i = 1; i <= c; i++;){
        if (c % i == 0 && a <= i && i <= b){
            count++
        }
    }
    cout << count << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'i' was not declared in this scope
   10 |     for (i = 1; i <= c; i++;){
      |          ^
a.cc:10:28: error: expected ')' before ';' token
   10 |     for (i = 1; i <= c; i++;){
      |         ~                  ^
      |                            )
a.cc:10:29: error: expected primary-expression before ')' token
   10 |     for (i = 1; i <= c; i++;){
      |                             ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    int count = 0;
    for (int i = 1; i <= c; i++;){
        if (c % i == 0 && a <= i && i <= b){
            count++
        }
    }
    cout << count << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ')' before ';' token
   10 |     for (int i = 1; i <= c; i++;){
      |         ~                      ^
      |                                )
a.cc:10:33: error: expected primary-expression before ')' token
   10 |     for (int i = 1; i <= c; i++;){
      |                                 ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    int count = 0;
    for (int i = 1; i <= c; i++){
        if (c % i == 0 && a <= i && i <= b){
            count++
        }
    }
    cout << count << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before '}' token
   12 |             count++
      |                    ^
      |                    ;
   13 |         }
      |         ~
Language: C++

#include <stdio.h>
int　main(){
   int a,b,c,x;
   int count;

    count ==0;

     scanf("%d %d %d", &a,&b,&c);
     
     for(x=a;x<b;x++){
       	if(c%x == 0){
       		count++;
       	}
     }
   printf("%d\n",count);


     return 0;

}



Compiler output:
a.cc:2:1: error: extended character 　 is not valid in an identifier
    2 | int　main(){
      | ^
a.cc:2:1: error: ISO C++ forbids declaration of 'int\U00003000main' with no type [-fpermissive]
    2 | int　main(){
      | ^~~~~~~~~
Language: C++

#include <stdio.h>
int　main(){
   int a,b,c,x;
   int count;

    count =0;

     scanf("%d %d %d\n", &a,&b,&c);
     
     for(x=a;x<b;x++){
       	if(c%x == 0){
       		count++;
       	}
     }
   printf("%d\n",count);


     return 0;

}



Compiler output:
a.cc:2:1: error: extended character 　 is not valid in an identifier
    2 | int　main(){
      | ^
a.cc:2:1: error: ISO C++ forbids declaration of 'int\U00003000main' with no type [-fpermissive]
    2 | int　main(){
      | ^~~~~~~~~
Language: C++

#include <stdio.h>
int　main(){
   int a,b,c,x;
   int count;

    count =0;

     scanf("%d, %d, %d", &a,&b,&c);
     
     for(x=a;x<b;x++){
       	if(c%x == 0){
       		count++;
       	}
     }
   printf("%d\n",count);


     return 0;

}



Compiler output:
a.cc:2:1: error: extended character 　 is not valid in an identifier
    2 | int　main(){
      | ^
a.cc:2:1: error: ISO C++ forbids declaration of 'int\U00003000main' with no type [-fpermissive]
    2 | int　main(){
      | ^~~~~~~~~
Language: C++

#include <iostream>
int main(){
    int a, b, c;
    int n = 0;
    
    cin >> a >> b >> c;
    for(int i = a ; i <= b ; i++){
        if((c % i) == 0){
            n++;
        }
    }
    cout << n;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> a >> b >> c;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << n;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

int main(){
	int a, b, c, x = 0;
	 cin >> a >> b >> c;
	 
	 for(int y = a; y <= b ; y++){
	 	if( c%y == 0) x++;
		else ;
	 }
	 cout << x <<endl;
	 
	 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' was not declared in this scope
    3 |          cin >> a >> b >> c;
      |          ^~~
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |          cout << x <<endl;
      |          ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |          cout << x <<endl;
      |                      ^~~~
Language: C++

#include<iostream>
using namepsace std;
int main(){
int a,b,c,i=0;
cin >> a >> b >> c;
for(int z=a; z<=b; z++){
if(c%z==0) i++;
}
cout << i <<endl;
return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> a >> b >> c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << i <<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << i <<endl;
      |             ^~~~
      |             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h><font></font>
#include <stdlib.h><font></font>
<font></font>
int main()<font></font>
{<font></font>
    int a, b, c;<font></font>
    int k;<font></font>
    int n;<font></font>
<font></font>
    scanf("%d%d%d", &a, &b, &c);<font></font>
    n = 0;<font></font>
    for (k = a; k <= b; k++) {<font></font>
        if (c % k == 0) n++;<font></font>
    }<font></font>
    printf("%d\n", n);<font></font>
    return 0;<font></font>
}<font></font>


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h><font></font>
      |                   ^~~~~~
a.cc:2:20: warning: extra tokens at end of #include directive
    2 | #include <stdlib.h><font></font>
      |                    ^~~~~~
a.cc:3:1: error: expected unqualified-id before '<' token
    3 | <font></font>
      | ^
a.cc:17:2: error: expected unqualified-id before '<' token
   17 | }<font></font>
      |  ^
Language: C++

#include <cstdio><font></font>
<font></font>
int main(){<font></font>
  int a,b,c,ans = 0;<font></font>
<font></font>
  scanf("%d%d%d",&a,&b,&c);<font></font>
  for(int i = a ; i <= b ; i++){<font></font>
    if(c % i == 0) ++ans;<font></font>
  }<font></font>
  printf("%d\n",ans);<font></font>
<font></font>
  return 0;<font></font>
}<font></font>


Compiler output:
a.cc:1:18: warning: extra tokens at end of #include directive
    1 | #include <cstdio><font></font>
      |                  ^~~~~~
a.cc:2:1: error: expected unqualified-id before '<' token
    2 | <font></font>
      | ^
a.cc:13:2: error: expected unqualified-id before '<' token
   13 | }<font></font>
      |  ^
Language: C++

<font></font>
int main(){<font></font>
    int a, b;<font></font>
    while(scanf("%d %d", &a, &b) != 0){<font></font>
        if(a == 0 && b == 0) break;<font></font>
        if(a >= b) printf("%d %d\n", b, a);<font></font>
        else printf("%d %d\n", a, b);<font></font>
    }<font></font>
    return 0;<font></font>
}<font></font>


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <font></font>
      | ^
a.cc:10:2: error: expected unqualified-id before '<' token
   10 | }<font></font>
      |  ^
Language: C++

using namespace std;<font></font>
<font></font>
int main() {<font></font>
    int a, b, c, n = 0;<font></font>
    cin >> a >> b >> c;<font></font>
    for (int i = a; i <= b; i++) {<font></font>
        if (c%i == 0)n++;<font></font>
    }<font></font>
    cout << n << endl;<font></font>
<font></font>
    return 0;<font></font>
}<font></font>


Compiler output:
a.cc:1:21: error: expected unqualified-id before '<' token
    1 | using namespace std;<font></font>
      |                     ^
a.cc:12:2: error: expected unqualified-id before '<' token
   12 | }<font></font>
      |  ^
Language: C++

#include <stdio.h><font></font>
#define DATA_SIZE 3000<font></font>
int main(void)<font></font>
{<font></font>
  int x[DATA_SIZE];<font></font>
  int y[DATA_SIZE];<font></font>
  int i, j;<font></font>
  int tmp;<font></font>
  <font></font>
  for(i = 0; i < DATA_SIZE; i++) {<font></font>
    scanf("%d %d", &x[i], &y[i]);<font></font>
<font></font>
    if (x[i] > y[i]) {<font></font>
      tmp = x[i];<font></font>
      x[i] = y[i];<font></font>
      y[i] = tmp;<font></font>
    }<font></font>
    <font></font>
    if(x[i] == 0 && y[i] == 0)<font></font>
      break;<font></font>
  }<font></font>
<font></font>
  if (i < DATA_SIZE) {<font></font>
    for (j = 0; j < i; j++) {<font></font>
      printf("%d %d\n", x[j], y[j]);<font></font>
    }<font></font>
  }<font></font>
<font></font>
  else {<font></font>
    for (j = 0; j < DATA_SIZE; j++) {<font></font>
      printf("%d %d", x[j], y[j]);<font></font>
    }<font></font>
  }<font></font>
<font></font>
    return 0;<font></font>
}<font></font>


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h><font></font>
      |                   ^~~~~~
a.cc:3:15: error: expected initializer before '<' token
    3 | int main(void)<font></font>
      |               ^
a.cc:36:2: error: expected unqualified-id before '<' token
   36 | }<font></font>
      |  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c, N = 0;
  cin >> a >> b >> c;
  for (int i = a; a < b; i++) {
    if (c % i = 0)
       N++;
  }
  cout << N << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |     if (c % i = 0)
      |         ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c;
  int N = 0;
  cin >> a >> b >> c;
  for (int i = a; a < b; i++) {
    if (c % i = 0) {
       N++;
    }
  }
  cout << N << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |     if (c % i = 0) {
      |         ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c;
  int N = 0;
  cin >> a >> b >> c;
  for (int i = a; a < b; i++) {
    if (c % i = 0) {
       N += 1;
    }
  }
  cout << N << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |     if (c % i = 0) {
      |         ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c;
  int N = 0;
  cin >> a >> b >> c;
  for (int i = a; a < b; i++) {
    if (c % i = 0) {
       N = N + 1;
    }
  }
  cout << N << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |     if (c % i = 0) {
      |         ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c;
  int N = 0;
  cin >> a >> b >> c;
  for (int i = a; a < b; i++) {
    if (c / i * c = c) {
       N++;
    }
  }
  cout << N << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: lvalue required as left operand of assignment
    9 |     if (c / i * c = c) {
      |         ~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int n = 0;
  for(int i = a; i <= b; i++){
    if(c % i == 0) ret++;
  }
  cout << n << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'ret' was not declared in this scope
    9 |     if(c % i == 0) ret++;
      |                    ^~~
Language: C++

let range a b = 
    let rec range' i j xs =
        if i > j then xs
        else range' i (j - 1) (j :: xs) in
    range' a b [];;

let (a, b, c) = Scanf.sscanf(read_line()) "%d %d %d" (fun x y z -> (x, y, z)) in
Printf.printf "%d\n" (range a b |> List.filter (fun x -> c mod x = 0) |> List.length);


Compiler output:
a.cc:2:18: warning: missing terminating ' character
    2 |     let rec range' i j xs =
      |                  ^
a.cc:2:18: error: missing terminating ' character
    2 |     let rec range' i j xs =
      |                  ^~~~~~~~~~
a.cc:4:19: warning: missing terminating ' character
    4 |         else range' i (j - 1) (j :: xs) in
      |                   ^
a.cc:4:19: error: missing terminating ' character
    4 |         else range' i (j - 1) (j :: xs) in
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:10: warning: missing terminating ' character
    5 |     range' a b [];;
      |          ^
a.cc:5:10: error: missing terminating ' character
    5 |     range' a b [];;
      |          ^~~~~~~~~~
a.cc:1:1: error: 'let' does not name a type
    1 | let range a b =
      | ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a, b, c, n = 0;
	cin >> a >> b >> c;

	for(int i = a; i <= b; i++){
		if(c % i == 0) n++
	}
	
	cout << n << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected ';' before '}' token
    9 |                 if(c % i == 0) n++
      |                                   ^
      |                                   ;
   10 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int a,b,c,ans=0;
	cin >> a >> b >> c;
	for (int i=a;i<=b;i++){
		if (c%i=0)
			ans++
	}
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: lvalue required as left operand of assignment
    7 |                 if (c%i=0)
      |                     ~^~
a.cc:8:30: error: expected ';' before '}' token
    8 |                         ans++
      |                              ^
      |                              ;
    9 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b,c;
  int yakusu=0;

  cin >> a >> b >> c;

  while(a <= b){

    if(c%a == 0){

      yakusu++;

    }

    a++;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
  int x,y,z;

  scanf("%d %d %d\n",&x,&y,&z);

  int n=0;
  for(int i=0;i<10000;i++)
    {
      if(i>=x && i<=y && c%i==0)
	{
	  n++;
	}
    }

  printf("%d\n",n);

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: 'c' was not declared in this scope
   12 |       if(i>=x && i<=y && c%i==0)
      |                          ^
Language: Java

import java.util.Scanner

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.readLine();
    String[] x = str.split(" ");
    int a = x[0];
    int b = x[1];
    System.out.println(a/b + " " + a%b + " " + (a/b)F);
  }
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:10: error: ')' or ',' expected
    System.out.println(a/b + " " + a%b + " " + (a/b)F);
                                                    ^
Main.java:10: error: ';' expected
    System.out.println(a/b + " " + a%b + " " + (a/b)F);
                                                     ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.readLine();
    String[] x = str.split(" ");
    int a = x[0];
    int b = x[1];
    System.out.println(a/b + " " + a%b + " " + (a/b)F);
  }
}


Compiler output:
Main.java:10: error: ')' or ',' expected
    System.out.println(a/b + " " + a%b + " " + (a/b)F);
                                                    ^
Main.java:10: error: ';' expected
    System.out.println(a/b + " " + a%b + " " + (a/b)F);
                                                     ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.readLine();
    String[] x = str.split(" ");
    int a = x[0];
    int b = x[1];
    int d = a/b;
    int r = a%b;
    float f = a/b;
    System.out.println(d + " " + r + " " + f);
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
    String str = sc.readLine();
                   ^
  symbol:   method readLine()
  location: variable sc of type Scanner
Main.java:8: error: incompatible types: String cannot be converted to int
    int a = x[0];
             ^
Main.java:9: error: incompatible types: String cannot be converted to int
    int b = x[1];
             ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = x[0];
    int b = x[1];
    int d = a/b;
    int r = a%b;
    float f = a/b;
    System.out.println(d + " " + r + " " + f);
  }
}


Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
    int a = x[0];
             ^
Main.java:9: error: incompatible types: String cannot be converted to int
    int b = x[1];
             ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = Integer.parseInt(x[0]);
    int b = Integer.parseInt(x[1]);
    int d = a/b;
    int r = a%b;
    double x = (double)a/b;
    String f = String.format("%.8f", x);
    System.out.println(d + " " + r + " " + f);
  }
}


Compiler output:
Main.java:12: error: variable x is already defined in method main(String[])
    double x = (double)a/b;
           ^
1 error
Language: Java

import java.util.Scanner;

public class Cord {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		System.out.printf("%d %d %.10f\n", a / b, a % b, (double) a / (double) b);
	}
}


Compiler output:
Main.java:3: error: class Cord is public, should be declared in a file named Cord.java
public class Cord {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Cord {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		System.out.printf("%d %d %.8f\n",a/b,a%b,(double)a/(double)b);
	}
}



Compiler output:
Main.java:3: error: class Cord is public, should be declared in a file named Cord.java
public class Cord {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Aim {

	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / b;
		
		System.out.println(d + " " + r + " " + f);
	}
}



Compiler output:
Main.java:3: error: class Aim is public, should be declared in a file named Aim.java
public class Aim {
       ^
1 error
Language: Java

package tanaka;

import java.util.Scanner;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();

System.out.println(a/b);
System.out.println(a%b);
System.out.println(float(a/b));

	}

}



Compiler output:
Main.java:15: error: '.class' expected
System.out.println(float(a/b));
                        ^
Main.java:15: error: not a statement
System.out.println(float(a/b));
                          ^
Main.java:15: error: ';' expected
System.out.println(float(a/b));
                            ^
3 errors
Language: Java



import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();

System.out.println(a/b);
System.out.println(a%b);
System.out.println(float(a/b));

	}

}



Compiler output:
Main.java:15: error: '.class' expected
System.out.println(float(a/b));
                        ^
Main.java:15: error: not a statement
System.out.println(float(a/b));
                          ^
Main.java:15: error: ';' expected
System.out.println(float(a/b));
                            ^
3 errors
Language: Java



import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();
float c= (float)a /b;

System.out.println(a/b);
System.out.println(a%b);
System.out.println(c);

	}

}



Compiler output:
Main.java:10: error: cannot find symbol
		int a = sc.nextLine();
		        ^
  symbol:   variable sc
  location: class Main
Main.java:11: error: cannot find symbol
		int b = sc.nextLine();
		        ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java



import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();
float c= (float)a /b;

System.out.println(a/b);
System.out.println(a%b);
System.out.println(c);

	}

}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
		int a = sc.nextLine();
		                   ^
Main.java:11: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java



import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();
float c= (float)a /b;

System.out.println(a/b);
System.out.println(a%b);
System.out.println(c);

	}

}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
		int a = sc.nextLine();
		                   ^
Main.java:11: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java



import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();
float c= (float)(a /b);

System.out.println(a/b);
System.out.println(a%b);
System.out.println(c);

	}

}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
		int a = sc.nextLine();
		                   ^
Main.java:11: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java



import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();

System.out.println(a/b);
System.out.println(a%b);
System.out.println((float)a /b);

	}

}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
		int a = sc.nextLine();
		                   ^
Main.java:11: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java



import java.util.Scanner;

javascript:void(0)
public class Main {

	public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
		int a = sc.nextLine();
		int b = sc.nextLine();

System.out.println(a/b);
System.out.println(a%b);
System.out.println((float)a /b);

	}

}



Compiler output:
Main.java:5: error: class, interface, enum, or record expected
javascript:void(0)
^
1 error
Language: Java

public class Main {

	public static void main(String[] args) {

		int a = 58;
		int b = 39 ;

System.out.print(a/b+" ");
System.out.print(a%b+" ");
System.out.print((float)a /b+" ");

	}



Compiler output:
Main.java:12: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

System.out.print(a/b+" ");
System.out.print(a%b+" ");
System.out.print((float)a /b+" ");

	}



Compiler output:
Main.java:13: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

System.out.print(a/b+" ");
System.out.print(a%b+" ");
System.out.print((float)a /b);

	}



Compiler output:
Main.java:13: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

int d =a/b;
int r =a%b;
float f = (float)a /b

System.out.print(d+" ");
System.out.print(r+" ");
System.out.print(f);

	}



Compiler output:
Main.java:11: error: ';' expected
float f = (float)a /b
                     ^
Main.java:17: error: reached end of file while parsing
	}
	 ^
2 errors
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

int d =a/b;
int r =a%b;
float f = (float)a /b;

System.out.print(d+" ");
System.out.print(r+" ");
System.out.print(f);

	}



Compiler output:
Main.java:17: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

int d =a/b;
int r =a%b;
float f = (float)a /b;

System.out.print(d+" ");
System.out.print(r+" ");
System.out.print(f);
}
	}



Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
		int a =  sc.nextLine();
		                    ^
Main.java:7: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

int d =a/b;
int r =a%b;


System.out.print(d+" ");
System.out.print(r+" ");

}
	}



Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
		int a =  sc.nextLine();
		                    ^
Main.java:7: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a =  sc.nextLine();
		int b = sc.nextLine();

int d =a/b;
int r =a%b;


System.out.print(d+" ");
System.out.print(r+" ");

}
	}



Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
		int a =  sc.nextLine();
		                    ^
Main.java:7: error: incompatible types: String cannot be converted to int
		int b = sc.nextLine();
		                   ^
2 errors
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

int d =a/b;
int r =a%b;


System.out.print(d+" ");
System.out.print(r+" ");
System.out.print(round((float)a/b));

}
	}



Compiler output:
Main.java:15: error: cannot find symbol
System.out.print(round((float)a/b));
                 ^
  symbol:   method round(float)
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class aaaa {
	public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
        int a = nextInt();
int b = nextInt();

int d=a/b;
int r=a%b;
float f=a/b;
String str = String.format("%d %d %f6　", a,b,c);
System.out.println(str);

	}
}



Compiler output:
Main.java:2: error: class aaaa is public, should be declared in a file named aaaa.java
public class aaaa {
       ^
Main.java:5: error: cannot find symbol
        int a = nextInt();
                ^
  symbol:   method nextInt()
  location: class aaaa
Main.java:6: error: cannot find symbol
int b = nextInt();
        ^
  symbol:   method nextInt()
  location: class aaaa
Main.java:11: error: cannot find symbol
String str = String.format("%d %d %f6?", a,b,c);
                                             ^
  symbol:   variable c
  location: class aaaa
4 errors
Language: Java

import java.util.Scanner;
public class aaaa {
	public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
        int a = nextInt();
int b = nextInt();

int d=a/b;
int r=a%b;
double f =(double)a/ (double)b;
System.out.println(d);
System.out.println(a);
System.out.println(f);

	}
}



Compiler output:
Main.java:2: error: class aaaa is public, should be declared in a file named aaaa.java
public class aaaa {
       ^
Main.java:5: error: cannot find symbol
        int a = nextInt();
                ^
  symbol:   method nextInt()
  location: class aaaa
Main.java:6: error: cannot find symbol
int b = nextInt();
        ^
  symbol:   method nextInt()
  location: class aaaa
3 errors
Language: Java

import java.util.Scanner;
public class aaaa {
	public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
        int a = sc.nextInt();
int b = sc.nextInt();

int d=a/b;
int r=a%b;
double f =(double)a/ (double)b;
System.out.println(d);
System.out.println(a);
System.out.println(f);

	}
}



Compiler output:
Main.java:2: error: class aaaa is public, should be declared in a file named aaaa.java
public class aaaa {
       ^
Main.java:5: error: cannot find symbol
        int a = sc.nextInt();
                ^
  symbol:   variable sc
  location: class aaaa
Main.java:6: error: cannot find symbol
int b = sc.nextInt();
        ^
  symbol:   variable sc
  location: class aaaa
3 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
        int a = sc.nextInt();
int b = sc.nextInt();

int d=a/b;
int r=a%b;
double f =(double)a/ (double)b;
System.out.println(d);
System.out.println(a);
System.out.println(f);

	}
}



Compiler output:
Main.java:5: error: cannot find symbol
        int a = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
int b = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
  Scanner sc= new Scanner(System.in);
        int a = sc.nextInt();
int b = sc.nextInt();

int d=a/b;
int r=a%b;
double f =(double)a/ (double)b;
System.out.println(d);
System.out.println(r);
System.out.println("%.8",f);

	}
}



Compiler output:
Main.java:13: error: no suitable method found for println(String,double)
System.out.println("%.8",f);
          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;
	class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            System.out.println(a+b);
            System.out.println(a%b);
            System.out.println((double)a/b);
        }
        sc.close();
    }


Compiler output:
Main.java:12: error: <identifier> expected
        sc.close();
                ^
1 error
Language: Java

import java.util.Scanner;
	class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            System.out.println(a+b);
            System.out.println(a%b);
            System.out.println((double)a/b);
            sc.close()
        }
    }}


Compiler output:
Main.java:11: error: ';' expected
            sc.close()
                      ^
Main.java:13: error: class, interface, enum, or record expected
    }}
     ^
2 errors
Language: Java

import java.util.Scanner;
	class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            System.out.println(a+b);
            System.out.println(a%b);
            System.out.println((double)a/b);
            sc.close()
        }
    }


Compiler output:
Main.java:11: error: ';' expected
            sc.close()
                      ^
1 error
Language: Java

import java.util.Scanner;
	class MyClass{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            System.out.println(a/b);
            System.out.println(a%b);
            System.out.println((double)a/b);
            
            sc.close()
        }
    }


Compiler output:
Main.java:12: error: ';' expected
            sc.close()
                      ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        System.out.println(a/b);
        System.out.println(a%b);
        System.out.println("%.1f",(double)(a)/(double)(b));
   }
}


Compiler output:
Main.java:13: error: no suitable method found for println(String,double)
        System.out.println("%.1f",(double)(a)/(double)(b));
                  ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;
	class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            System.out.println(a/b);
            System.out.println(a%b);
            System.out.println((double)a/b);
            
            sc.close()
        }
    }


Compiler output:
Main.java:12: error: ';' expected
            sc.close()
                      ^
1 error