Borderou de evaluare (job #702154)

Utilizator avatar divaddd David Curca divaddd IP ascuns
Problemă Tbile (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 7 mar. 2023 00:23:55 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:53:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 53 | if(v > x.size() }} v > y.size()){ | ~~^~~~~~~~~~ main.cpp:53:24: error: expected ')' before '}' token 53 | if(v > x.size() }} v > y.size()){ | ~ ^~ | ) main.cpp:53:25: error: expected primary-expression before '}' token 53 | if(v > x.size() }} v > y.size()){ | ^ main.cpp:52:28: warning: unused variable 'sum' [-Wunused-variable] 52 | unsigned long long sum = 0; | ^~~ main.cpp: At global scope: main.cpp:53:28: error: 'v' does not name a type 53 | if(v > x.size() }} v > y.size()){ | ^ main.cpp:57:9: error: expected unqualified-id before 'while' 57 | while(pos < x.size() && x[pos] <= n){ | ^~~~~ main.cpp:61:9: error: 'pos' does not name a type 61 | pos = v-1; | ^~~ main.cpp:62:9: error: expected unqualified-id before 'while' 62 | while(y[pos] <= n && pos < y.size()){ | ^~~~~ main.cpp:66:9: error: expected unqualified-id before 'if' 66 | if(y[pos-m] <= n){ | ^~ main.cpp:73:9: error: 'fout' does not name a type 73 | fout << sum; | ^~~~ main.cpp:74:5: error: expected declaration before '}' token 74 | } | ^ main.cpp:75:5: error: expected unqualified-id before 'return' 75 | return 0; | ^~~~~~ main.cpp:76:1: error: expected declaration before '}' token 76 | } | ^