Borderou de evaluare (job #2958908)

Utilizator gasparrobert95Gaspar Robert Andrei gasparrobert95 Data 28 decembrie 2022 22:43:20
Problema Password Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:1: error: 'll' does not name a type 3 | ll t, n; | ^~ main.cpp: In function 'int main()': main.cpp:9:12: error: 't' was not declared in this scope 9 | cin >> t; | ^ main.cpp:11:16: error: 'n' was not declared in this scope 11 | cin >> n >> s; | ^ main.cpp:12:9: error: 'll' was not declared in this scope 12 | ll o = 0, z = 0; | ^~ main.cpp:14:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 14 | if (s[i] = '1') main.cpp:15:19: error: 'o' was not declared in this scope 15 | ++o; | ^ main.cpp:17:19: error: 'z' was not declared in this scope 17 | ++z; | ^ main.cpp:19:47: error: 'o' was not declared in this scope 19 | if (s[0] != '1' || s[n - 1] != '1' || o % 2 != 0 || z % 2 != 0) { | ^ main.cpp:19:61: error: 'z' was not declared in this scope 19 | if (s[0] != '1' || s[n - 1] != '1' || o % 2 != 0 || z % 2 != 0) { | ^ main.cpp:26:21: error: 'o' was not declared in this scope 26 | if (o > 0) | ^ main.cpp:30:17: error: 'o' was not declared in this scope 30 | o -= 2; | ^ main.cpp:33:21: error: 'z' was not declared in this scope 33 | if (z % 2 != 0) | ^ main.cpp:37:19: error: 'z' was not declared in this scope 37 | --z; | ^ Non zero exit status: 1

Ceva nu functioneaza?