Borderou de evaluare (job #3137475)

Utilizator thinkphpAdrian Statescu thinkphp Data 13 iunie 2023 07:48:05
Problema X si 0 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:8: error: 'vector' was not declared in this scope 9 | vector<vector<int> > V(3, vector<int>(3, 0)); | ^~~~~~ main.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 4 | #include <map> +++ |+#include <vector> 5 | main.cpp:9:8: error: 'vector' was not declared in this scope 9 | vector<vector<int> > V(3, vector<int>(3, 0)); | ^~~~~~ main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:8: error: 'vector' was not declared in this scope main.cpp:9:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:9:1: error: 'vector' does not name a type 9 | vector<vector<int> > V(3, vector<int>(3, 0)); | ^~~~~~ main.cpp: In function 'int canwin(int)': main.cpp:18:37: error: 'V' was not declared in this scope 18 | codenow += (V[i][j] + 1) * pow3; | ^ main.cpp:24:21: error: 'V' was not declared in this scope 24 | if (V[i][0] == -now && V[i][1] == -now && V[i][2] == -now) | ^ main.cpp:27:21: error: 'V' was not declared in this scope 27 | if (V[0][i] == -now && V[1][i] == -now && V[2][i] == -now) | ^ main.cpp:29:13: error: 'V' was not declared in this scope 29 | if (V[0][0] == -now && V[1][1] == -now && V[2][2] == -now) return -1; | ^ main.cpp:30:13: error: 'V' was not declared in this scope 30 | if (V[0][2] == -now && V[1][1] == -now && V[2][0] == -now) return -1; | ^ main.cpp:37:29: error: 'V' was not declared in this scope 37 | if (V[i][j] == 0) | ^ main.cpp: In function 'int main()': main.cpp:71:41: error: 'V' was not declared in this scope 71 | V[i][j] = 1; Non zero exit status: 1

Ceva nu functioneaza?