Borderou de evaluare (job #3164966)

Utilizator oliv_1Bostinescu Octavian oliv_1 Data 4 noiembrie 2023 21:04:54
Problema Suma divizorilor Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: expected ',' or ';' before 'ofstream' 5 | ofstream cout("sumdiv.out") | ^~~~~~~~ main.cpp: In function 'int put(int, int)': main.cpp:9:5: error: 'p' was not declared in this scope 9 | p=1; | ^ main.cpp:13:13: error: 'mod' was not declared in this scope 13 | p=(p*a)%mod; | ^~~ main.cpp:14:13: error: 'mod' was not declared in this scope 14 | a=(a*a)%mod; | ^~~ main.cpp:17:14: error: 'mod' was not declared in this scope 17 | return p%mod; | ^~~ main.cpp: In function 'int invmod(int)': main.cpp:22:18: error: 'mod' was not declared in this scope 22 | return put(x,mod-2); | ^~~ main.cpp: In function 'int main()': main.cpp:41:2: error: 'prod' was not declared in this scope 41 | prod*=((t-1)*invmod(d-1))%mod; | ^~~~ main.cpp:41:28: error: 'mod' was not declared in this scope 41 | prod*=((t-1)*invmod(d-1))%mod; | ^~~ main.cpp:47:4: error: 'cout' was not declared in this scope 47 | cout<<prod; | ^~~~ main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include <algorithm> +++ |+#include <iostream> 3 | using namespace std; main.cpp:47:10: error: 'prod' was not declared in this scope 47 | cout<<prod; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?