(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #366548

#TimeUsernameProblemLanguageResultExecution timeMemory
366548hfoliacotsTraffic (IOI10_traffic)C++14
Compilation error
0 ms0 KiB
int centre(int n, vector<int> p, vector<int> s, vector<int> d) { int menys, total = 0; for (int i: p) { //cout << i << ' '; total = total + i; } menys = total; for (int i = 0; i < n, i++) { } return total; }

Compilation message (stderr)

traffic.cpp:1:19: error: 'vector' has not been declared
    1 | int centre(int n, vector<int> p, vector<int> s, vector<int> d) {
      |                   ^~~~~~
traffic.cpp:1:25: error: expected ',' or '...' before '<' token
    1 | int centre(int n, vector<int> p, vector<int> s, vector<int> d) {
      |                         ^
traffic.cpp: In function 'int centre(int, int)':
traffic.cpp:3:17: error: 'p' was not declared in this scope
    3 |     for (int i: p) {
      |                 ^
traffic.cpp:8:23: warning: left operand of comma operator has no effect [-Wunused-value]
    8 |     for (int i = 0; i < n, i++) {
      |                     ~~^~~
traffic.cpp:8:31: error: expected ';' before ')' token
    8 |     for (int i = 0; i < n, i++) {
      |                               ^
      |                               ;