QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#582619 | #147. Floppy | 3un_larryfunc | Compile Error | / | / | C++23 | 3.0kb | 2024-09-22 17:00:10 | 2024-09-22 17:00:11 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
floppy.code: In function ‘int main()’: floppy.code:102:7: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 102 | scanf("%d%d", &n, &k); | ~~~~~^~~~~~~~~~~~~~~~ floppy.code:104:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 104 | for (int i = 0; i < n; i++) scanf("%lld", &f[i]), f[i] = (f[i] % P + P) % P; | ~~~~~^~~~~~~~~~~~~~~ floppy.code:106:36: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 106 | for (int i = 1; i <= n; i++) scanf("%lld", &g[i]), g[i] = (P - g[i]) % P; | ~~~~~^~~~~~~~~~~~~~~ grader_floppy.cpp: In function ‘void my_fprintf(FILE*, const char*, ...)’: grader_floppy.cpp:17:9: error: ‘exit’ was not declared in this scope 17 | exit(0); | ^~~~ grader_floppy.cpp: In function ‘void my_fscanf(FILE*, int, const char*, ...)’: grader_floppy.cpp:26:9: error: ‘exit’ was not declared in this scope 26 | exit(0); | ^~~~ grader_floppy.cpp: In function ‘void save_to_floppy(const string&)’: grader_floppy.cpp:51:5: error: ‘exit’ was not declared in this scope 51 | exit(0); | ^~~~ grader_floppy.cpp: In function ‘int main(int, char**)’: grader_floppy.cpp:91:15: error: ‘atoi’ was not declared in this scope 91 | int run = atoi(argv[1]); | ^~~~