运行 ID: 64725

Main.cc: In function ‘int main()’:
Main.cc:5:29: error: ‘cnt’ was not declared in this scope
     for(int i=1;i<=100;i++) cnt+=i;
                             ^~~
Main.cc:5:29: note: suggested alternative: ‘int’
     for(int i=1;i<=100;i++) cnt+=i;
                             ^~~
                             int
Main.cc:6:11: error: ‘cnt’ was not declared in this scope
     cout<