为什么这题(C++)会爆零?
#include<iostream> using namespace std; int main() { int s,e,ans; cin >> s >> e; for(int i = s + 1;i <= e - 1;i++) if(i % 400 == 0 || (i % 4 == 0 && i % 100!=0)) ans += i; cout << ans; return 0; }