Borderou de evaluare (job #2370060)

Utilizator robertbirsanRobert Birsan robertbirsan Data 6 martie 2019 10:33:01
Problema Rafturi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int max(int, int)': main.cpp:12:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(a>b) return a; return b; ^~ main.cpp:12:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(a>b) return a; return b; ^~~~~~ main.cpp: In function 'int min(int, int)': main.cpp:17:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(a<b) return a; return b; ^~ main.cpp:17:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(a<b) return a; return b; ^~~~~~ main.cpp: In function 'void read()': main.cpp:23:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&c,&n); ^ main.cpp:26:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&x,&y); ^ main.cpp: In function 'int main()': main.cpp:56:27: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen(infile,"r",stdin); ^ main.cpp:57:29: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen(outfile,"w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
43ms131kbOK10
54ms131kbOK10
65ms131kbOK10
75ms131kbOK10
87ms131kbOK10
99ms131kbOK10
1031ms131kbOK10
Punctaj total100

Ceva nu functioneaza?