Problem rightangtri
User shaokai348
Submission Time 2025-03-03 14:30:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rightangtri.cpp: In function ‘int main()’:
rightangtri.cpp:5:28: error: expected ‘;’ before ‘)’ token
5 | for (int i = 1; i <=a, i++){
| ^
| ;
rightangtri.cpp:6:19: error: expected ‘)’ before ‘,’ token
6 | while (int j = 1, j<=i, j++){
| ~ ^
| )
rightangtri.cpp:6:19: error: expected primary-expression before ‘,’ token
rightangtri.cpp:9:16: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
9 | std::cout << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,