Borderou de evaluare (job #2930378)

Utilizator Gica-gicutaGeorge Gica-gicuta Data 28 octombrie 2022 11:55:15
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:9: warning: ISO C++11 requires whitespace after the macro name 3 | #define MOD=1000000 | ^~~ main.cpp:3:12: error: expected primary-expression before '=' token 3 | #define MOD=1000000 | ^ main.cpp:7:13: note: in expansion of macro 'MOD' 7 | set <int> M[MOD]; | ^~~ main.cpp: In function 'int main()': main.cpp:16:13: error: 'M' was not declared in this scope 16 | M[b%MOD].insert(b); | ^ main.cpp:3:12: error: expected primary-expression before '=' token 3 | #define MOD=1000000 | ^ main.cpp:16:17: note: in expansion of macro 'MOD' 16 | M[b%MOD].insert(b); | ^~~ main.cpp:18:13: error: 'M' was not declared in this scope 18 | M[b%MOD].erase(b); | ^ main.cpp:3:12: error: expected primary-expression before '=' token 3 | #define MOD=1000000 | ^ main.cpp:18:17: note: in expansion of macro 'MOD' 18 | M[b%MOD].erase(b); | ^~~ main.cpp:21:16: error: 'M' was not declared in this scope 21 | if(M[b%MOD].find(b)!=M[b%MOD].end()) | ^ main.cpp:3:12: error: expected primary-expression before '=' token 3 | #define MOD=1000000 | ^ main.cpp:21:20: note: in expansion of macro 'MOD' 21 | if(M[b%MOD].find(b)!=M[b%MOD].end()) | ^~~ main.cpp:3:12: error: expected primary-expression before '=' token 3 | #define MOD=1000000 | ^ main.cpp:21:38: note: in expansion of macro 'MOD' 21 | if(M[b%MOD].find(b)!=M[b%MOD].end()) | ^~~ Non zero exit status: 1

Ceva nu functioneaza?