Borderou de evaluare (job #2559097)

Utilizator MoodyFaresFares Mohamad MoodyFares Data 26 februarie 2020 23:22:38
Problema Sum Max Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: 'vector' does not name a type vector<int> a[5 + MAX_N]; ^~~~~~ main.cpp:10:1: error: 'vector' does not name a type vector<int> maxVal[5 + MAX_N]; ^~~~~~ main.cpp:11:1: error: 'vector' does not name a type vector<int> pos[5 + MAX_N]; ^~~~~~ main.cpp: In function 'int main()': main.cpp:23:5: error: 'a' was not declared in this scope a[i].push_back(0); ^ main.cpp:24:5: error: 'maxVal' was not declared in this scope maxVal[i].push_back(0); ^~~~~~ main.cpp:25:5: error: 'pos' was not declared in this scope pos[i].push_back(0); ^~~ main.cpp:41:3: error: 'maxVal' was not declared in this scope maxVal[1][1] = a[1][1]; ^~~~~~ main.cpp:41:18: error: 'a' was not declared in this scope maxVal[1][1] = a[1][1]; ^ main.cpp:42:3: error: 'pos' was not declared in this scope pos[1][1] = 1; ^~~ main.cpp:14:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("summax.in", "r", stdin); ^ main.cpp:15:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("summax.out", "w", stdout); ^ main.cpp:20:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &cer, &n, &lft, &rght); ^ main.cpp:29:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ Non zero exit status: 1

Ceva nu functioneaza?