Problem cuberoot
User Sumnumnumnumnum
Submission Time 2025-11-12 09:18:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
cuberoot.cpp:4:1: error: expected primary-expression before ‘int’
4 | int t;
| ^~~
cuberoot.cpp:4:1: error: expected ‘}’ before ‘int’
cuberoot.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
cuberoot.cpp:5:8: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
5 | int tf[t];
| ^
| tm
cuberoot.cpp:7:1: error: ‘cin’ does not name a type
7 | cin >> t;
| ^~~
cuberoot.cpp:8:1: error: ‘cin’ does not name a type
8 | cin >> tf;
| ^~~
cuberoot.cpp:9:1: error: expected unqualified-id before ‘for’
9 | for (int i = 0; i<t;t++)
| ^~~
cuberoot.cpp:9:17: error: ‘i’ does not name a type
9 | for (int i = 0; i<t;t++)
| ^
cuberoot.cpp:9:21: error: ‘t’ does not name a type; did yo