Borderou de evaluare (job #582441)

Utilizator avatar GicuR Gicu Rata GicuR IP ascuns
Problemă Submultimi Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 feb. 2021 18:12:20 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:32:9: error: cannot declare '::main' to be a global variable 32 | int main({FAST | ^ main.cpp:4:46: error: expected '}' before ';' token 4 | #define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); | ^ main.cpp:32:11: note: in expansion of macro 'FAST' 32 | int main({FAST | ^~~~ main.cpp:32:10: note: to match this '{' 32 | int main({FAST | ^ main.cpp:4:46: error: expected ')' before ';' token 4 | #define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); | ^ main.cpp:32:11: note: in expansion of macro 'FAST' 32 | int main({FAST | ^~~~ main.cpp:32:9: note: to match this '(' 32 | int main({FAST | ^ main.cpp:4:48: error: 'cin' does not name a type 4 | #define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); | ^~~ main.cpp:32:11: note: in expansion of macro 'FAST' 32 | int main({FAST | ^~~~ main.cpp:4:60: error: 'cout' does not name a type 4 | #define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); | ^~~~ main.cpp:32:11: note: in expansion of macro 'FAST' 32 | int main({FAST | ^~~~ main.cpp:33:10: error: redefinition of 'int o' 33 | int p=0,o,q; | ^ main.cpp:6:12: note: 'int o' previously declared here 6 | int n,k,nr,o; | ^ main.cpp:34:2: error: 'cin' does not name a type 34 | cin>>n>>q; | ^~~ main.cpp:35:2: error: expected unqualified-id before 'for' 35 | for(int i=1;i<=q;++i)cin>>a[i]; | ^~~ main.cpp:35:14: error: 'i' does not name a type 35 | for(int i=1;i<=q;++i)cin>>a[i]; | ^ main.cpp:35:19: error: expected unqualified-id before '++' token 35 | for(int i=1;i<=q;++i)cin>>a[i];