Borderou de evaluare (job #2359949)

Utilizator NaritaandreiCNAINarita Andrei NaritaandreiCNAI Data 1 martie 2019 10:50:19
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:10: error: expected initializer before '.' token int n,p,k.sol=99999999;; ^ main.cpp: In function 'void read()': main.cpp:15:32: error: 'k' was not declared in this scope fscanf(f,"%d %d %d",&n,&p,&k); ^ main.cpp: In function 'void solve()': main.cpp:55:45: error: 'sol' was not declared in this scope if(dp[i][capt-c[i]]<sol) ^~~ main.cpp:56:47: error: invalid types 'int[int]' for array subscript sol=d[i][capt-c[i]]; ^ main.cpp: In function 'void write()': main.cpp:65:8: error: 'sol' was not declared in this scope if(sol!=99999999) ^~~ main.cpp:69:11: error: 'sol' was not declared in this scope cout<<sol; ^~~ main.cpp: In function 'void read()': main.cpp:26:38: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&d[i],&c[i]); ^ main.cpp:29:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&x,&y); ^ Non zero exit status: 1

Ceva nu functioneaza?