Borderou de evaluare (job #3336873)

Utilizator livliviLivia Magureanu livlivi Data 26 ianuarie 2026 14:08:47
Problema Iepuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:84:9: error: 'vector' does not name a type 84 | vector<type>& operator[](int i) { | ^~~~~~ main.cpp:88:15: error: 'vector' does not name a type 88 | const vector<type>& operator[](int i) const { | ^~~~~~ main.cpp:143:16: error: 'vector' was not declared in this scope 143 | vector<vector<type>> a; | ^~~~~~ main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 1 | #include <fstream> +++ |+#include <vector> 2 | main.cpp:143:16: error: 'vector' was not declared in this scope 143 | vector<vector<type>> a; | ^~~~~~ main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:16: error: 'vector' was not declared in this scope main.cpp:143:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:143:9: error: 'vector' does not name a type 143 | vector<vector<type>> a; | ^~~~~~ main.cpp: In constructor 'Matrice<type>::Matrice(type)': main.cpp:78:17: error: 'a' was not declared in this scope 78 | a.resize(sz, vector<type>(sz)); | ^ main.cpp: In member function 'Matrice<type> Matrice<type>::operator+(const Matrice<type>&) const': main.cpp:96:48: error: 'a' was not declared in this scope 96 | result[i][j] = a[i][j] + other[i][j]; | ^ main.cpp: In member function 'Matrice<type> Matrice<type>::operator*(const Matrice<type>&) const': main.cpp:107:57: error: 'a' was not declared in this scope 107 | result[i][j] += a[i][k] * other[k][j]; | ^ main.cpp: In function 'void solveTest()': main.cpp:174:11: error: no match for 'operator[]' (operand types are 'Matrice<ModInt>' and 'int') Non zero exit status: 1

Ceva nu functioneaza?