Borderou de evaluare (job #2619173)

Utilizator raluca999Raluca Gabriela Jelescu raluca999 Data 27 mai 2020 11:06:40
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:12: warning: ISO C++11 requires whitespace after the macro name #define mod=1999999973; ^ main.cpp: In function 'int main()': main.cpp:6:12: error: expected primary-expression before '=' token #define mod=1999999973; ^ main.cpp:14:14: note: in expansion of macro 'mod' p=(p%mod)*(n%mod); ^~~ main.cpp:6:23: error: expected ')' before ';' token #define mod=1999999973; ^ main.cpp:14:14: note: in expansion of macro 'mod' p=(p%mod)*(n%mod); ^~~ main.cpp:13:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (P%2==1) ^~ main.cpp:14:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' p=(p%mod)*(n%mod); ^ main.cpp:14:17: error: expected primary-expression before ')' token main.cpp:14:25: error: expected primary-expression before ')' token p=(p%mod)*(n%mod); ^ main.cpp:6:12: error: expected primary-expression before '=' token #define mod=1999999973; ^ main.cpp:15:14: note: in expansion of macro 'mod' n=(n*mod)*(n%mod); ^~~ main.cpp:6:23: error: expected ')' before ';' token #define mod=1999999973; ^ main.cpp:15:14: note: in expansion of macro 'mod' n=(n*mod)*(n%mod); ^~~ main.cpp:15:17: error: expected primary-expression before ')' token n=(n*mod)*(n%mod); ^ main.cpp:15:25: error: expected primary-expression before ')' token n=(n*mod)*(n%mod); ^ main.cpp:6:12: error: expected primary-expression before '=' token #define mod=1999999973; ^ main.cpp:16:14: note: in expansion of macro 'mod' P=(P%mod)%2; ^~~ Non zero exit status: 1

Ceva nu functioneaza?