Problem mrt2
User wzhci11
Submission Time 2024-12-02 16:59:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt2.cpp: In function ‘int main()’:
mrt2.cpp:23:14: error: expected ‘;’ before ‘for’
23 | sum += s1[0]
| ^
| ;
24 | for (ll i = 1; i < a; ++i) {
| ~~~
mrt2.cpp:24:17: error: ‘i’ was not declared in this scope
24 | for (ll i = 1; i < a; ++i) {
| ^
mrt2.cpp:27:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
27 | cout >> sum;
| ~~~~ ^~ ~~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
mrt2.cpp:27:7: note: candidate: ‘operator>>(int, long long int)’ <built-in>
27 | cout >> sum;
| ~~~~~^~~~~~
mrt2.cpp:27:7: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/in