Problem cuberoot
User Sumnumnumnumnum
Submission Time 2025-11-12 09:15:45
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:5: error: storage size of ‘tf’ isn’t known
5 | int tf[];
| ^~
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 you mean ‘tm’?
9 | for (int i = 0; i<t