Borderou de evaluare (job #2186667)

Utilizator radu.leonardoThe Doctor radu.leonardo Data 25 martie 2018 20:31:23
Problema Guinness Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:16:1: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(int i=N-1;i>=0;i--)ans*=fast_pow(A,B[i]-'0',MOD);A=fast_pow(A,10,MOD);}g<<ans<<'\n';} ^~~ user.cpp:16:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(int i=N-1;i>=0;i--)ans*=fast_pow(A,B[i]-'0',MOD);A=fast_pow(A,10,MOD);}g<<ans<<'\n';} ^ user.cpp:16:79: error: ‘ans’ was not declared in this scope for(int i=N-1;i>=0;i--)ans*=fast_pow(A,B[i]-'0',MOD);A=fast_pow(A,10,MOD);}g<<ans<<'\n';} ^~~ user.cpp: At global scope: user.cpp:17:1: error: expected declaration before ‘}’ token } ^

Ceva nu functioneaza?