Problem labels
User wahjsodhowasd
Submission Time 2026-03-06 13:10:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

labels.cpp: In function ‘int main()’:
labels.cpp:13:18: error: expected ‘;’ before ‘total’
13 | v.emplace_back(x)
| ^
| ;
14 | total+=x;
| ~~~~~
labels.cpp:15:18: error: ‘max’ cannot be used as a function
15 | max=max(total,max);
| ^
labels.cpp:16:18: error: ‘min’ cannot be used as a function
16 | min=min(min,total);}
| ^
labels.cpp:20:1: error: ‘else’ without a previous ‘if’
20 | else{
| ^~~~
labels.cpp:27:1: error: expected primary-expression before ‘]’ token
27 | ]
| ^
labels.cpp:27:1: error: expected ‘}’ at end of input
labels.cpp:5:7: note: to match this ‘{’
5 | main(){
| ^