4162怎么错了??????????

lixinyan 爱因斯坦 2023-11-20 20:32:39 2023-11-20 20:35:28 0

#include /iostream/

using namespace std;

int main() {

int a = 0, b = 0, n, s = 0, t = 0;

cin >> n;

for (int i = 1; i <= n; i++) {

    cin >> s >> t;

    if (s > t)

        a = a + 3;

    else if (s = t)

        a++;

    else

        a = a + 0;

}

cout<<a;

return 0;}

{{ vote && vote.total.up }}

共 1 条回复

root 站长

else if (s = t) 这条代码错了