QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#382730#3739. 字符画秦始皇派蒙恬还原神舟十二 (Jiancong Wen, Chu Jin, Zekai Zhang)Compile Error//C89299b2024-04-08 18:02:572024-04-08 18:02:58

Judging History

This is the latest submission verdict.

  • [2024-04-08 18:02:58]
  • Judged
  • [2024-04-08 18:02:57]
  • Submitted

answer

#include<iostream>//8335366
#include <string>
using namespace std;
int ans = 0;
void func(int num, int score) {
	if (score == 70)ans++;
	if (score == 100 || num > 30)return;
	func(num + 1, score + 10);
	func(num + 1, 0);
}
int main() {
	func(1, 0);
	cout << ans << endl;
	return 0;
}

详细

answer.code:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>//8335366
      |                   ^
answer.code:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>//8335366
      |         ^~~~~~~~~~
compilation terminated.