/in/foo.cc: In function 'int main()':
/in/foo.cc:7:19: error: 'INT_MIN' was not declared in this scope
7 | int a,tmp=INT_MIN,cnt=0;
| ^~~~~~~
/in/foo.cc:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include<iostream>
+++ |+#include <climits>
2 | using namespace std;
/in/foo.cc:12:31: error: 'cnt' was not declared in this scope; did you mean 'int'?
12 | tmp=a,cnt=0;
| ^~~
| int
/in/foo.cc:15:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
15 | cnt++;
| ^~~
| int
/in/foo.cc:18:15: error: 'cnt' was not declared in this scope; did you mean 'int'?
18 | cout<<cnt<<endl;
| ^~~
| int