Submission ID Problem Status Score Time Memory Code / Answer files User Submit time
#20378 #2. 視頻推薦 Video Recommendation System Error 0 0 ms 0 K C++ / 314 B HKSC2023-064 2024-07-07 18:24:35
Show orginal code
#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    int count = 0;
    for (int i = 0; i < n; i++) {
        string temp = "";
        cin >> temp;
        if (temp == "like") {
            count++;
        } else {
            count--;
        }
    }
    cout << count;
    return 0;
}

System log

An error occurred.
IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")