Borderou de evaluare (job #2473351)
Utilizator | Data | 13 octombrie 2019 15:06:35 | |
---|---|---|---|
Problema | Shoturi | Status | done |
Runda | Autumn WarmUp 2019 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int fct(int, int, long long int)':
main.cpp:15:71: error: too many arguments to function 'int fct(int, int, long long int)'
fct( i + 1, k - j, (p * (h[i] * j > 0 ? h[i] * j : 1)) % M, n );
^
main.cpp:7:5: note: declared here
int fct( int i, int k, long long p ) {
^~~
main.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:24:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d%d", &n, &k );
^
main.cpp:26:35: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d", &h[i] );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !