prog.cpp:1:2: error: stray '#' in program
]#include <iostream>
^
prog.cpp:1:1: error: expected unqualified-id before ']' token
]#include <iostream>
^
prog.cpp: In function 'int main()':
prog.cpp:7:16: error: 'scnaf' was not declared in this scope
scnaf("%d", &t);
^
prog.cpp:11:18: error: 'scanf' was not declared in this scope
scanf("%ld", &n);
^
prog.cpp:15:23: error: 'printf' was not declared in this scope
printf("%ld \n", ans);
^