Problem sum
User blackscreen1
Submission Time 2025-03-19 15:58:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum.cpp: In function ‘int main()’:
sum.cpp:19:15: error: expected ‘;’ before ‘long’
19 | n = readInt()
| ^
| ;
sum.cpp:21:15: error: ‘a’ was not declared in this scope
21 | iloop(0, n) {a = readInt(); b = readInt(); t1 += a, t2 += b;}
| ^
sum.cpp:21:30: error: ‘b’ was not declared in this scope
21 | iloop(0, n) {a = readInt(); b = readInt(); t1 += a, t2 += b;}
| ^
sum.cpp:21:45: error: ‘t1’ was not declared in this scope; did you mean ‘tm’?
21 | iloop(0, n) {a = readInt(); b = readInt(); t1 += a, t2 += b;}
| ^~
| tm
sum.cpp:21:54: error: ‘t2’ was not declared in this scope; did you mean ‘tm’?
21 | iloop(0, n) {a = readInt(); b = readInt(); t1 += a, t2 += b;}
| ^~