Problem gotoschool
User Astronite
Submission Time 2025-02-07 16:50:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
gotoschool.cpp:4:24: error: expected primary-expression before ‘v’
4 | vector<pair<int,int>> v;
| ^
gotoschool.cpp:4:24: error: expected ‘}’ before ‘v’
gotoschool.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
gotoschool.cpp:7:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin>>N;
| ^~~
| sin
gotoschool.cpp:8:2: error: expected unqualified-id before ‘for’
8 | for (int i;i<N;i++){
| ^~~
gotoschool.cpp:8:13: error: ‘i’ does not name a type
8 | for (int i;i<N;i++){
| ^
gotoschool.cpp:8:17: error: ‘i’ does not name a type
8 | for (int i;i<N;i++){
| ^
gotoschool.cpp:12:6: error: expected constructor, destructor, or type conversion before ‘