Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150063 张淼 统计硬币 C++ Compile Error 0 MS 0 KB 430 2026-03-21 18:50:59

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int T; cin >> T; while (T--){ int n,m; cin >> n >> m; int cnt = 0; for (int z = 0;z <= n && z * 5 <= m;++z){ int y = (m - n) - 4 * z; int x = n - y - z; if (x >= 0 && y >= 0{ cat++; } } cout << cnt << endl; } return 0; }


Run Info:

Main.cc:16:17: error: stray '\357' in program
                 cat++;
                 ^
Main.cc:16:17: error: stray '\274' in program
Main.cc:16:17: error: stray '\233' in program
Main.cc: In function 'int main()':
Main.cc:15:33: error: expected ')' before '{' token
             if (x >= 0 && y >= 0{
                                 ^
Main.cc:18:9: error: expected primary-expression before '}' token
         }
         ^